diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-10-06 09:02:30 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-10-06 09:02:34 -0400 |
commit | d9b2002c406011164f245de7a81304625989f1c9 (patch) | |
tree | a2bb74773cd1409acbec5eb2fbba2ae9889d55e8 /tools/perf/builtin-trace.c | |
parent | c3b32fcbc7f4fd9a9b84718b991b175b0fd53f8c (diff) | |
parent | 906010b2134e14a2e377decbadd357b3d0ab9c6a (diff) |
Merge branch 'perf/urgent' into perf/core
Merge reason: Upcoming patch is dependent on a fix in perf/urgent.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/builtin-trace.c')
-rw-r--r-- | tools/perf/builtin-trace.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/tools/perf/builtin-trace.c b/tools/perf/builtin-trace.c index 2f938887335a..5d4c84d86373 100644 --- a/tools/perf/builtin-trace.c +++ b/tools/perf/builtin-trace.c | |||
@@ -191,10 +191,6 @@ remap: | |||
191 | more: | 191 | more: |
192 | event = (event_t *)(buf + head); | 192 | event = (event_t *)(buf + head); |
193 | 193 | ||
194 | size = event->header.size; | ||
195 | if (!size) | ||
196 | size = 8; | ||
197 | |||
198 | if (head + event->header.size >= page_size * mmap_window) { | 194 | if (head + event->header.size >= page_size * mmap_window) { |
199 | unsigned long shift = page_size * (head / page_size); | 195 | unsigned long shift = page_size * (head / page_size); |
200 | int res; | 196 | int res; |
@@ -209,7 +205,6 @@ more: | |||
209 | 205 | ||
210 | size = event->header.size; | 206 | size = event->header.size; |
211 | 207 | ||
212 | |||
213 | if (!size || process_event(event, offset, head) < 0) { | 208 | if (!size || process_event(event, offset, head) < 0) { |
214 | 209 | ||
215 | /* | 210 | /* |
@@ -262,7 +257,6 @@ int cmd_trace(int argc, const char **argv, const char *prefix __used) | |||
262 | usage_with_options(annotate_usage, options); | 257 | usage_with_options(annotate_usage, options); |
263 | } | 258 | } |
264 | 259 | ||
265 | |||
266 | setup_pager(); | 260 | setup_pager(); |
267 | 261 | ||
268 | return __cmd_trace(); | 262 | return __cmd_trace(); |