Commit d4c3768f authored by Tom Zanussi's avatar Tom Zanussi Committed by Ingo Molnar

perf trace: Remove unused code in builtin-trace.c

And some minor whitespace cleanup.
Signed-off-by: default avatarTom Zanussi <tzanussi@gmail.com>
Acked-by: default avatarFrederic Weisbecker <fweisbec@gmail.com>
Cc: rostedt@goodmis.org
Cc: lizf@cn.fujitsu.com
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>
LKML-Reference: <1254808849-7829-2-git-send-email-tzanussi@gmail.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 933da83a
...@@ -219,10 +219,6 @@ static int __cmd_trace(void) ...@@ -219,10 +219,6 @@ static int __cmd_trace(void)
more: more:
event = (event_t *)(buf + head); event = (event_t *)(buf + head);
size = event->header.size;
if (!size)
size = 8;
if (head + event->header.size >= page_size * mmap_window) { if (head + event->header.size >= page_size * mmap_window) {
unsigned long shift = page_size * (head / page_size); unsigned long shift = page_size * (head / page_size);
int res; int res;
...@@ -237,7 +233,6 @@ static int __cmd_trace(void) ...@@ -237,7 +233,6 @@ static int __cmd_trace(void)
size = event->header.size; size = event->header.size;
if (!size || process_event(event, offset, head) < 0) { if (!size || process_event(event, offset, head) < 0) {
/* /*
...@@ -290,7 +285,6 @@ int cmd_trace(int argc, const char **argv, const char *prefix __used) ...@@ -290,7 +285,6 @@ int cmd_trace(int argc, const char **argv, const char *prefix __used)
usage_with_options(annotate_usage, options); usage_with_options(annotate_usage, options);
} }
setup_pager(); setup_pager();
return __cmd_trace(); return __cmd_trace();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment