Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760008AbbKTMCa (ORCPT ); Fri, 20 Nov 2015 07:02:30 -0500 Received: from mail-wm0-f52.google.com ([74.125.82.52]:36131 "EHLO mail-wm0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759974AbbKTMC3 (ORCPT ); Fri, 20 Nov 2015 07:02:29 -0500 From: Dmitry Safonov <0x7f454c46@gmail.com> To: rostedt@goodmis.org, mingo@redhat.com Cc: linux-kernel@vger.kernel.org, Dmitry Safonov <0x7f454c46@gmail.com> Subject: [PATCH 1/2] trace_syscalls: return unhandled trace type on warn Date: Fri, 20 Nov 2015 15:03:08 +0300 Message-Id: <1448020989-25400-1-git-send-email-0x7f454c46@gmail.com> X-Mailer: git-send-email 2.6.2 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 963 Lines: 29 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/