diff options
Diffstat (limited to 'tools/perf/util/evsel.c')
-rw-r--r-- | tools/perf/util/evsel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/evsel.c b/tools/perf/util/evsel.c index 21eaab240396..d7a2b4b9801d 100644 --- a/tools/perf/util/evsel.c +++ b/tools/perf/util/evsel.c | |||
@@ -115,7 +115,7 @@ void perf_evsel__config(struct perf_evsel *evsel, struct perf_record_opts *opts, | |||
115 | 115 | ||
116 | if (!opts->sample_id_all_missing && | 116 | if (!opts->sample_id_all_missing && |
117 | (opts->sample_time || !opts->no_inherit || | 117 | (opts->sample_time || !opts->no_inherit || |
118 | !perf_target__no_cpu(&opts->target))) | 118 | perf_target__has_cpu(&opts->target))) |
119 | attr->sample_type |= PERF_SAMPLE_TIME; | 119 | attr->sample_type |= PERF_SAMPLE_TIME; |
120 | 120 | ||
121 | if (opts->raw_samples) { | 121 | if (opts->raw_samples) { |