aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf')
-rw-r--r--tools/perf/builtin-kvm.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/tools/perf/builtin-kvm.c b/tools/perf/builtin-kvm.c
index 47b35407c2f2..935d52216c89 100644
--- a/tools/perf/builtin-kvm.c
+++ b/tools/perf/builtin-kvm.c
@@ -1165,16 +1165,16 @@ static int kvm_live_open_events(struct perf_kvm_stat *kvm)
1165 struct perf_event_attr *attr = &pos->attr; 1165 struct perf_event_attr *attr = &pos->attr;
1166 1166
1167 /* make sure these *are* set */ 1167 /* make sure these *are* set */
1168 attr->sample_type |= PERF_SAMPLE_TID; 1168 perf_evsel__set_sample_bit(pos, TID);
1169 attr->sample_type |= PERF_SAMPLE_TIME; 1169 perf_evsel__set_sample_bit(pos, TIME);
1170 attr->sample_type |= PERF_SAMPLE_CPU; 1170 perf_evsel__set_sample_bit(pos, CPU);
1171 attr->sample_type |= PERF_SAMPLE_RAW; 1171 perf_evsel__set_sample_bit(pos, RAW);
1172 /* make sure these are *not*; want as small a sample as possible */ 1172 /* make sure these are *not*; want as small a sample as possible */
1173 attr->sample_type &= ~PERF_SAMPLE_PERIOD; 1173 perf_evsel__reset_sample_bit(pos, PERIOD);
1174 attr->sample_type &= ~PERF_SAMPLE_IP; 1174 perf_evsel__reset_sample_bit(pos, IP);
1175 attr->sample_type &= ~PERF_SAMPLE_CALLCHAIN; 1175 perf_evsel__reset_sample_bit(pos, CALLCHAIN);
1176 attr->sample_type &= ~PERF_SAMPLE_ADDR; 1176 perf_evsel__reset_sample_bit(pos, ADDR);
1177 attr->sample_type &= ~PERF_SAMPLE_READ; 1177 perf_evsel__reset_sample_bit(pos, READ);
1178 attr->mmap = 0; 1178 attr->mmap = 0;
1179 attr->comm = 0; 1179 attr->comm = 0;
1180 attr->task = 0; 1180 attr->task = 0;