For perfevent2 example
Generate
perfdb.jsonusing the following command:ldms-perfdb-gen -o perfdb.json
Run ldmsd (listening on port 4411) by:
ldmsd -c samp.conf
If you get an error about “Cannot resolve event …”, it is likely that the event specified in the file “perfconf.json” is not available on the machine. Simply remove the event, or add other events from the following command:
perf list hw cache pmu
Fetch 2 samples and show the counter diff:
ldms_ls.py