tools lib traceevent: Introduce new libtracevent API: tep_override_comm()
authorTzvetomir Stoyanov <tstoyanov@vmware.com>
Fri, 30 Nov 2018 15:44:11 +0000 (10:44 -0500)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 8 Jan 2019 16:28:13 +0000 (13:28 -0300)
commitca3958b1c0968a6f3105e211355f128ce871e796
tree30b542c57d25fc9c89587160b9e5de2480e8b618
parent21327c7843e9169d5e2e527713e60e6c9842a56c
tools lib traceevent: Introduce new libtracevent API: tep_override_comm()

This patch adds a new API of tracevent library: tep_override_comm() It
registers a pid / command mapping. If a mapping with the same pid
already exists, the entry is updated with the new command.

Signed-off-by: Tzvetomir Stoyanov <tstoyanov@vmware.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: http://lkml.kernel.org/r/20181130154648.038915912@goodmis.org
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/lib/traceevent/event-parse.c
tools/lib/traceevent/event-parse.h