1. 05 Dec, 2022 2 commits
    • James Clark's avatar
      perf branch: Fix interpretation of branch records · 20ed9fa4
      James Clark authored
      Commit 93315e46 ("perf/core: Add speculation info to branch
      entries") added a new field in between type and new_type. Perf has its
      own copy of this struct so update it to match the kernel side.
      
      This doesn't currently cause any issues because new_type is only used by
      the Arm BRBE driver which isn't merged yet.
      
      Committer notes:
      
      Is this really an ABI? How are we supposed to deal with old perf.data
      files with new tools and vice versa? :-\
      
      Fixes: 93315e46 ("perf/core: Add speculation info to branch entries")
      Reviewed-by: default avatarAnshuman Khandual <anshuman.khandual@arm.com>
      Signed-off-by: default avatarJames Clark <james.clark@arm.com>
      Acked-by: default avatarNamhyung Kim <namhyung@kernel.org>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Sandipan Das <sandipan.das@amd.com>
      Link: https://lore.kernel.org/r/20221130165158.517385-1-james.clark@arm.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      20ed9fa4
    • Sean Christopherson's avatar
      perf tools: Use dedicated non-atomic clear/set bit helpers · 49bd97c2
      Sean Christopherson authored
      Use the dedicated non-atomic helpers for {clear,set}_bit() and their
      test variants, i.e. the double-underscore versions.  Depsite being
      defined in atomic.h, and despite the kernel versions being atomic in the
      kernel, tools' {clear,set}_bit() helpers aren't actually atomic.  Move
      to the double-underscore versions so that the versions that are expected
      to be atomic (for kernel developers) can be made atomic without
      affecting users that don't want atomic operations.
      
      No functional change intended.
      Signed-off-by: default avatarSean Christopherson <seanjc@google.com>
      Acked-by: default avatarNamhyung Kim <namhyung@kernel.org>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
      Cc: James Morse <james.morse@arm.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Marc Zyngier <maz@kernel.org>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Oliver Upton <oliver.upton@linux.dev>
      Cc: Paolo Bonzini <pbonzini@redhat.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk>
      Cc: Sean Christopherson <seanjc@google.com>
      Cc: Suzuki Poulouse <suzuki.poulose@arm.com>
      Cc: Yury Norov <yury.norov@gmail.com>
      Cc: alexandru elisei <alexandru.elisei@arm.com>
      Cc: kvm@vger.kernel.org
      Cc: kvmarm@lists.cs.columbia.edu
      Cc: kvmarm@lists.linux.dev
      Cc: linux-arm-kernel@lists.infradead.org
      Link: http://lore.kernel.org/lkml/20221119013450.2643007-6-seanjc@google.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      49bd97c2
  2. 24 Nov, 2022 24 commits
  3. 23 Nov, 2022 14 commits