lo2s icon indicating copy to clipboard operation
lo2s copied to clipboard

Enable all pre-defined events as listed at perf list

Open rschoene opened this issue 7 years ago • 3 comments

please make events, defined in enum perf_hw_id, enum perf_hw_cache*id, and enum perf_sw_ids available under the naming scheme used in perf list,

e.g., lo2s -e minor-faults ... should map to PERF_COUNT_SW_PAGE_FAULTS_MIN

rschoene avatar Dec 14 '17 08:12 rschoene

This should be addressed in 1d5cc18. Please tell me if I overlooked any events that are still inconsistently named (except for alignment-faults et. al. which got fixed in 76a1a10 and should be merged soon).

phijor avatar Dec 14 '17 15:12 phijor

Hi, here's a one-liner for checks and its output. I highlighted some events, which I expected to work out-of-the-box:

$ for EVENT in `/usr/lib/linux-tools/4.13.0-17-generic/perf list | head -n 100 | awk '{print $1}'`; do lo2s -e $EVENT -- sleep 1; done
[1513321534371663364][pid: 39755][tid:22582952077120][ERROR]: requested sampling event 'alignment-faults'is not available!
[1513321534789697677][pid: 39756][tid:22763888281408][ERROR]: requested sampling event 'bpf-output'is not available!
[1513321539660676784][pid: 39766][tid:22485899888448][ERROR]: requested sampling event 'dummy'is not available!
[1513321541560148358][pid: 39770][tid:23327032407872][ERROR]: requested sampling event 'major-faults'is not available!
[1513321541972654063][pid: 39771][tid:23017799296832][ERROR]: requested sampling event 'minor-faults'is not available!
[1513321569035825264][pid: 39836][tid:23387627390784][ERROR]: requested sampling event 'node-load-misses'is not available!
[1513321569455736673][pid: 39837][tid:22580960393024][ERROR]: requested sampling event 'node-loads'is not available!
[1513321569873420529][pid: 39838][tid:22417891510080][ERROR]: requested sampling event 'node-store-misses'is not available!
[1513321570282468095][pid: 39839][tid:22846435112768][ERROR]: requested sampling event 'node-stores'is not available!
[1513321579575027386][pid: 39858][tid:22676351723328][ERROR]: requested sampling event 'cstate_core/c3-residency/'is not available!
[1513321579989961548][pid: 39859][tid:23362251728704][ERROR]: requested sampling event 'cstate_core/c6-residency/'is not available!
[1513321580422780654][pid: 39860][tid:23441203713856][ERROR]: requested sampling event 'cstate_core/c7-residency/'is not available!
[1513321580835583724][pid: 39861][tid:22411249579840][ERROR]: requested sampling event 'cstate_pkg/c2-residency/'is not available!
[1513321581238588515][pid: 39862][tid:23250936973120][ERROR]: requested sampling event 'cstate_pkg/c3-residency/'is not available!
[1513321581669210821][pid: 39863][tid:22445225240384][ERROR]: requested sampling event 'cstate_pkg/c6-residency/'is not available!
[1513321582084354733][pid: 39864][tid:22650734331712][ERROR]: requested sampling event 'cstate_pkg/c7-residency/'is not available!
[1513321582498218915][pid: 39865][tid:22828229760832][ERROR]: requested sampling event 'cycles-ct'is not available!
[1513321582911136904][pid: 39866][tid:22521488656192][ERROR]: requested sampling event 'cycles-t'is not available!
[1513321583308760496][pid: 39867][tid:22427632506688][ERROR]: requested sampling event 'el-abort'is not available!
[1513321583734642086][pid: 39868][tid:23146099926848][ERROR]: requested sampling event 'el-capacity'is not available!
[1513321584153835373][pid: 39869][tid:22561745856320][ERROR]: requested sampling event 'el-commit'is not available!
[1513321584576525440][pid: 39870][tid:22586108643136][ERROR]: requested sampling event 'el-conflict'is not available!
[1513321584987455841][pid: 39871][tid:23227795334976][ERROR]: requested sampling event 'el-start'is not available!
[1513321586884186741][pid: 39875][tid:22563382900544][ERROR]: requested sampling event 'intel_bts//'is not available!
[1513321587299707418][pid: 39876][tid:23125179918144][ERROR]: requested sampling event 'intel_pt//'is not available!
[1513321587722470654][pid: 39877][tid:22695506433856][ERROR]: requested sampling event 'mem-loads'is not available!
[1513321588132120527][pid: 39878][tid:23111930734400][ERROR]: requested sampling event 'mem-stores'is not available!
[1513321588546718177][pid: 39879][tid:22945282008896][ERROR]: requested sampling event 'msr/aperf/'is not available!
[1513321588961644832][pid: 39880][tid:23265874388800][ERROR]: requested sampling event 'msr/mperf/'is not available!
[1513321589373872853][pid: 39882][tid:22637016741696][ERROR]: requested sampling event 'msr/pperf/'is not available!
[1513321589800792912][pid: 39883][tid:22536257472320][ERROR]: requested sampling event 'msr/smi/'is not available!
[1513321590214505144][pid: 39884][tid:22883973904192][ERROR]: requested sampling event 'msr/tsc/'is not available!
[1513321590638949020][pid: 39885][tid:22965561558848][ERROR]: requested sampling event 'power/energy-cores/'is not available!
[1513321591046601015][pid: 39886][tid:22986015549248][ERROR]: requested sampling event 'power/energy-pkg/'is not available!
[1513321591461415565][pid: 39887][tid:23067196438336][ERROR]: requested sampling event 'power/energy-ram/'is not available!
[1513321593363006595][pid: 39891][tid:22369389020992][ERROR]: requested sampling event 'topdown-fetch-bubbles'is not available!
[1513321593769373049][pid: 39892][tid:22802177808192][ERROR]: requested sampling event 'topdown-recovery-bubbles'is not available!
[1513321594178740628][pid: 39893][tid:22674060334912][ERROR]: requested sampling event 'topdown-slots-issued'is not available!
[1513321594585184686][pid: 39894][tid:23199902136128][ERROR]: requested sampling event 'topdown-slots-retired'is not available!
[1513321594985607588][pid: 39895][tid:23144694093632][ERROR]: requested sampling event 'topdown-total-slots'is not available!
[1513321595401588761][pid: 39896][tid:23051010832192][ERROR]: requested sampling event 'tx-abort'is not available!
[1513321595808822042][pid: 39897][tid:22867580630848][ERROR]: requested sampling event 'tx-capacity'is not available!
[1513321596226682049][pid: 39898][tid:23276528797504][ERROR]: requested sampling event 'tx-commit'is not available!
[1513321596643143338][pid: 39899][tid:22457188927296][ERROR]: requested sampling event 'tx-conflict'is not available!
[1513321597051902456][pid: 39900][tid:22985918748480][ERROR]: requested sampling event 'tx-start'is not available!
[1513321597485605847][pid: 39901][tid:23429571508032][ERROR]: requested sampling event 'uncore_imc_0/cas_count_read/'is not available!
[1513321597893257413][pid: 39902][tid:22490037573440][ERROR]: requested sampling event 'uncore_imc_0/cas_count_write/'is not available!
[1513321598312896408][pid: 39903][tid:22567178405696][ERROR]: requested sampling event 'uncore_imc_0/clockticks/'is not available!
[1513321598721577589][pid: 39904][tid:22577037539136][ERROR]: requested sampling event 'uncore_imc_1/cas_count_read/'is not available!
[1513321599128249066][pid: 39905][tid:23323463931712][ERROR]: requested sampling event 'uncore_imc_1/cas_count_write/'is not available!
[1513321599543188554][pid: 39906][tid:22763229157184][ERROR]: requested sampling event 'uncore_imc_1/clockticks/'is not available!
[1513321599959018307][pid: 39907][tid:22654361470784][ERROR]: requested sampling event 'uncore_imc_2/cas_count_read/'is not available!
[1513321600373871919][pid: 39908][tid:23064448452416][ERROR]: requested sampling event 'uncore_imc_2/cas_count_write/'is not available!
[1513321600782424866][pid: 39909][tid:22695976793920][ERROR]: requested sampling event 'uncore_imc_2/clockticks/'is not available!
[1513321601187558375][pid: 39910][tid:22390533363520][ERROR]: requested sampling event 'uncore_imc_3/cas_count_read/'is not available!
[1513321601596175544][pid: 39911][tid:23328100636480][ERROR]: requested sampling event 'uncore_imc_3/cas_count_write/'is not available!
[1513321601995853446][pid: 39912][tid:23042044561216][ERROR]: requested sampling event 'uncore_imc_3/clockticks/'is not available!
[1513321602410007732][pid: 39913][tid:22432009541440][ERROR]: requested sampling event 'uncore_imc_4/cas_count_read/'is not available!
[1513321602814193872][pid: 39914][tid:22650721122112][ERROR]: requested sampling event 'uncore_imc_4/cas_count_write/'is not available!
[1513321603222474538][pid: 39915][tid:22734568310592][ERROR]: requested sampling event 'uncore_imc_4/clockticks/'is not available!
[1513321603633792346][pid: 39916][tid:22466940770112][ERROR]: requested sampling event 'uncore_imc_5/cas_count_read/'is not available!
[1513321604039780765][pid: 39917][tid:22624078812992][ERROR]: requested sampling event 'uncore_imc_5/cas_count_write/'is not available!

rschoene avatar Dec 15 '17 07:12 rschoene

A better one-liner:

for EVENT in `perf list | head -n 100 | awk '{print $1}'`; do lo2s -E $EVENT -o lo2s_$EVENT -- true; done

With the current HEAD, the list is significantly shorter:

[1520949492912049780][pid: 145520][tid: 22785121584960][ WARN]: 'bpf-output' does not name a known event, ignoring! (reason: invalid event description format)
[1520949494476681645][pid: 145532][tid: 23337165608768][ WARN]: 'dummy' does not name a known event, ignoring! (reason: invalid event description format)
[1520949511336165681][pid: 145649][tid: 23146871084864][ WARN]: 'intel_bts//' does not name a known event, ignoring! (reason: invalid event description format)
[1520949511696601655][pid: 145652][tid: 23133241669440][ WARN]: 'mem-loads' does not name a known event, ignoring! (reason: invalid event description format)
[1520949512232620095][pid: 145655][tid: 23216200812352][ WARN]: 'mem-stores' does not name a known event, ignoring! (reason: invalid event description format)
[1520949515309536587][pid: 145679][tid: 23152841975616][ WARN]: 'topdown-fetch-bubbles' does not name a known event, ignoring! (reason: invalid event description format)
[1520949515639141582][pid: 145682][tid: 22822416369472][ WARN]: 'topdown-recovery-bubbles' does not name a known event, ignoring! (reason: invalid event description format)
[1520949515980633943][pid: 145685][tid: 22358194542400][ WARN]: 'topdown-slots-issued' does not name a known event, ignoring! (reason: invalid event description format)
[1520949516298616919][pid: 145688][tid: 22903656126272][ WARN]: 'topdown-slots-retired' does not name a known event, ignoring! (reason: invalid event description format)
[1520949516620537082][pid: 145691][tid: 23438165481280][ WARN]: 'topdown-total-slots' does not name a known event, ignoring! (reason: invalid event description format)
[1520949517015805982][pid: 145694][tid: 23294414817088][ WARN]: 'uncore_imc_0/cas_count_read/' does not name a known event, ignoring! (reason: invalid event description format)
[1520949517343824552][pid: 145697][tid: 23086704023360][ WARN]: 'uncore_imc_0/cas_count_write/' does not name a known event, ignoring! (reason: invalid event description format)
[1520949517852904624][pid: 145700][tid: 22687199635264][ WARN]: 'uncore_imc_0/clockticks/' does not name a known event, ignoring! (reason: invalid event description format)
[1520949518463225062][pid: 145703][tid: 22443907602240][ WARN]: 'uncore_imc_1/cas_count_read/' does not name a known event, ignoring! (reason: invalid event description format)
[1520949518783667369][pid: 145706][tid: 22735522232128][ WARN]: 'uncore_imc_1/cas_count_write/' does not name a known event, ignoring! (reason: invalid event description format)
[1520949519106952222][pid: 145709][tid: 23203987441472][ WARN]: 'uncore_imc_1/clockticks/' does not name a known event, ignoring! (reason: invalid event description format)
[1520949519907982646][pid: 145712][tid: 23399232497472][ WARN]: 'uncore_imc_2/cas_count_read/' does not name a known event, ignoring! (reason: invalid event description format)
[1520949520235113867][pid: 145715][tid: 22613617203008][ WARN]: 'uncore_imc_2/cas_count_write/' does not name a known event, ignoring! (reason: invalid event description format)
[1520949520562242780][pid: 145718][tid: 23216503871296][ WARN]: 'uncore_imc_2/clockticks/' does not name a known event, ignoring! (reason: invalid event description format)
[1520949521085226993][pid: 145721][tid: 22985270167360][ WARN]: 'uncore_imc_3/cas_count_read/' does not name a known event, ignoring! (reason: invalid event description format)
[1520949521422397393][pid: 145724][tid: 22958099597120][ WARN]: 'uncore_imc_3/cas_count_write/' does not name a known event, ignoring! (reason: invalid event description format)
[1520949522087378662][pid: 145727][tid: 23283892287296][ WARN]: 'uncore_imc_3/clockticks/' does not name a known event, ignoring! (reason: invalid event description format)

bmario avatar Mar 13 '18 14:03 bmario