Just as a note, the CSV header line can be adjusted in
You could transform it to a loop like:
for e=1, likwid.numberOfEvents(gid) do
for c=1, #clist do
table.insert(strlist, string.format("%s<%d>", likwid.getNameOfEvent(gid, e), clist[c]))
end
end
Similarily for the metric part of course. Now you get a header like this:
GID|eventCount|cpuCount|Total Runtime|Runtime (RDTSC)<0>|Runtime (RDTSC)<1>|....
Best regards,
Thomas
P.S. If you have no control over the installation, copy the likwid-perfctr script locally and use it from there
cp $LIKWID_PREFIX/bin/likwid-perfctr .
edit likwid-perfctr
./likwid-perfctr ....