perf evsel: Fix an issue where perf report fails to show the proper percentage
[deliverable/linux.git] / tools / perf / util / evsel.c
index 667f3b78bb2c2f44fd4a93cbd94a80850cdd0e51..7132ee834e0e5ee714c481961ed3c9d4308cf5f0 100644 (file)
@@ -463,6 +463,7 @@ int perf_event__parse_sample(const union perf_event *event, u64 type,
        memset(data, 0, sizeof(*data));
        data->cpu = data->pid = data->tid = -1;
        data->stream_id = data->id = data->time = -1ULL;
+       data->period = 1;
 
        if (event->header.type != PERF_RECORD_SAMPLE) {
                if (!sample_id_all)
This page took 0.024242 seconds and 5 git commands to generate.