Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

perf scripting python: Add all sample flags to DB export

Currently, the transaction flag (x) is kept separate from branch flags.
Instead of doing the same for the interrupt disabled flags (D and t), add
all flags so that new flags will not need to be handled separately in the
future.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: https://lore.kernel.org/r/20220124084201.2699795-23-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

Adrian Hunter and committed by
Arnaldo Carvalho de Melo
c096fff6 95f9bfcf

+2 -1
+2 -1
tools/perf/util/scripting-engines/trace-event-python.c
··· 1216 1216 struct tables *tables = container_of(dbe, struct tables, dbe); 1217 1217 PyObject *t; 1218 1218 1219 - t = tuple_new(24); 1219 + t = tuple_new(25); 1220 1220 1221 1221 tuple_set_d64(t, 0, es->db_id); 1222 1222 tuple_set_d64(t, 1, es->evsel->db_id); ··· 1242 1242 tuple_set_d64(t, 21, es->call_path_id); 1243 1243 tuple_set_d64(t, 22, es->sample->insn_cnt); 1244 1244 tuple_set_d64(t, 23, es->sample->cyc_cnt); 1245 + tuple_set_s32(t, 24, es->sample->flags); 1245 1246 1246 1247 call_object(tables->sample_handler, t, "sample_table"); 1247 1248