WIP FPC-III support
[linux/fpc-iii.git] / tools / perf / scripts / python / bin / mem-phys-addr-record
blob5a875122a9049899c78de7329dac0c84ae86639e
1 #!/bin/bash
4 # Profiling physical memory by all retired load instructions/uops event
5 # MEM_INST_RETIRED.ALL_LOADS or MEM_UOPS_RETIRED.ALL_LOADS
8 load=`perf list | grep mem_inst_retired.all_loads`
9 if [ -z "$load" ]; then
10 load=`perf list | grep mem_uops_retired.all_loads`
12 if [ -z "$load" ]; then
13 echo "There is no event to count all retired load instructions/uops."
14 exit 1
17 arg=$(echo $load | tr -d ' ')
18 arg="$arg:P"
19 perf record --phys-data -e $arg $@