]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: Add "gfp_t" support in synthetic_events
authorZhengjun Xing <zhengjun.xing@linux.intel.com>
Fri, 12 Jul 2019 01:53:08 +0000 (09:53 +0800)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 5 Sep 2019 15:35:14 +0000 (11:35 -0400)
commit3bf15b1a6a35669924d838b05a091fd2e841a8dd
tree009858841f3ba324cfa7e5d254e14d04199ed4e0
parent2a6a94812686399bb5b150263a6091b387f207ef
tracing: Add "gfp_t" support in synthetic_events

Add "gfp_t" support in synthetic_events, then the "gfp_t" type
parameter in some functions can be traced.

Prints the gfp flags as hex in addition to the human-readable flag
string.  Example output:

  whoopsie-630 [000] ...1 78.969452: testevent: bar=b20 (GFP_ATOMIC|__GFP_ZERO)
    rcuc/0-11  [000] ...1 81.097555: testevent: bar=a20 (GFP_ATOMIC)
    rcuc/0-11  [000] ...1 81.583123: testevent: bar=a20 (GFP_ATOMIC)

Link: http://lkml.kernel.org/r/20190712015308.9908-1-zhengjun.xing@linux.intel.com
Signed-off-by: Zhengjun Xing <zhengjun.xing@linux.intel.com>
[ Added printing of flag names ]
Signed-off-by: Tom Zanussi <zanussi@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace_events_hist.c