mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 14:53:58 -04:00
perf thread: Add optional e_flags output argument to thread__e_machine
The e_flags are needed to accurately compute complete perf register information for CSKY. Add the ability to read and have this value associated with a thread. This change doesn't wire up the use of the e_flags except in disasm where use already exists but just wasn't set up yet. Signed-off-by: Ian Rogers <irogers@google.com> Cc: Aditya Bodkhe <aditya.b1@linux.ibm.com> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Athira Rajeev <atrajeev@linux.ibm.com> Cc: Chun-Tse Shao <ctshao@google.com> Cc: Guo Ren <guoren@kernel.org> Cc: Howard Chu <howardchu95@gmail.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: James Clark <james.clark@linaro.org> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Sergei Trofimovich <slyich@gmail.com> Cc: Shimin Guo <shimin.guo@skydio.com> Cc: Stephen Brennan <stephen.s.brennan@oracle.com> Cc: Swapnil Sapkal <swapnil.sapkal@amd.com> Cc: Tianyou Li <tianyou.li@intel.com> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
committed by
Arnaldo Carvalho de Melo
parent
7d0ebeb6c0
commit
4e66527f88
@@ -925,7 +925,7 @@ static PyObject *get_perf_sample_dict(struct perf_sample *sample,
|
||||
|
||||
if (al->thread) {
|
||||
machine = maps__machine(thread__maps(al->thread));
|
||||
e_machine = thread__e_machine(al->thread, machine);
|
||||
e_machine = thread__e_machine(al->thread, machine, /*e_flags=*/NULL);
|
||||
}
|
||||
if (set_regs_in_dict(dict, sample, evsel, e_machine))
|
||||
Py_FatalError("Failed to setting regs in dict");
|
||||
|
||||
Reference in New Issue
Block a user