perf scripting: Add scripting_context__update()
authorAdrian Hunter <adrian.hunter@intel.com>
Sun, 30 May 2021 19:22:58 +0000 (22:22 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 1 Jun 2021 13:03:02 +0000 (10:03 -0300)
commitcac30400a6d8159e2510a4a258db9c4ac6fbbba5
treec8084b376db57a363461f224d21d1f6471676743
parent6337bd0c91f66527741e61ecb73b9cff0d7f48f8
perf scripting: Add scripting_context__update()

Move scripting_context update to a separate function and add
the arguments of ->process_event() to it.

This prepares the way for adding more methods to the perf_trace_context
module, by providing the context information that they will need.

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/20210530192308.7382-4-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/scripting-engines/trace-event-perl.c
tools/perf/util/scripting-engines/trace-event-python.c
tools/perf/util/trace-event-scripting.c
tools/perf/util/trace-event.h