tools/lib/traceevent: Fix processing of dereferenced args in bprintk events
PATCH 1/1 tools/lib/traceevent: Fix processing of dereferenced args in bprintk events
From: "Steven Rostedt (VMware)" <[email protected]>
In the case that a bprintk event has a dereferenced pointer that is stored as a string, and there's more values to process (more args), the arg was not updated to point to the next arg after processing the dereferenced pointer, and it screwed up what was to be displayed.
--- tools/lib/traceevent/event-parse.c | 1 + 1 file changed, 1 insertion(+)
tools/lib/traceevent/event-parse.c +1 -0
@@ -4970,6 +4970,7 @@ static void pretty_print(struct trace_seq *s, void *data, int size, struct tep_eif (arg->type ==TEP_PRINT_BSTRING ) {trace_seq_puts (s, arg->string.string); + arg = arg->next;break ; }
Signature · 1 line
2.19.1
Arnaldo Carvalho de Melo
AppliedEm Mon, Dec 10, 2018 at 01:45:22PM -0500, Steven Rostedt escreveu:
Quoted 6 lines
From: "Steven Rostedt (VMware)" <[email protected]>
In the case that a bprintk event has a dereferenced pointer that is stored as a string, and there's more values to process (more args), the arg was not updated to point to the next arg after processing the dereferenced pointer, and it screwed up what was to be displayed.
Thanks, applied.
Quoted 22 lines
Fixes 7db96bb49629 ("tools lib traceevent: Handle new pointer processing of bprint strings")Signed-off-by Steven Rostedt (VMware) <[email protected]>--- tools/lib/traceevent/event-parse.c | 1 + 1 file changed, 1 insertion(+)tools/lib/traceevent/event-parse.c +1
-0@@ -4970,6 +4970,7 @@ static void pretty_print(struct trace_seq *s, void *data, int size, struct tep_eif (arg->type ==TEP_PRINT_BSTRING ) {trace_seq_puts (s, arg->string.string); + arg = arg->next;break ; }Signature · 1 line
2.19.1
Signature · 1 line
- Arnaldo
Quoted 12 lines · On Mon, 10 Dec 2018 15:48:07 -0300 Arnaldo Carvalho de Melo <[email protected]>…
Em Mon, Dec 10, 2018 at 01:45:22PM -0500, Steven Rostedt escreveu:
Quoted 6 lines
From: "Steven Rostedt (VMware)" <[email protected]>
In the case that a bprintk event has a dereferenced pointer that is stored as a string, and there's more values to process (more args), the arg was not updated to point to the next arg after processing the dereferenced pointer, and it screwed up what was to be displayed.
Thanks, applied.
Quoted 2 lines
Fixes 7db96bb49629 ("tools lib traceevent: Handle new pointer processing of bprint strings")
Arnaldo,
It seems that I cut and pasted the sha1 of the "fixes" part wrong. Can you add a "3". That is, the above should have been: 37db96bb49629
Thanks,
-- Steve
Quoted 21 lines
Quoted 20 lines
Signed-off-by Steven Rostedt (VMware) <[email protected]>--- tools/lib/traceevent/event-parse.c | 1 + 1 file changed, 1 insertion(+)tools/lib/traceevent/event-parse.c +1
-0@@ -4970,6 +4970,7 @@ static void pretty_print(struct trace_seq *s, void *data, int size, struct tep_eif (arg->type ==TEP_PRINT_BSTRING ) {trace_seq_puts (s, arg->string.string); + arg = arg->next;break ; }Signature · 1 line
2.19.1
Em Mon, Dec 10, 2018 at 04:26:21PM -0500, Steven Rostedt escreveu:
Quoted 13 lines
Quoted 10 lines · On Mon, 10 Dec 2018 15:48:07 -0300 Arnaldo Carvalho de Melo <[email protected]>…
Em Mon, Dec 10, 2018 at 01:45:22PM -0500, Steven Rostedt escreveu:
Quoted 6 lines
From: "Steven Rostedt (VMware)" <[email protected]>
In the case that a bprintk event has a dereferenced pointer that is stored as a string, and there's more values to process (more args), the arg was not updated to point to the next arg after processing the dereferenced pointer, and it screwed up what was to be displayed.
Thanks, applied.
Quoted 7 lines
Quoted 2 lines
Quoted 2 lines
Fixes 7db96bb49629 ("tools lib traceevent: Handle new pointer processing of bprint strings")Arnaldo,
It seems that I cut and pasted the sha1 of the "fixes" part wrong. Can you add a "3". That is, the above should have been:
37db96bb49629
Done, git rebase -i + reword -> push -f'ed :-)
https://git.kernel.org/acme/c/1e862fa6b4e9
- Arnaldo
Quoted 25 lines
Thanks,
-- Steve
Quoted 21 lines
Quoted 20 lines
Signed-off-by Steven Rostedt (VMware) <[email protected]>--- tools/lib/traceevent/event-parse.c | 1 + 1 file changed, 1 insertion(+)tools/lib/traceevent/event-parse.c +1
-0@@ -4970,6 +4970,7 @@ static void pretty_print(struct trace_seq *s, void *data, int size, struct tep_eif (arg->type ==TEP_PRINT_BSTRING ) {trace_seq_puts (s, arg->string.string); + arg = arg->next;break ; }Signature · 1 line
2.19.1
Signature · 1 line
- Arnaldo
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 4 lines · On Mon, 10 Dec 2018 21:09:20 +0000 Sasha Levin <[email protected]> wrote:
Hi,
[This is an automated email]
Quoted 8 lines
This commit has been processed because it contains a "Fixes:" tag, fixing commit: .
The bot has tested the following trees: v4.19.8, v4.14.87, v4.9.144, v4.4.166, v3.18.128,
v4.19.8: Build OK!
v4.14.87: Failed to apply! Possible dependencies:
37db96bb4962("tools lib traceevent: Handle new pointer processing of bprint strings")
Bah, I cut and pasted incorrectly the sha1. I had:
7db96bb49629 (chopped off the 3)
-- Steve
Quoted 19 lines
v4.9.144: Failed to apply! Possible dependencies:
37db96bb4962("tools lib traceevent: Handle new pointer processing of bprint strings")v4.4.166: Failed to apply! Possible dependencies:
37db96bb4962("tools lib traceevent: Handle new pointer processing of bprint strings")v3.18.128: Failed to apply! Possible dependencies:
37db96bb4962("tools lib traceevent: Handle new pointer processing of bprint strings")38d70b7ca176("tools lib traceevent: Simplify pointer print logic and fix %pF")3d199b5be533("tools lib traceevent: Add support for IP address formats")b6bd9c7d543a("tools lib traceevent: Support %ps/%pS")How should we proceed with this patch?
--
Thanks,
Sasha
Sasha Levin
maintainerQuoted 12 lines · Steven Rostedt
Quoted 9 lines · On Mon, 10 Dec 2018 21:09:20 +0000 Sasha Levin <[email protected]> wrote:
Hi,
[This is an automated email]
This commit has been processed because it contains a "Fixes:" tag, fixing commit: .
The bot has tested the following trees: v4.19.8, v4.14.87, v4.9.144, v4.4.166, v3.18.128,
Quoted 7 lines
Quoted 3 lines
v4.19.8: Build OK!
v4.14.87: Failed to apply! Possible dependencies:
37db96bb4962("tools lib traceevent: Handle new pointer processing of bprint strings")Bah, I cut and pasted incorrectly the sha1. I had:
7db96bb49629(chopped off the 3)
You tricked my bot :)
--
Thanks,
Sasha
tip-bot for Steven Rostedt (VMware)
merge bot[tip:perf/core] tools lib traceevent: Fix processing of dereferenced args in bprintk events
In reply to Steven Rostedttools lib traceevent: Fix processing of dereferenced args in bprintk events
Commit-ID: f024cf085c423bac7512479f45c34ee9a24af7ce Gitweb: https://git.kernel.org/tip/f024cf085c423bac7512479f45c34ee9a24af7ce Author: Steven Rostedt (VMware) <[email protected]> AuthorDate: Mon, 10 Dec 2018 13:45:22 -0500 Committer: Arnaldo Carvalho de Melo <[email protected]> CommitDate: Tue, 18 Dec 2018 12:21:44 -0300
tools lib traceevent: Fix processing of dereferenced args in bprintk events
In the case that a bprintk event has a dereferenced pointer that is stored as a string, and there's more values to process (more args), the arg was not updated to point to the next arg after processing the dereferenced pointer, and it screwed up what was to be displayed.
--- tools/lib/traceevent/event-parse.c | 1 + 1 file changed, 1 insertion(+)
tools/lib/traceevent/event-parse.c +1 -0
@@ -4973,6 +4973,7 @@ static void pretty_print(struct trace_seq *s, void *data, int size, struct tep_eif (arg->type ==TEP_PRINT_BSTRING ) {trace_seq_puts (s, arg->string.string); + arg = arg->next;break ; }