Zhengjun Xing
e3d2a341b2
tracing: Fix "gfp_t" format for synthetic events
[ Upstream commit 9fa8c9c647 ]
In the format of synthetic events, the "gfp_t" is shown as "signed:1",
but in fact the "gfp_t" is "unsigned", should be shown as "signed:0".
The issue can be reproduced by the following commands:
echo 'memlatency u64 lat; unsigned int order; gfp_t gfp_flags; int migratetype' > /sys/kernel/debug/tracing/synthetic_events
cat /sys/kernel/debug/tracing/events/synthetic/memlatency/format
name: memlatency
ID: 2233
format:
field:unsigned short common_type; offset:0; size:2; signed:0;
field:unsigned char common_flags; offset:2; size:1; signed:0;
field:unsigned char common_preempt_count; offset:3; size:1; signed:0;
field:int common_pid; offset:4; size:4; signed:1;
field:u64 lat; offset:8; size:8; signed:0;
field:unsigned int order; offset:16; size:4; signed:0;
field:gfp_t gfp_flags; offset:24; size:4; signed:1;
field:int migratetype; offset:32; size:4; signed:1;
print fmt: "lat=%llu, order=%u, gfp_flags=%x, migratetype=%d", REC->lat, REC->order, REC->gfp_flags, REC->migratetype
Link: http://lkml.kernel.org/r/20191018012034.6404-1-zhengjun.xing@linux.intel.com
Reviewed-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Zhengjun Xing <zhengjun.xing@linux.intel.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-11-10 11:34:15 +01:00
..
2019-06-03 15:39:39 +02:00
2019-10-11 18:36:48 +02:00
2019-10-17 13:47:31 -07:00
2019-07-18 11:51:00 -07:00
2019-05-08 12:15:12 -04:00
2019-05-28 09:36:19 -04:00
2019-04-03 11:02:24 +02:00
2019-03-26 08:35:36 -04:00
2019-10-29 09:22:39 +01:00
2019-07-18 11:51:00 -07:00
2019-11-10 11:34:15 +01:00
2019-04-08 09:22:28 -04:00
2019-08-31 06:51:49 -04:00
2019-07-30 21:50:03 -04:00
2019-10-17 13:47:31 -07:00
2019-03-11 17:01:32 -07:00
2019-05-25 23:04:30 -04:00
2019-07-16 15:14:47 -04:00
2019-07-19 12:18:46 -07:00
2019-05-25 23:04:42 -04:00
2019-08-31 06:51:55 -04:00
2019-07-16 15:14:47 -04:00
2019-04-21 19:46:56 -04:00
2019-04-29 12:37:56 +02:00
2019-04-05 09:26:43 -04:00
2019-07-18 11:51:00 -07:00
2019-11-06 13:08:47 +01:00
2019-05-25 23:04:30 -04:00