diff options
Diffstat (limited to 'kernel/trace/trace_power.c')
-rw-r--r-- | kernel/trace/trace_power.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/trace/trace_power.c b/kernel/trace/trace_power.c index 8ce7d7d62c07..810a5b7cf1c5 100644 --- a/kernel/trace/trace_power.c +++ b/kernel/trace/trace_power.c | |||
@@ -55,8 +55,8 @@ static void probe_power_end(struct power_trace *it) | |||
55 | goto out; | 55 | goto out; |
56 | entry = ring_buffer_event_data(event); | 56 | entry = ring_buffer_event_data(event); |
57 | entry->state_data = *it; | 57 | entry->state_data = *it; |
58 | filter_check_discard(call, entry, event); | 58 | if (!filter_check_discard(call, entry, tr->buffer, event)) |
59 | trace_buffer_unlock_commit(tr, event, 0, 0); | 59 | trace_buffer_unlock_commit(tr, event, 0, 0); |
60 | out: | 60 | out: |
61 | preempt_enable(); | 61 | preempt_enable(); |
62 | } | 62 | } |
@@ -87,8 +87,8 @@ static void probe_power_mark(struct power_trace *it, unsigned int type, | |||
87 | goto out; | 87 | goto out; |
88 | entry = ring_buffer_event_data(event); | 88 | entry = ring_buffer_event_data(event); |
89 | entry->state_data = *it; | 89 | entry->state_data = *it; |
90 | filter_check_discard(call, entry, event); | 90 | if (!filter_check_discard(call, entry, tr->buffer, event)) |
91 | trace_buffer_unlock_commit(tr, event, 0, 0); | 91 | trace_buffer_unlock_commit(tr, event, 0, 0); |
92 | out: | 92 | out: |
93 | preempt_enable(); | 93 | preempt_enable(); |
94 | } | 94 | } |