diff --git a/tools/perf/util/evsel.c b/tools/perf/util/evsel.c index 5c4ca51c8f7b4f11543cec4005afc35533b344cf..07b1a3ad3e24a4f24a04877e62d43dccce52d8ff 100644 --- a/tools/perf/util/evsel.c +++ b/tools/perf/util/evsel.c @@ -554,6 +554,9 @@ void perf_evsel__config(struct perf_evsel *evsel, perf_evsel__set_sample_bit(evsel, CPU); } + if (opts->sample_address) + attr->sample_type |= PERF_SAMPLE_DATA_SRC; + if (opts->no_delay) { attr->watermark = 0; attr->wakeup_events = 1;