Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 169688
b: refs/heads/master
c: d6a65df
h: refs/heads/master
v: v3
  • Loading branch information
Frederic Weisbecker authored and Ingo Molnar committed Sep 7, 2009
1 parent cadaa5b commit ee8236c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a1922ed661ab2c1637d0b10cde933bd9cd33d965
refs/heads/master: d6a65dffb30d8636b1e5d4c201564ef401a246cf
9 changes: 5 additions & 4 deletions trunk/kernel/trace/trace_ksym.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,17 +78,18 @@ void ksym_collect_stats(unsigned long hbp_hit_addr)
void ksym_hbp_handler(struct hw_breakpoint *hbp, struct pt_regs *regs)
{
struct ring_buffer_event *event;
struct trace_array *tr;
struct ksym_trace_entry *entry;
struct ring_buffer *buffer;
int pc;

if (!ksym_tracing_enabled)
return;

tr = ksym_trace_array;
buffer = ksym_trace_array->buffer;

pc = preempt_count();

event = trace_buffer_lock_reserve(tr, TRACE_KSYM,
event = trace_buffer_lock_reserve(buffer, TRACE_KSYM,
sizeof(*entry), 0, pc);
if (!event)
return;
Expand All @@ -103,7 +104,7 @@ void ksym_hbp_handler(struct hw_breakpoint *hbp, struct pt_regs *regs)
ksym_collect_stats(hbp->info.address);
#endif /* CONFIG_PROFILE_KSYM_TRACER */

trace_buffer_unlock_commit(tr, event, 0, pc);
trace_buffer_unlock_commit(buffer, event, 0, pc);
}

/* Valid access types are represented as
Expand Down

0 comments on commit ee8236c

Please sign in to comment.