• Linus Torvalds's avatar
    Merge tag 'perf-core-2021-04-28' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 42dec9a9
    Linus Torvalds authored
    Pull perf event updates from Ingo Molnar:
    
     - Improve Intel uncore PMU support:
    
         - Parse uncore 'discovery tables' - a new hardware capability
           enumeration method introduced on the latest Intel platforms. This
           table is in a well-defined PCI namespace location and is read via
           MMIO. It is organized in an rbtree.
    
           These uncore tables will allow the discovery of standard counter
           blocks, but fancier counters still need to be enumerated
           explicitly.
    
         - Add Alder Lake support
    
         - Improve IIO stacks to PMON mapping support on Skylake servers
    
     - Add Intel Alder Lake PMU support - which requires the introduction of
       'hybrid' CPUs and PMUs. Alder Lake is a mix of Golden Cove ('big')
       and Gracemont ('small' - Atom derived) cores.
    
       The CPU-side feature set is entirely symmetrical - but on the PMU
       side there's core type dependent PMU functionality.
    
     - Reduce data loss with CPU level hardware tracing on Intel PT / AUX
       profiling, by fixing the AUX allocation watermark logic.
    
     - Improve ring buffer allocation on NUMA systems
    
     - Put 'struct perf_event' into their separate kmem_cache pool
    
     - Add support for synchronous signals for select perf events. The
       immediate motivation is to support low-overhead sampling-based race
       detection for user-space code. The feature consists of the following
       main changes:
    
         - Add thread-only event inheritance via
           perf_event_attr::inherit_thread, which limits inheritance of
           events to CLONE_THREAD.
    
         - Add the ability for events to not leak through exec(), via
           perf_event_attr::remove_on_exec.
    
         - Allow the generation of SIGTRAP via perf_event_attr::sigtrap,
           extend siginfo with an u64 ::si_perf, and add the breakpoint
           information to ::si_addr and ::si_perf if the event is
           PERF_TYPE_BREAKPOINT.
    
       The siginfo support is adequate for breakpoints right now - but the
       new field can be used to introduce support for other types of
       metadata passed over siginfo as well.
    
     - Misc fixes, cleanups and smaller updates.
    
    * tag 'perf-core-2021-04-28' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (53 commits)
      signal, perf: Add missing TRAP_PERF case in siginfo_layout()
      signal, perf: Fix siginfo_t by avoiding u64 on 32-bit architectures
      perf/x86: Allow for 8<num_fixed_counters<16
      perf/x86/rapl: Add support for Intel Alder Lake
      perf/x86/cstate: Add Alder Lake CPU support
      perf/x86/msr: Add Alder Lake CPU support
      perf/x86/intel/uncore: Add Alder Lake support
      perf: Extend PERF_TYPE_HARDWARE and PERF_TYPE_HW_CACHE
      perf/x86/intel: Add Alder Lake Hybrid support
      perf/x86: Support filter_match callback
      perf/x86/intel: Add attr_update for Hybrid PMUs
      perf/x86: Add structures for the attributes of Hybrid PMUs
      perf/x86: Register hybrid PMUs
      perf/x86: Factor out x86_pmu_show_pmu_cap
      perf/x86: Remove temporary pmu assignment in event_init
      perf/x86/intel: Factor out intel_pmu_check_extra_regs
      perf/x86/intel: Factor out intel_pmu_check_event_constraints
      perf/x86/intel: Factor out intel_pmu_check_num_counters
      perf/x86: Hybrid PMU support for extra_regs
      perf/x86: Hybrid PMU support for event constraints
      ...
    42dec9a9
uncore_snbep.c 160 KB