diff --git a/tools/perf/util/evsel.c b/tools/perf/util/evsel.c index 85eb84dfdf917d265db80a29c85cb7aa810056f1..44032679180fde5f9848f9bdac36d866f71ad145 100644 --- a/tools/perf/util/evsel.c +++ b/tools/perf/util/evsel.c @@ -2533,6 +2533,7 @@ int perf_event__synthesize_sample(union perf_event *event, u64 type, if (type & PERF_SAMPLE_CPU) { u.val32[0] = sample->cpu; + u.val32[1] = 0; if (swapped) { /* * Inverse of what is done in perf_evsel__parse_sample