aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/perfmon/perfmon_periodic.c
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2019-01-27 17:54:11 +0100
committerFlorin Coras <florin.coras@gmail.com>2019-01-27 20:23:17 +0000
commitee721412ebd3434bc6dd60f5a78f53a4f6e97667 (patch)
treebe5d65a55fe68d7de55740fed6dfbfaaf3b7e6a7 /src/plugins/perfmon/perfmon_periodic.c
parent87c657036a804c1dd20bfc83c665c105fcdda26c (diff)
Fix issue with cpu_id and numa_code captured too early
Change-Id: I79b213b34c6071d14acf1922f89037a4a5a36c45 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/plugins/perfmon/perfmon_periodic.c')
-rw-r--r--src/plugins/perfmon/perfmon_periodic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/perfmon/perfmon_periodic.c b/src/plugins/perfmon/perfmon_periodic.c
index 0811439d7eb..12a1891518f 100644
--- a/src/plugins/perfmon/perfmon_periodic.c
+++ b/src/plugins/perfmon/perfmon_periodic.c
@@ -142,7 +142,7 @@ enable_current_events (perfmon_main_t * pm)
pe.exclude_hv = 1;
}
- cpu = vm->cpu_index;
+ cpu = vm->cpu_id;
fd = perf_event_open (&pe, 0, cpu, -1, 0);
if (fd == -1)