Instead of passing it around for parsing as an explicit parameter, will help with reading tracepoint fields when not using a perf session or pevent structure, i.e. for non perf.data centered workflows.
Showing the changes to tools/perf/util/python.c (1 of 9 files). Show all
Unified · Split
| @@ -805,7 +805,7 @@ static PyObject *pyrf_evlist__read_on_cpu(struct pyrf_evlist *pevlist, · 804 unmodified lines | ||
| 805 | 805 | if (pyevent == NULL) |
| 806 | 806 | return PyErr_NoMemory(); |
| 807 | 807 | |
| 808 | − err = perf_evlist__parse_sample(evlist, event, &pevent->sample, false); | |
| 808 | + err = perf_evlist__parse_sample(evlist, event, &pevent->sample); | |
| 809 | 809 | if (err) |
| 810 | 810 | return PyErr_Format(PyExc_OSError, |
| 811 | 811 | "perf: can't parse sample, err=%d", err); |