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/ring_buffer.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/ring_buffer.c')
-rw-r--r-- | kernel/trace/ring_buffer.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/kernel/trace/ring_buffer.c b/kernel/trace/ring_buffer.c index b36d7374ceef..aee76b3eeed2 100644 --- a/kernel/trace/ring_buffer.c +++ b/kernel/trace/ring_buffer.c | |||
@@ -1257,7 +1257,6 @@ static DEFINE_PER_CPU(int, rb_need_resched); | |||
1257 | * ring_buffer_lock_reserve - reserve a part of the buffer | 1257 | * ring_buffer_lock_reserve - reserve a part of the buffer |
1258 | * @buffer: the ring buffer to reserve from | 1258 | * @buffer: the ring buffer to reserve from |
1259 | * @length: the length of the data to reserve (excluding event header) | 1259 | * @length: the length of the data to reserve (excluding event header) |
1260 | * @flags: a pointer to save the interrupt flags | ||
1261 | * | 1260 | * |
1262 | * Returns a reseverd event on the ring buffer to copy directly to. | 1261 | * Returns a reseverd event on the ring buffer to copy directly to. |
1263 | * The user of this interface will need to get the body to write into | 1262 | * The user of this interface will need to get the body to write into |
@@ -1270,9 +1269,7 @@ static DEFINE_PER_CPU(int, rb_need_resched); | |||
1270 | * If NULL is returned, then nothing has been allocated or locked. | 1269 | * If NULL is returned, then nothing has been allocated or locked. |
1271 | */ | 1270 | */ |
1272 | struct ring_buffer_event * | 1271 | struct ring_buffer_event * |
1273 | ring_buffer_lock_reserve(struct ring_buffer *buffer, | 1272 | ring_buffer_lock_reserve(struct ring_buffer *buffer, unsigned long length) |
1274 | unsigned long length, | ||
1275 | unsigned long *flags) | ||
1276 | { | 1273 | { |
1277 | struct ring_buffer_per_cpu *cpu_buffer; | 1274 | struct ring_buffer_per_cpu *cpu_buffer; |
1278 | struct ring_buffer_event *event; | 1275 | struct ring_buffer_event *event; |
@@ -1339,15 +1336,13 @@ static void rb_commit(struct ring_buffer_per_cpu *cpu_buffer, | |||
1339 | * ring_buffer_unlock_commit - commit a reserved | 1336 | * ring_buffer_unlock_commit - commit a reserved |
1340 | * @buffer: The buffer to commit to | 1337 | * @buffer: The buffer to commit to |
1341 | * @event: The event pointer to commit. | 1338 | * @event: The event pointer to commit. |
1342 | * @flags: the interrupt flags received from ring_buffer_lock_reserve. | ||
1343 | * | 1339 | * |
1344 | * This commits the data to the ring buffer, and releases any locks held. | 1340 | * This commits the data to the ring buffer, and releases any locks held. |
1345 | * | 1341 | * |
1346 | * Must be paired with ring_buffer_lock_reserve. | 1342 | * Must be paired with ring_buffer_lock_reserve. |
1347 | */ | 1343 | */ |
1348 | int ring_buffer_unlock_commit(struct ring_buffer *buffer, | 1344 | int ring_buffer_unlock_commit(struct ring_buffer *buffer, |
1349 | struct ring_buffer_event *event, | 1345 | struct ring_buffer_event *event) |
1350 | unsigned long flags) | ||
1351 | { | 1346 | { |
1352 | struct ring_buffer_per_cpu *cpu_buffer; | 1347 | struct ring_buffer_per_cpu *cpu_buffer; |
1353 | int cpu = raw_smp_processor_id(); | 1348 | int cpu = raw_smp_processor_id(); |