mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
sources/perf: Add an explanatory comment for the CPU loop.
I stumbled over this kernel restriction, too.
This commit is contained in:
committed by
Christian Hergert
parent
380995fde5
commit
83b75e6528
@ -314,6 +314,9 @@ sp_perf_source_start_pid (SpPerfSource *self,
|
||||
cpu = -1;
|
||||
}
|
||||
|
||||
/* Perf won't let us capture on all CPUs on all pids, so we have to
|
||||
* loop over CPUs if we're not just watching a single pid.
|
||||
*/
|
||||
for (; cpu < ncpu; cpu++)
|
||||
{
|
||||
attr.type = PERF_TYPE_HARDWARE;
|
||||
|
||||
Reference in New Issue
Block a user