Currently numcpus is determined in pid_put_sample which is only
called on sched_switch/sched_wakeup sample processing.
On a machine with a lot cpus I often saw the last cpu missing.
Check for (max) numcpus on every event happening and in the
beginning. -> fixes the issue for me.
Signed-off-by: Thomas Renninger <email@example.com>
Cc: Arjan van de Ven <firstname.lastname@example.org>
Cc: Arnaldo Carvalho de Melo <email@example.com>
Signed-off-by: Ingo Molnar <firstname.lastname@example.org>