From ff1c578a0cb239dceb0f0c8ab333bd4d045ff2d8 Mon Sep 17 00:00:00 2001 From: Yabin Date: Thu, 18 Aug 2022 17:01:54 -0700 Subject: simpleperf: update --print-hw-counter to check each cpu. Little/Big cores may have different numbers of CPU PMU hardware counters. So check them separately. Bug: 243034569 Test: run simpleperf_unit_test Change-Id: I33527d69bc935b8523482feaf98378c5f6641762 (cherry picked from commit 6b771a2e12740f4bbcef515d772e62b364d87858) --- simpleperf/workload.h | 1 + 1 file changed, 1 insertion(+) (limited to 'simpleperf/workload.h') diff --git a/simpleperf/workload.h b/simpleperf/workload.h index 2400ac8f..86b28924 100644 --- a/simpleperf/workload.h +++ b/simpleperf/workload.h @@ -43,6 +43,7 @@ class Workload { ~Workload(); + bool SetCpuAffinity(int cpu); bool Start(); bool IsStarted() { return work_state_ == Started; } pid_t GetPid() { return work_pid_; } -- cgit v1.2.3