aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>2015-07-17 14:03:26 -0400
committerSteven Rostedt <rostedt@goodmis.org>2015-07-17 14:15:13 -0400
commitd6726c8145290bef950ae2538ea6ae1d96a1944b (patch)
treed243219746a59762fe75bbc9702325529985db19 /tools/perf/scripts/python/event_analyzing_sample.py
parent6224beb12e190ff11f3c7d4bf50cb2922878f600 (diff)
tracing: Fix sample output of dynamic arrays
He Kuang noticed that the trace event samples for arrays was broken: "The output result of trace_foo_bar event in traceevent samples is wrong. This problem can be reproduced as following: (Build kernel with SAMPLE_TRACE_EVENTS=m) $ insmod trace-events-sample.ko $ echo 1 > /sys/kernel/debug/tracing/events/sample-trace/foo_bar/enable $ cat /sys/kernel/debug/tracing/trace event-sample-980 [000] .... 43.649559: foo_bar: foo hello 21 0x15 BIT1|BIT3|0x10 {0x1,0x6f6f6e53,0xff007970,0xffffffff} Snoopy ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ The array length is not right, should be {0x1}. (ffffffff,ffffffff) event-sample-980 [000] .... 44.653827: foo_bar: foo hello 22 0x16 BIT2|BIT3|0x10 {0x1,0x2,0x646e6147,0x666c61,0xffffffff,0xffffffff,0x750aeffe,0x7} ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ The array length is not right, should be {0x1,0x2}. Gandalf (ffffffff,ffffffff)" This was caused by an update to have __print_array()'s second parameter be the count of items in the array and not the size of the array. As there is already users of __print_array(), it can not change. But the sample code can and we can also improve on the documentation about __print_array() and __get_dynamic_array_len(). Link: http://lkml.kernel.org/r/1436839171-31527-2-git-send-email-hekuang@huawei.com Fixes: ac01ce1410fc2 ("tracing: Make ftrace_print_array_seq compute buf_len") Reported-by: He Kuang <hekuang@huawei.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions
7-25 13:53:47 -0400 per-task-delay-accounting: add memory reclaim delay' href='/cgit/cgit.cgi/litmus-rt-imx6.git/commit/include/linux/delayacct.h?id=873b47717732c2f33a4b14de02571a4295a02f0c'>873b47717732
ca74e92b4698
846c7bb05574







ca74e92b4698















163ecdff060f
ca74e92b4698


35df17c57cec



ca74e92b4698

35df17c57cec

ca74e92b4698

0ff922452df8

846c7bb05574
0ff922452df8







846c7bb05574
0ff922452df8

6f44993fe1d7


163ecdff060f
6f44993fe1d7



25890454667b






873b47717732











ca74e92b4698








35df17c57cec
ca74e92b4698
0ff922452df8



6f44993fe1d7


25890454667b

846c7bb05574

873b47717732




ca74e92b4698


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153