| .. | .. |
|---|
| 37 | 37 | struct ring_buffer_event *event; |
|---|
| 38 | 38 | struct trace_branch *entry; |
|---|
| 39 | 39 | unsigned long flags; |
|---|
| 40 | | - unsigned int trace_ctx; |
|---|
| 40 | + int pc; |
|---|
| 41 | 41 | const char *p; |
|---|
| 42 | 42 | |
|---|
| 43 | 43 | if (current->trace_recursion & TRACE_BRANCH_BIT) |
|---|
| .. | .. |
|---|
| 59 | 59 | if (atomic_read(&data->disabled)) |
|---|
| 60 | 60 | goto out; |
|---|
| 61 | 61 | |
|---|
| 62 | | - trace_ctx = tracing_gen_ctx_flags(flags); |
|---|
| 62 | + pc = preempt_count(); |
|---|
| 63 | 63 | buffer = tr->array_buffer.buffer; |
|---|
| 64 | 64 | event = trace_buffer_lock_reserve(buffer, TRACE_BRANCH, |
|---|
| 65 | | - sizeof(*entry), trace_ctx); |
|---|
| 65 | + sizeof(*entry), flags, pc); |
|---|
| 66 | 66 | if (!event) |
|---|
| 67 | 67 | goto out; |
|---|
| 68 | 68 | |
|---|