]> Git Repo - linux.git/commitdiff
perf scripting python: Add all sample flags to DB export
authorAdrian Hunter <[email protected]>
Mon, 24 Jan 2022 08:41:58 +0000 (10:41 +0200)
committerArnaldo Carvalho de Melo <[email protected]>
Tue, 15 Feb 2022 20:15:04 +0000 (17:15 -0300)
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 <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: Jiri Olsa <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/util/scripting-engines/trace-event-python.c

index e752e1f4a5f0548a540676769182060a0927217b..413f2d19c13f655bff4a8cb12f043fa7282126ee 100644 (file)
@@ -1216,7 +1216,7 @@ static void python_export_sample_table(struct db_export *dbe,
        struct tables *tables = container_of(dbe, struct tables, dbe);
        PyObject *t;
 
-       t = tuple_new(24);
+       t = tuple_new(25);
 
        tuple_set_d64(t, 0, es->db_id);
        tuple_set_d64(t, 1, es->evsel->db_id);
@@ -1242,6 +1242,7 @@ static void python_export_sample_table(struct db_export *dbe,
        tuple_set_d64(t, 21, es->call_path_id);
        tuple_set_d64(t, 22, es->sample->insn_cnt);
        tuple_set_d64(t, 23, es->sample->cyc_cnt);
+       tuple_set_s32(t, 24, es->sample->flags);
 
        call_object(tables->sample_handler, t, "sample_table");
 
This page took 0.074096 seconds and 4 git commands to generate.