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)
commitac68154626ab7fe4ce5f424937c34f42a3e20c5b
tree009858841f3ba324cfa7e5d254e14d04199ed4e0
parenta47b53e95accfd2814efe39dfca06dbd45cd857a
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