projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
933da83
)
perf trace: Remove unused code in builtin-trace.c
author
Tom Zanussi
<
[email protected]
>
Tue, 6 Oct 2009 06:00:47 +0000
(
01:00
-0500)
committer
Ingo Molnar
<
[email protected]
>
Tue, 6 Oct 2009 10:02:33 +0000
(12:02 +0200)
And some minor whitespace cleanup.
Signed-off-by: Tom Zanussi <
[email protected]
>
Acked-by: Frederic Weisbecker <
[email protected]
>
Cc:
[email protected]
Cc:
[email protected]
Cc: Peter Zijlstra <
[email protected]
>
Cc: Mike Galbraith <
[email protected]
>
Cc: Paul Mackerras <
[email protected]
>
Cc: Arnaldo Carvalho de Melo <
[email protected]
>
LKML-Reference: <
1254808849
[email protected]
>
Signed-off-by: Ingo Molnar <
[email protected]
>
tools/perf/builtin-trace.c
patch
|
blob
|
history
diff --git
a/tools/perf/builtin-trace.c
b/tools/perf/builtin-trace.c
index e9d256e2f47dfad9d570a98d6d98d36cacb95c33..0c5e4f72f2bae827ee0456f7362aff1f0ad20a91 100644
(file)
--- a/
tools/perf/builtin-trace.c
+++ b/
tools/perf/builtin-trace.c
@@
-219,10
+219,6
@@
remap:
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;
@@
-237,7
+233,6
@@
more:
size = event->header.size;
-
if (!size || process_event(event, offset, head) < 0) {
/*
@@
-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();