]> git.baikalelectronics.ru Git - kernel.git/commit
tools lib traceevent: Add plugin for decoding syscalls/sys_enter_futex
authorJulia Cartwright <julia@ni.com>
Thu, 2 Jul 2020 18:53:55 +0000 (14:53 -0400)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 6 Jul 2020 12:01:20 +0000 (09:01 -0300)
commitd8eeeeb757c53b8951f026913ade0a88f6f68e58
tree506789564048161fbfbbee90f98094299d119b0e
parentf3769570404b2bab601757d667f97decc37df3d2
tools lib traceevent: Add plugin for decoding syscalls/sys_enter_futex

The futex syscall is a complicated one.  It supports thirteen
multiplexed operations, each with different semantics and encodings for
the syscalls six arguments.

Manually decoding these arguments is tedious and error prone.

This plugin provides symbolic names for futex operations, futex flags,
and tries to be intelligent about the intent of specific arguments (for
example, waking operations use 'val' as an integer count, not just an
arbitrary value).

It doesn't do a full decode of the FUTEX_WAKE_OP's 'val3' argument,
however, this is a good starting point.

Link: http://lkml.kernel.org/r/20171207025649.12160-1-julia@ni.com
Link: http://lore.kernel.org/linux-trace-devel/20200702174950.123454-3-tz.stoyanov@gmail.com
Signed-off-by: Julia Cartwright <julia@ni.com>
[ Ported from trace-cmd.git ]
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: linux-trace-devel@vger.kernel.org
Link: http://lore.kernel.org/lkml/20200702185705.127175788@goodmis.org
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: Tzvetomir Stoyanov (VMware) <tz.stoyanov@gmail.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/lib/traceevent/plugins/Build
tools/lib/traceevent/plugins/Makefile
tools/lib/traceevent/plugins/plugin_futex.c [new file with mode: 0644]