Note that this will still give warnings[2] but collection will still occur whereas the current behavior is that the application will print an error and exit[3].
[2] Example on VM.Optimized3.Flex, Ubuntu 20.04, Intel(R) Xeon(R) Gold 6354
$ sudo ./perf-collect --cloud oci
These events are not supported with current version of perf, will not be collected!
topdown.slots,
power/energy-pkg/,
power/energy-ram/;
upi/event=0x2,umask=0xf,name='UNC_UPI_TxL_FLITS.ALL_DATA'/,
upi/event=0x2,umask=0x97,name='UNC_UPI_TxL_FLITS.NON_DATA'/,
upi/event=0x1,umask=0x0,name='UNC_UPI_CLOCKTICKS'/;
cha/event=0x35,umask=0xC816FE01,name='UNC_CHA_TOR_INSERTS.IA_MISS_DRD_LOCAL'/,
cha/event=0x35,umask=0xC8177E01,name='UNC_CHA_TOR_INSERTS.IA_MISS_DRD_REMOTE'/,
cha/event=0x35,umask=0xC896FE01,name='UNC_CHA_TOR_INSERTS.IA_MISS_DRD_PREF_LOCAL'/,
cha/event=0x35,umask=0xC8977E01,name='UNC_CHA_TOR_INSERTS.IA_MISS_DRD_PREF_REMOTE'/;
cha/event=0x00,umask=0x00,name='UNC_CHA_CLOCKTICKS'/;
imc/event=0xd3,umask=0x01,name='UNC_M_TAGCHK.HIT'/,
imc/event=0xd3,umask=0x02,name='UNC_M_TAGCHK.MISS_CLEAN'/,
imc/event=0xd3,umask=0x04,name='UNC_M_TAGCHK.MISS_DIRTY'/;
imc/event=0x04,umask=0x0f,name='UNC_M_CAS_COUNT.RD'/,
imc/event=0x04,umask=0x30,name='UNC_M_CAS_COUNT.WR'/;
Collecting perf stat for events in : /home/ubuntu/cloudcompute.perfspect/events/icx_oci.txt
[3] Example
$ sudo ./perf-collect --cloud oci
These events are not supported with current version of perf, will not be collected!
power/energy-pkg/,
power/energy-ram/;
upi/event=0x2,umask=0xf,name='UNC_UPI_TxL_FLITS.ALL_DATA'/,
upi/event=0x2,umask=0x97,name='UNC_UPI_TxL_FLITS.NON_DATA'/,
upi/event=0x1,umask=0x0,name='UNC_UPI_CLOCKTICKS'/;
cha/event=0x35,umask=0xC816FE01,name='UNC_CHA_TOR_INSERTS.IA_MISS_DRD_LOCAL'/,
cha/event=0x35,umask=0xC8177E01,name='UNC_CHA_TOR_INSERTS.IA_MISS_DRD_REMOTE'/,
cha/event=0x35,umask=0xC896FE01,name='UNC_CHA_TOR_INSERTS.IA_MISS_DRD_PREF_LOCAL'/,
cha/event=0x35,umask=0xC8977E01,name='UNC_CHA_TOR_INSERTS.IA_MISS_DRD_PREF_REMOTE'/;
cha/event=0x00,umask=0x00,name='UNC_CHA_CLOCKTICKS'/;
imc/event=0x04,umask=0x0f,name='UNC_M_CAS_COUNT.RD'/,
imc/event=0x04,umask=0x30,name='UNC_M_CAS_COUNT.WR'/;
Collecting perf stat for events in : icx.txt
Consider using cloudtype flag to set instance type -> VM/BM; Default is VM
Error:
The sys_perf_event_open() syscall returned with 22 (Invalid argument) for event (slots).
/bin/dmesg | grep -i perf may provide additional information.
Collection complete! Calculating TSC frequency now
perf stat dumped to /home/opc/perfspect/results/perfstat.csv
This PR adds support for Oracle Cloud (OCI)
Note that this will still give warnings[2] but collection will still occur whereas the current behavior is that the application will print an error and exit[3].
[1] Tested on the following:
[2] Example on
VM.Optimized3.Flex
,Ubuntu 20.04
,Intel(R) Xeon(R) Gold 6354
[3] Example
Signed-off-by: Aaron Blakeman aaron.blakeman@intel.com