diff options
author | Su Wang <su.z.wang@ericsson.com> | 2019-03-21 00:14:14 -0400 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2019-03-26 11:44:43 +0000 |
commit | 7297f47088274b0759dbef5d2c19d564d32521e6 (patch) | |
tree | 0c3b7ddc6baec33e2503874f34aaebd40e12f320 /src/vnet/ppp | |
parent | cb36a1dbaf29babb536bd10d0ff3ff35ca57bfa3 (diff) |
perfmon: fix pmc hw indices out-dated when multiple pmc
When adding two or more events using a single "set pmc",
the pmc hardware indices might be out-dated due to kernel
reschdeduling the perf_event hardware counters.
E.g. set pmc cpu-cycles cache-misses
Solution:
Open and enable all the events first, then aquire the
indices from the kernel.
Change-Id: I6913a871ab169e3b2855ac6159f527a1fca343e9
Signed-off-by: Su Wang <su.z.wang@ericsson.com>
Diffstat (limited to 'src/vnet/ppp')
0 files changed, 0 insertions, 0 deletions