History

perf evsel: Know if byte swap is needed

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.

Arnaldo Carvalho de Melo committed 14 years ago

Commit 0807d2d1 parent a14bb7a9 files · +24 −18Browse files

Showing the changes to tools/perf/util/python.c (1 of 9 files). Show all

Unified · Split

tools/perf/util/python.c+1−1
@@ -805,7 +805,7 @@ static PyObject *pyrf_evlist__read_on_cpu(struct pyrf_evlist *pevlist, · 804 unmodified lines
805805 if (pyevent == NULL)
806806 return PyErr_NoMemory();
807807
808− err = perf_evlist__parse_sample(evlist, event, &pevent->sample, false);
808+ err = perf_evlist__parse_sample(evlist, event, &pevent->sample);
809809 if (err)
810810 return PyErr_Format(PyExc_OSError,
811811 "perf: can't parse sample, err=%d", err);