]> git.ipfire.org Git - thirdparty/linux.git/commit
perf thread: Add optional e_flags output argument to thread__e_machine
authorIan Rogers <irogers@google.com>
Fri, 23 Jan 2026 22:22:07 +0000 (14:22 -0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 26 Jan 2026 21:21:20 +0000 (18:21 -0300)
commit4e66527f8859a6614a3a8afd11778c832a30ebbb
tree131c9ebeacbb817119b77e6eb37f657f4984e332
parent7d0ebeb6c0f735d4eddc679283a1de1dea2ae878
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>
12 files changed:
tools/perf/builtin-script.c
tools/perf/builtin-trace.c
tools/perf/util/annotate.c
tools/perf/util/disasm.c
tools/perf/util/disasm.h
tools/perf/util/dso.c
tools/perf/util/dso.h
tools/perf/util/scripting-engines/trace-event-python.c
tools/perf/util/session.c
tools/perf/util/thread.c
tools/perf/util/thread.h
tools/perf/util/unwind-libdw.c