]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit95aaadd6fc669795119b782548f5e19466f5100d
tree30b542c57d25fc9c89587160b9e5de2480e8b618
parent4ebaaac7bd7ae173e4b20c064e504465281dc6f9
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