diff options
Diffstat (limited to 'tools/perf/util/evsel.c')
-rw-r--r-- | tools/perf/util/evsel.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/perf/util/evsel.c b/tools/perf/util/evsel.c index f0e65dec66a5..47bbf03aa7ef 100644 --- a/tools/perf/util/evsel.c +++ b/tools/perf/util/evsel.c | |||
@@ -663,7 +663,7 @@ void perf_evsel__config(struct perf_evsel *evsel, | |||
663 | } | 663 | } |
664 | 664 | ||
665 | if (opts->sample_address) | 665 | if (opts->sample_address) |
666 | attr->sample_type |= PERF_SAMPLE_DATA_SRC; | 666 | perf_evsel__set_sample_bit(evsel, DATA_SRC); |
667 | 667 | ||
668 | if (opts->no_delay) { | 668 | if (opts->no_delay) { |
669 | attr->watermark = 0; | 669 | attr->watermark = 0; |
@@ -675,13 +675,13 @@ void perf_evsel__config(struct perf_evsel *evsel, | |||
675 | } | 675 | } |
676 | 676 | ||
677 | if (opts->sample_weight) | 677 | if (opts->sample_weight) |
678 | attr->sample_type |= PERF_SAMPLE_WEIGHT; | 678 | perf_evsel__set_sample_bit(evsel, WEIGHT); |
679 | 679 | ||
680 | attr->mmap = track; | 680 | attr->mmap = track; |
681 | attr->comm = track; | 681 | attr->comm = track; |
682 | 682 | ||
683 | if (opts->sample_transaction) | 683 | if (opts->sample_transaction) |
684 | attr->sample_type |= PERF_SAMPLE_TRANSACTION; | 684 | perf_evsel__set_sample_bit(evsel, TRANSACTION); |
685 | 685 | ||
686 | /* | 686 | /* |
687 | * XXX see the function comment above | 687 | * XXX see the function comment above |