Skip to content

Commit

Permalink
perf trace: Remove unused code in builtin-trace.c
Browse files Browse the repository at this point in the history
And some minor whitespace cleanup.

Signed-off-by: Tom Zanussi <tzanussi@gmail.com>
Acked-by: Frederic 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: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Tom Zanussi authored and Ingo Molnar committed Oct 6, 2009
1 parent 933da83 commit d4c3768
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions tools/perf/builtin-trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -219,10 +219,6 @@ static int __cmd_trace(void)
more:
event = (event_t *)(buf + head);

size = event->header.size;
if (!size)
size = 8;

if (head + event->header.size >= page_size * mmap_window) {
unsigned long shift = page_size * (head / page_size);
int res;
Expand All @@ -237,7 +233,6 @@ static int __cmd_trace(void)

size = event->header.size;


if (!size || process_event(event, offset, head) < 0) {

/*
Expand Down Expand Up @@ -290,7 +285,6 @@ int cmd_trace(int argc, const char **argv, const char *prefix __used)
usage_with_options(annotate_usage, options);
}


setup_pager();

return __cmd_trace();
Expand Down

0 comments on commit d4c3768

Please sign in to comment.