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

Configure Feed

Select the types of activity you want to include in your feed.

perf scripting python: Add cpumode

Add cpumode to python scripting.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: https://lore.kernel.org/r/20210525095112.1399-8-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
22cc2f74 142b0518

+3
+3
tools/perf/util/scripting-engines/trace-event-python.c
··· 822 822 brstacksym = python_process_brstacksym(sample, al->thread); 823 823 pydict_set_item_string_decref(dict, "brstacksym", brstacksym); 824 824 825 + pydict_set_item_string_decref(dict_sample, "cpumode", 826 + _PyLong_FromLong((unsigned long)sample->cpumode)); 827 + 825 828 if (addr_al) { 826 829 pydict_set_item_string_decref(dict_sample, "addr_correlates_sym", 827 830 PyBool_FromLong(1));