On 21/02/2018 10:34, Chris Wilson wrote:
Quoting Tvrtko Ursulin (2018-02-21 10:29:57)
From: Tvrtko Ursulin <[email protected]>

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 <[email protected]>
Cc: Chris Wilson <[email protected]>

As a bonus it also helps document the perf_open() call.
Reviewed-by: Chris Wilson <[email protected]>

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
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to