Thanks for trying it out!
To get context-sensitive profile, you will need to collect perf data with both LBR and stack sample enabled. We use something like this:
perf record -g --call-graph fp -e br_inst_retired.near_taken:uppp -c 16009 -b -o <perf_data_output> <command_to_profile>
Here’s the perf script command to extract both LBR and stack sample:
perf script -F ip,brstack -i <perf_data_output> --show-mmap-event &> <perf_script_output>
Let us know how it works.
Thanks,
Wenlei