|
@@ -633,9 +633,12 @@ void perf_evsel__config(struct perf_evsel *evsel, struct record_opts *opts)
|
|
|
if (opts->period)
|
|
|
perf_evsel__set_sample_bit(evsel, PERIOD);
|
|
|
|
|
|
- if (!perf_missing_features.sample_id_all &&
|
|
|
- (opts->sample_time || !opts->no_inherit ||
|
|
|
- target__has_cpu(&opts->target) || per_cpu))
|
|
|
+ /*
|
|
|
+ * When the user explicitely disabled time don't force it here.
|
|
|
+ */
|
|
|
+ if (opts->sample_time &&
|
|
|
+ (!perf_missing_features.sample_id_all &&
|
|
|
+ (!opts->no_inherit || target__has_cpu(&opts->target) || per_cpu)))
|
|
|
perf_evsel__set_sample_bit(evsel, TIME);
|
|
|
|
|
|
if (opts->raw_samples && !evsel->no_aux_samples) {
|