• Peter Zijlstra's avatar
    perf/core: Verify we have a single perf_hw_context PMU · 26657848
    Peter Zijlstra authored
    There should (and can) only be a single PMU for perf_hw_context
    events.
    
    This is because of how we schedule events: once a hardware event fails to
    schedule (the PMU is 'full') we stop trying to add more. The trivial
    'fix' would break the Round-Robin scheduling we do.
    Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
    Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
    Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
    Cc: Jiri Olsa <jolsa@redhat.com>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Stephane Eranian <eranian@google.com>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: Vince Weaver <vincent.weaver@maine.edu>
    Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
    26657848
core.c 225 KB