aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_hw_branches.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2009-02-05 13:12:56 -0500
committerIngo Molnar <mingo@elte.hu>2009-02-05 19:01:40 -0500
commit0a9877514c4fed10a70720293b37213dd172ee3e (patch)
tree7f21548126d448d96116f57f2c7927fa2b2c7ddd /kernel/trace/trace_hw_branches.c
parentdac74940289f350c2590bec92737833bad608541 (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/trace_hw_branches.c')
-rw-r--r--kernel/trace/trace_hw_branches.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/trace/trace_hw_branches.c b/kernel/trace/trace_hw_branches.c
index fff3545fc866..e720c001db2b 100644
--- a/kernel/trace/trace_hw_branches.c
+++ b/kernel/trace/trace_hw_branches.c
@@ -175,7 +175,7 @@ void trace_hw_branch(u64 from, u64 to)
175 struct trace_array *tr = hw_branch_trace; 175 struct trace_array *tr = hw_branch_trace;
176 struct ring_buffer_event *event; 176 struct ring_buffer_event *event;
177 struct hw_branch_entry *entry; 177 struct hw_branch_entry *entry;
178 unsigned long irq1, irq2; 178 unsigned long irq1;
179 int cpu; 179 int cpu;
180 180
181 if (unlikely(!tr)) 181 if (unlikely(!tr))
@@ -189,7 +189,7 @@ void trace_hw_branch(u64 from, u64 to)
189 if (atomic_inc_return(&tr->data[cpu]->disabled) != 1) 189 if (atomic_inc_return(&tr->data[cpu]->disabled) != 1)
190 goto out; 190 goto out;
191 191
192 event = ring_buffer_lock_reserve(tr->buffer, sizeof(*entry), &irq2); 192 event = ring_buffer_lock_reserve(tr->buffer, sizeof(*entry));
193 if (!event) 193 if (!event)
194 goto out; 194 goto out;
195 entry = ring_buffer_event_data(event); 195 entry = ring_buffer_event_data(event);
@@ -198,7 +198,7 @@ void trace_hw_branch(u64 from, u64 to)
198 entry->ent.cpu = cpu; 198 entry->ent.cpu = cpu;
199 entry->from = from; 199 entry->from = from;
200 entry->to = to; 200 entry->to = to;
201 ring_buffer_unlock_commit(tr->buffer, event, irq2); 201 ring_buffer_unlock_commit(tr->buffer, event);
202 202
203 out: 203 out:
204 atomic_dec(&tr->data[cpu]->disabled); 204 atomic_dec(&tr->data[cpu]->disabled);