cf-natali edited a comment on pull request #391: URL: https://github.com/apache/mesos/pull/391#issuecomment-854051032
> BTW, I see in the output of your test, the number of tokens is 7 (e.g. 788234//cycles/311478/100,00/2/GHz) which should fail in this code since there is no case 7, right? Yes this example wouldn't work anyway but that's because it doesn't specify the cgroup, whereas the actual code does (https://github.com/apache/mesos/blob/50b729904e4b4ed7964cd5f2ac8177bca5a5a72c/src/linux/perf.cpp#L288): No `--cgroup` - 7 columns: ``` root@thinkpad:~# perf stat --field-separator "/" --all-cpus -e cycles -- true 1987580//cycles/3437534/100.00// ``` `--cgroup` - 8 columns: ``` root@thinkpad:~# mkdir /sys/fs/cgroup/perf_event/test root@thinkpad:~# perf stat --field-separator "/" --all-cpus -e cycles --cgroup test -- true <not counted>//cycles/test/0/100.00// root@thinkpad:~# ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
