lkml.org 
[lkml]   [2015]   [Nov]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 1/2] trace_syscalls: return unhandled trace type on warn
Date
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


\
 
 \ /
  Last update: 2015-11-20 13:21    [W:0.045 / U:0.284 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site