perf scripting python: Add context switch
authorAdrian Hunter <adrian.hunter@intel.com>
Tue, 25 May 2021 09:51:10 +0000 (12:51 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 25 May 2021 13:07:17 +0000 (10:07 -0300)
commit0db2134069275d1177c2dd531cbc73578b7ec8ac
treee82d5c33894986f48b6eb2aa91214929a51da7fc
parent22cc2f74bbe2174b54d3041ed41424f7d500026d
perf scripting python: Add context switch

Add context_switch to general 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-9-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/scripting-engines/trace-event-python.c