Skip to content

Commit ef9ef3b

Browse files
virtuosoIngo Molnar
authored andcommitted
perf/x86/intel/bts: Kill a silly warning
At the moment, intel_bts will WARN() out if there is more than one event writing to the same ring buffer, via SET_OUTPUT, and will only send data from one event to a buffer. There is no reason to have this warning in, so kill it. Signed-off-by: Alexander Shishkin <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Cc: Arnaldo Carvalho de Melo <[email protected]> Cc: Arnaldo Carvalho de Melo <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Stephane Eranian <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: [email protected] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
1 parent 4d4c474 commit ef9ef3b

File tree

1 file changed

+0
-2
lines changed
  • arch/x86/events/intel

1 file changed

+0
-2
lines changed

arch/x86/events/intel/bts.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,8 +378,6 @@ bts_buffer_reset(struct bts_buffer *buf, struct perf_output_handle *handle)
378378
return 0;
379379

380380
head = handle->head & ((buf->nr_pages << PAGE_SHIFT) - 1);
381-
if (WARN_ON_ONCE(head != local_read(&buf->head)))
382-
return -EINVAL;
383381

384382
phys = &buf->buf[buf->cur_buf];
385383
space = phys->offset + phys->displacement + phys->size - head;

0 commit comments

Comments
 (0)