diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2009-02-05 13:12:56 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-02-05 19:01:40 -0500 |
commit | 0a9877514c4fed10a70720293b37213dd172ee3e (patch) | |
tree | 7f21548126d448d96116f57f2c7927fa2b2c7ddd /kernel/trace/kmemtrace.c | |
parent | dac74940289f350c2590bec92737833bad608541 (diff) |
ring_buffer: remove unused flags parameter
Impact: API change, cleanup
>From ring_buffer_{lock_reserve,unlock_commit}.
$ codiff /tmp/vmlinux.before /tmp/vmlinux.after
linux-2.6-tip/kernel/trace/trace.c:
trace_vprintk | -14
trace_graph_return | -14
trace_graph_entry | -10
trace_function | -8
__ftrace_trace_stack | -8
ftrace_trace_userstack | -8
tracing_sched_switch_trace | -8
ftrace_trace_special | -12
tracing_sched_wakeup_trace | -8
9 functions changed, 90 bytes removed, diff: -90
linux-2.6-tip/block/blktrace.c:
__blk_add_trace | -1
1 function changed, 1 bytes removed, diff: -1
/tmp/vmlinux.after:
10 functions changed, 91 bytes removed, diff: -91
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Acked-by: Frédéric Weisbecker <fweisbec@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/trace/kmemtrace.c')
-rw-r--r-- | kernel/trace/kmemtrace.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/kernel/trace/kmemtrace.c b/kernel/trace/kmemtrace.c index f04c0625f1cd..256749d1032a 100644 --- a/kernel/trace/kmemtrace.c +++ b/kernel/trace/kmemtrace.c | |||
@@ -272,13 +272,11 @@ void kmemtrace_mark_alloc_node(enum kmemtrace_type_id type_id, | |||
272 | struct ring_buffer_event *event; | 272 | struct ring_buffer_event *event; |
273 | struct kmemtrace_alloc_entry *entry; | 273 | struct kmemtrace_alloc_entry *entry; |
274 | struct trace_array *tr = kmemtrace_array; | 274 | struct trace_array *tr = kmemtrace_array; |
275 | unsigned long irq_flags; | ||
276 | 275 | ||
277 | if (!kmem_tracing_enabled) | 276 | if (!kmem_tracing_enabled) |
278 | return; | 277 | return; |
279 | 278 | ||
280 | event = ring_buffer_lock_reserve(tr->buffer, sizeof(*entry), | 279 | event = ring_buffer_lock_reserve(tr->buffer, sizeof(*entry)); |
281 | &irq_flags); | ||
282 | if (!event) | 280 | if (!event) |
283 | return; | 281 | return; |
284 | entry = ring_buffer_event_data(event); | 282 | entry = ring_buffer_event_data(event); |
@@ -292,7 +290,7 @@ void kmemtrace_mark_alloc_node(enum kmemtrace_type_id type_id, | |||
292 | entry->gfp_flags = gfp_flags; | 290 | entry->gfp_flags = gfp_flags; |
293 | entry->node = node; | 291 | entry->node = node; |
294 | 292 | ||
295 | ring_buffer_unlock_commit(tr->buffer, event, irq_flags); | 293 | ring_buffer_unlock_commit(tr->buffer, event); |
296 | 294 | ||
297 | trace_wake_up(); | 295 | trace_wake_up(); |
298 | } | 296 | } |
@@ -305,13 +303,11 @@ void kmemtrace_mark_free(enum kmemtrace_type_id type_id, | |||
305 | struct ring_buffer_event *event; | 303 | struct ring_buffer_event *event; |
306 | struct kmemtrace_free_entry *entry; | 304 | struct kmemtrace_free_entry *entry; |
307 | struct trace_array *tr = kmemtrace_array; | 305 | struct trace_array *tr = kmemtrace_array; |
308 | unsigned long irq_flags; | ||
309 | 306 | ||
310 | if (!kmem_tracing_enabled) | 307 | if (!kmem_tracing_enabled) |
311 | return; | 308 | return; |
312 | 309 | ||
313 | event = ring_buffer_lock_reserve(tr->buffer, sizeof(*entry), | 310 | event = ring_buffer_lock_reserve(tr->buffer, sizeof(*entry)); |
314 | &irq_flags); | ||
315 | if (!event) | 311 | if (!event) |
316 | return; | 312 | return; |
317 | entry = ring_buffer_event_data(event); | 313 | entry = ring_buffer_event_data(event); |
@@ -322,7 +318,7 @@ void kmemtrace_mark_free(enum kmemtrace_type_id type_id, | |||
322 | entry->call_site = call_site; | 318 | entry->call_site = call_site; |
323 | entry->ptr = ptr; | 319 | entry->ptr = ptr; |
324 | 320 | ||
325 | ring_buffer_unlock_commit(tr->buffer, event, irq_flags); | 321 | ring_buffer_unlock_commit(tr->buffer, event); |
326 | 322 | ||
327 | trace_wake_up(); | 323 | trace_wake_up(); |
328 | } | 324 | } |