perfmon: fix init of bundles with pseudo events 36/35136/3
authorRay Kinsella <mdr@ashroe.eu>
Fri, 28 Jan 2022 05:01:52 +0000 (05:01 +0000)
committerDamjan Marion <dmarion@me.com>
Sun, 30 Jan 2022 15:08:18 +0000 (15:08 +0000)
commit7e8aeb876b3bf21075621e40c3c1aa2fa2874dfb
tree992beb415bdc81f07f30cec95c5b411347a4f635
parent0a0e711cce0f29012ceb6bcde732c072415c2f96
perfmon: fix init of bundles with pseudo events

Previously Linux pseudo events were being counted as multiple fixed
events, such that a bundle with pseudo events could exceed the number of
available fixed counters. Reworked to ignore pseudo events in the
accounting for the moment.

Type: fix
Fixes: 0024e53ad
Signed-off-by: Ray Kinsella <mdr@ashroe.eu>
Change-Id: Ic938f8266fd04d7731afbd02e261c61ef22a8522
src/plugins/perfmon/intel/core.c
src/plugins/perfmon/perfmon.c
src/plugins/perfmon/perfmon.h