mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/2] trace_syscalls: return unhandled trace type on warn
@ 2015-11-20 12:03 Dmitry Safonov
  2015-11-20 12:03 ` [PATCH 2/2] trace_syscalls: cleanup: check syscall_nr with syscall_nr_to_meta Dmitry Safonov
  0 siblings, 1 reply; 2+ messages in thread
From: Dmitry Safonov @ 2015-11-20 12:03 UTC (permalink / raw)
  To: rostedt, mingo; +Cc: linux-kernel, Dmitry Safonov

Having as an example print_syscall_exit(), return TRACE_TYPE_UNHANDLED
if entry type differs from syscall's metadata type.

Signed-off-by: Dmitry Safonov <0x7f454c46@gmail.com>
---
 kernel/trace/trace_syscalls.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/trace/trace_syscalls.c b/kernel/trace/trace_syscalls.c
index 0655afbea83f59..b9d4c3cc60aeba 100644
--- a/kernel/trace/trace_syscalls.c
+++ b/kernel/trace/trace_syscalls.c
@@ -126,7 +126,7 @@ print_syscall_enter(struct trace_iterator *iter, int flags,
 
 	if (entry->enter_event->event.type != ent->type) {
 		WARN_ON_ONCE(1);
-		goto end;
+		return TRACE_TYPE_UNHANDLED;
 	}
 
 	trace_seq_printf(s, "%s(", entry->name);
-- 
2.6.2


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-11-20 12:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-20 12:03 [PATCH 1/2] trace_syscalls: return unhandled trace type on warn Dmitry Safonov
2015-11-20 12:03 ` [PATCH 2/2] trace_syscalls: cleanup: check syscall_nr with syscall_nr_to_meta Dmitry Safonov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®