Skip to content

perf: Intel PT and 64-bit AUX area size fixes

Adrian Hunter linux-perf-users lkml stable 1 version Applied

Status from this message: The following commit has been merged into the perf/core branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 0 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/7perf/x86/intel/pt: Fix topa_entry base lengtharch/x86/events/intel/pt.h+2 -20 replies
2/7perf/x86/intel/pt: Fix a topa_entry base address calculationarch/x86/events/intel/pt.c+1 -10 replies
3/7perf/x86/intel/pt: Fix pt_topa_entry_for_page() address calculationarch/x86/events/intel/pt.c+1 -10 replies
4/7perf: Fix perf_aux_size() for greater-than 32-bit sizekernel/events/internal.h+1 -10 replies
5/7perf: Prevent passing zero nr_pages to rb_alloc_aux()kernel/events/core.c+2 -00 replies
6/7perf: Fix default aux_watermark calculationkernel/events/ring_buffer.c+3 -10 replies
7/7perf: Make rb_alloc_aux() return an error immediately if nr_pages <= 0kernel/events/ring_buffer.c+3 -00 replies

Reviews trailers per patch

1 of 7 patches has a Reviewed-by or Acked-by.

PatchAdrian Hunter
1/7R-b
2/7
3/7
4/7
5/7
6/7
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/7] perf: Intel PT and 64-bit AUX area size fixes

Hi

Here are some fixes.

I have taken the liberty of re-posting Marco Cavenati's patch from:

	https://lore.kernel.org/lkml/[email protected]/

with updated commit suggested by Dave Hansen.

Adrian Hunter (6):
perf/x86/intel/pt: Fix a topa_entry base address calculation perf/x86/intel/pt: Fix pt_topa_entry_for_page() address calculation
perf: Fix perf_aux_size() for greater-than 32-bit size
perf: Prevent passing zero nr_pages to rb_alloc_aux()
perf: Fix default aux_watermark calculation
perf: Make rb_alloc_aux() return an error immediately if nr_pages <= 0

Marco Cavenati (1):
perf/x86/intel/pt: Fix topa_entry base length

 arch/x86/events/intel/pt.c  | 4 ++--
 arch/x86/events/intel/pt.h  | 4 ++--
 kernel/events/core.c        | 2 ++
 kernel/events/internal.h    | 2 +-
 kernel/events/ring_buffer.c | 7 ++++++-
 5 files changed, 13 insertions(+), 6 deletions(-)

Regards
Adrian