On 21/02/2018 10:34, Chris Wilson wrote:
Quoting Tvrtko Ursulin (2018-02-21 10:29:57)
From: Tvrtko Ursulin <tvrtko.ursulin@xxxxxxxxx>
Instead of assuming PMU runs on CPU0, try all possible CPUs if that is not
the case. This makes the callers handle fallout from broken tests better,
as well as sysadmin interventions where callers are not tests.
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@xxxxxxxxx>
Cc: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx>
As a bonus it also helps document the perf_open() call.
Reviewed-by: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx>
Thanks!
Are we not allowed to pass cpu=-1 for any/all cpus?
No, that is documented to return -EINVAL from perf core. I guess it
comes from the per-CPU nature of perf.
Regards,
Tvrtko
_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx