[Dropping Sudeep as he has nothing to do with this]
On 24 March 2017 at 13:04, Kim Phillips kim.phillips@arm.com wrote:
and searching for etr in the current documentation, I assume you mean I should execute perf like this?:
root@juno:~# taskset -c 2 /home/kim/git/OpenCSD/tools/perf/perf record -o perf-etm.data -e cs_etm/@20070000.etr/u --per-thread taskset -c 2 ./sort-O3 failed to mmap with 12 (Cannot allocate memory) root@juno:~#
Two things can happen here:
1) The name for the ETR is wrong 2) This isn't a perf-opencsd-4.11-rc1 kernel
I'd like you to do two things:
1) From the cmd line, "ls /sys/bus/coresight/devices/" 2) Also from the cmd line, "uname -a"
Mathieu
it doesn't matter how many times I invoke it, I get the same message (and no hints in dmesg). I've tried without the /u, but still no dice.
Here's the -vvv version:
root@juno:~# taskset -c 2 /home/kim/git/OpenCSD/tools/perf/perf record -vvv -o perf-etm.data -e cs_etm/@20070000.etr/u --per-thread taskset -c 2 ./sort-O3
perf_event_attr: type 8 size 112 { sample_period, sample_freq } 1 sample_type IP|TID|IDENTIFIER read_format ID disabled 1 exclude_kernel 1 exclude_hv 1 enable_on_exec 1 sample_id_all 1
sys_perf_event_open: pid 2528 cpu -1 group_fd -1 flags 0x8 = 4
perf_event_attr: type 1 size 112 config 0x9 { sample_period, sample_freq } 1 sample_type IP|TID|IDENTIFIER read_format ID disabled 1 exclude_kernel 1 exclude_hv 1 mmap 1 comm 1 enable_on_exec 1 task 1 sample_id_all 1 mmap2 1 comm_exec 1
sys_perf_event_open: pid 2528 cpu -1 group_fd -1 flags 0x8 = 5 mmap size 528384B AUX area mmap length 4194304 perf event ring buffer mmapped per thread failed to mmap AUX area failed to mmap with 12 (Cannot allocate memory) root@juno:~#
Thanks,
Kim