diff options
Diffstat (limited to 'kernel/perf_counter.c')
-rw-r--r-- | kernel/perf_counter.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/kernel/perf_counter.c b/kernel/perf_counter.c index 7530588fa5c5..787d4daef185 100644 --- a/kernel/perf_counter.c +++ b/kernel/perf_counter.c | |||
@@ -3217,7 +3217,7 @@ static void perf_log_throttle(struct perf_counter *counter, int enable) | |||
3217 | u64 stream_id; | 3217 | u64 stream_id; |
3218 | } throttle_event = { | 3218 | } throttle_event = { |
3219 | .header = { | 3219 | .header = { |
3220 | .type = PERF_EVENT_THROTTLE + 1, | 3220 | .type = PERF_EVENT_THROTTLE, |
3221 | .misc = 0, | 3221 | .misc = 0, |
3222 | .size = sizeof(throttle_event), | 3222 | .size = sizeof(throttle_event), |
3223 | }, | 3223 | }, |
@@ -3226,6 +3226,9 @@ static void perf_log_throttle(struct perf_counter *counter, int enable) | |||
3226 | .stream_id = counter->id, | 3226 | .stream_id = counter->id, |
3227 | }; | 3227 | }; |
3228 | 3228 | ||
3229 | if (enable) | ||
3230 | throttle_event.header.type = PERF_EVENT_UNTHROTTLE; | ||
3231 | |||
3229 | ret = perf_output_begin(&handle, counter, sizeof(throttle_event), 1, 0); | 3232 | ret = perf_output_begin(&handle, counter, sizeof(throttle_event), 1, 0); |
3230 | if (ret) | 3233 | if (ret) |
3231 | return; | 3234 | return; |