* [PATCH 0/2] tracing: minor fixes @ 2009-11-25 7:14 Tom Zanussi 2009-11-25 7:14 ` [PATCH 1/2] perf tools: Add 'signed' flag setting back into trace-event-parse.c Tom Zanussi 2009-11-25 7:14 ` [PATCH 2/2] trace/syscalls: Change ret param in struct syscall_trace_exit to long Tom Zanussi 0 siblings, 2 replies; 5+ messages in thread From: Tom Zanussi @ 2009-11-25 7:14 UTC (permalink / raw) To: linux-kernel; +Cc: mingo, fweisbec, rostedt A couple of minor fixes for things that were overlooked in previous patches. Tom Zanussi (2): perf tools: Add 'signed' flag setting back into trace-event-parse.c trace/syscalls: Change ret param in struct syscall_trace_exit to long kernel/trace/trace.h | 2 +- tools/perf/util/trace-event-parse.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) ^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/2] perf tools: Add 'signed' flag setting back into trace-event-parse.c 2009-11-25 7:14 [PATCH 0/2] tracing: minor fixes Tom Zanussi @ 2009-11-25 7:14 ` Tom Zanussi 2009-11-25 8:31 ` [tip:perf/core] " tip-bot for Tom Zanussi 2009-11-25 7:14 ` [PATCH 2/2] trace/syscalls: Change ret param in struct syscall_trace_exit to long Tom Zanussi 1 sibling, 1 reply; 5+ messages in thread From: Tom Zanussi @ 2009-11-25 7:14 UTC (permalink / raw) To: linux-kernel; +Cc: mingo, fweisbec, rostedt Commit 13999e59343b042b0807be2df6ae5895d29782a0 (perf tools: Handle the case with and without the "signed" trace field) removed code to set the FIELD_IS_SIGNED flag that was originally added by commit 26a50744b21fff65bd754874072857bee8967f4d (tracing/events: Add 'signed' field to format files). This adds it back. Signed-off-by: Tom Zanussi <tzanussi@gmail.com> --- tools/perf/util/trace-event-parse.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/tools/perf/util/trace-event-parse.c b/tools/perf/util/trace-event-parse.c index 180368b..0302405 100644 --- a/tools/perf/util/trace-event-parse.c +++ b/tools/perf/util/trace-event-parse.c @@ -946,7 +946,8 @@ static int event_read_fields(struct event *event, struct format_field **fields) if (read_expect_type(EVENT_ITEM, &token)) goto fail; - /* add signed type */ + if (strtoul(token, NULL, 0)) + field->flags |= FIELD_IS_SIGNED; free_token(token); if (read_expected(EVENT_OP, ";") < 0) -- 1.6.4.GIT ^ permalink raw reply related [flat|nested] 5+ messages in thread
* [tip:perf/core] perf tools: Add 'signed' flag setting back into trace-event-parse.c 2009-11-25 7:14 ` [PATCH 1/2] perf tools: Add 'signed' flag setting back into trace-event-parse.c Tom Zanussi @ 2009-11-25 8:31 ` tip-bot for Tom Zanussi 0 siblings, 0 replies; 5+ messages in thread From: tip-bot for Tom Zanussi @ 2009-11-25 8:31 UTC (permalink / raw) To: linux-tip-commits Cc: linux-kernel, acme, paulus, hpa, mingo, tzanussi, a.p.zijlstra, efault, fweisbec, rostedt, tglx, mingo Commit-ID: 0d0bea5ea4a0e91feff22ac5e32e14ff3a682247 Gitweb: http://git.kernel.org/tip/0d0bea5ea4a0e91feff22ac5e32e14ff3a682247 Author: Tom Zanussi <tzanussi@gmail.com> AuthorDate: Wed, 25 Nov 2009 01:14:58 -0600 Committer: Ingo Molnar <mingo@elte.hu> CommitDate: Wed, 25 Nov 2009 09:06:09 +0100 perf tools: Add 'signed' flag setting back into trace-event-parse.c Commit 13999e59343b042b0807be2df6ae5895d29782a0 (perf tools: Handle the case with and without the "signed" trace field) removed code to set the FIELD_IS_SIGNED flag that was originally added by commit 26a50744b21fff65bd754874072857bee8967f4d (tracing/events: Add 'signed' field to format files). This adds it back. Signed-off-by: Tom Zanussi <tzanussi@gmail.com> Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Mike Galbraith <efault@gmx.de> Cc: Paul Mackerras <paulus@samba.org> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> LKML-Reference: <1259133299-23594-2-git-send-email-tzanussi@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu> --- tools/perf/util/trace-event-parse.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/tools/perf/util/trace-event-parse.c b/tools/perf/util/trace-event-parse.c index eae5605..7021dc1 100644 --- a/tools/perf/util/trace-event-parse.c +++ b/tools/perf/util/trace-event-parse.c @@ -941,7 +941,8 @@ static int event_read_fields(struct event *event, struct format_field **fields) if (read_expect_type(EVENT_ITEM, &token)) goto fail; - /* add signed type */ + if (strtoul(token, NULL, 0)) + field->flags |= FIELD_IS_SIGNED; free_token(token); if (read_expected(EVENT_OP, ";") < 0) ^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/2] trace/syscalls: Change ret param in struct syscall_trace_exit to long 2009-11-25 7:14 [PATCH 0/2] tracing: minor fixes Tom Zanussi 2009-11-25 7:14 ` [PATCH 1/2] perf tools: Add 'signed' flag setting back into trace-event-parse.c Tom Zanussi @ 2009-11-25 7:14 ` Tom Zanussi 2009-11-25 8:31 ` [tip:perf/core] " tip-bot for Tom Zanussi 1 sibling, 1 reply; 5+ messages in thread From: Tom Zanussi @ 2009-11-25 7:14 UTC (permalink / raw) To: linux-kernel; +Cc: mingo, fweisbec, rostedt Commit ee949a86b3aef15845ea677aa60231008de62672 changed the syscall exit return type to long, but forgot to change it in the struct. Signed-off-by: Tom Zanussi <tzanussi@gmail.com> --- kernel/trace/trace.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h index 5d6398b..ea5dda4 100644 --- a/kernel/trace/trace.h +++ b/kernel/trace/trace.h @@ -100,7 +100,7 @@ struct syscall_trace_enter { struct syscall_trace_exit { struct trace_entry ent; int nr; - unsigned long ret; + long ret; }; struct kprobe_trace_entry { -- 1.6.4.GIT ^ permalink raw reply related [flat|nested] 5+ messages in thread
* [tip:perf/core] trace/syscalls: Change ret param in struct syscall_trace_exit to long 2009-11-25 7:14 ` [PATCH 2/2] trace/syscalls: Change ret param in struct syscall_trace_exit to long Tom Zanussi @ 2009-11-25 8:31 ` tip-bot for Tom Zanussi 0 siblings, 0 replies; 5+ messages in thread From: tip-bot for Tom Zanussi @ 2009-11-25 8:31 UTC (permalink / raw) To: linux-tip-commits Cc: linux-kernel, acme, paulus, hpa, mingo, tzanussi, a.p.zijlstra, efault, fweisbec, rostedt, tglx, mingo Commit-ID: 99df5a6a215f026e62287083de2b44b22edd3623 Gitweb: http://git.kernel.org/tip/99df5a6a215f026e62287083de2b44b22edd3623 Author: Tom Zanussi <tzanussi@gmail.com> AuthorDate: Wed, 25 Nov 2009 01:14:59 -0600 Committer: Ingo Molnar <mingo@elte.hu> CommitDate: Wed, 25 Nov 2009 09:06:10 +0100 trace/syscalls: Change ret param in struct syscall_trace_exit to long Commit ee949a86b3aef15845ea677aa60231008de62672 ("tracing/syscalls: Use long for syscall ret format and field definitions") changed the syscall exit return type to long, but forgot to change it in the struct. Signed-off-by: Tom Zanussi <tzanussi@gmail.com> Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Mike Galbraith <efault@gmx.de> Cc: Paul Mackerras <paulus@samba.org> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> LKML-Reference: <1259133299-23594-3-git-send-email-tzanussi@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu> --- kernel/trace/trace.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h index 4da6ede..1d7f483 100644 --- a/kernel/trace/trace.h +++ b/kernel/trace/trace.h @@ -100,7 +100,7 @@ struct syscall_trace_enter { struct syscall_trace_exit { struct trace_entry ent; int nr; - unsigned long ret; + long ret; }; struct kprobe_trace_entry { ^ permalink raw reply related [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-11-25 8:32 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2009-11-25 7:14 [PATCH 0/2] tracing: minor fixes Tom Zanussi 2009-11-25 7:14 ` [PATCH 1/2] perf tools: Add 'signed' flag setting back into trace-event-parse.c Tom Zanussi 2009-11-25 8:31 ` [tip:perf/core] " tip-bot for Tom Zanussi 2009-11-25 7:14 ` [PATCH 2/2] trace/syscalls: Change ret param in struct syscall_trace_exit to long Tom Zanussi 2009-11-25 8:31 ` [tip:perf/core] " tip-bot for Tom Zanussi
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox