aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-record.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/builtin-record.c')
-rw-r--r--tools/perf/builtin-record.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/builtin-record.c b/tools/perf/builtin-record.c
index de76008fbaa2..78adc47da869 100644
--- a/tools/perf/builtin-record.c
+++ b/tools/perf/builtin-record.c
@@ -398,7 +398,7 @@ static void create_counter(int counter, int cpu, pid_t pid)
398 PERF_FORMAT_TOTAL_TIME_RUNNING | 398 PERF_FORMAT_TOTAL_TIME_RUNNING |
399 PERF_FORMAT_ID; 399 PERF_FORMAT_ID;
400 400
401 attr->sample_type = PERF_SAMPLE_IP | PERF_SAMPLE_TID; 401 attr->sample_type |= PERF_SAMPLE_IP | PERF_SAMPLE_TID;
402 402
403 if (freq) { 403 if (freq) {
404 attr->sample_type |= PERF_SAMPLE_PERIOD; 404 attr->sample_type |= PERF_SAMPLE_PERIOD;