Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1274014
| From | Dmitry Safonov <0x7f454c46@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 1/2] trace_syscalls: return unhandled trace type on warn |
| Date | 2015-11-20 13:10 +0100 |
| Message-ID | <qwSFP-71A-3@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
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/
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH 1/2] trace_syscalls: return unhandled trace type on warn Dmitry Safonov <0x7f454c46@gmail.com> - 2015-11-20 13:10 +0100
csiph-web