/tools/perf/ |
A D | command-list.txt | 2 # List of known perf commands. 5 perf-annotate mainporcelain common 6 perf-archive mainporcelain common 7 perf-bench mainporcelain common 10 perf-data mainporcelain common 11 perf-diff mainporcelain common 12 perf-c2c mainporcelain common 20 perf-kvm mainporcelain common 22 perf-list mainporcelain common 24 perf-mem mainporcelain common [all …]
|
A D | Build | 1 perf-bench-y += builtin-bench.o 2 perf-y += builtin-annotate.o 3 perf-y += builtin-check.o 4 perf-y += builtin-config.o 5 perf-y += builtin-diff.o 6 perf-y += builtin-evlist.o 8 perf-y += builtin-help.o 16 perf-y += builtin-top.o 42 perf-y += perf.o 59 perf-y += arch/ [all …]
|
A D | .gitignore | 6 perf 10 perf-help 11 perf-record 12 perf-report 13 perf-stat 14 perf-top 15 perf*.1 16 perf*.xml 17 perf*.html 19 perf*.data [all …]
|
/tools/perf/tests/ |
A D | Build | 3 perf-test-y += builtin-test.o 6 perf-test-y += dso-data.o 12 perf-test-y += perf-record.o 16 perf-test-y += pmu.o 27 perf-test-y += wp.o 40 perf-test-y += mem.o 42 perf-test-y += stat.o 47 perf-test-y += sdt.o 50 perf-test-y += perf-hooks.o 60 perf-test-y += pfm.o [all …]
|
/tools/perf/Documentation/ |
A D | perf.txt | 1 perf(1) 81 linkperf:perf-stat[1], linkperf:perf-top[1], 82 linkperf:perf-record[1], linkperf:perf-report[1], 89 linkperf:perf-config[1], linkperf:perf-data[1], linkperf:perf-diff[1], 90 linkperf:perf-evlist[1], linkperf:perf-ftrace[1], 91 linkperf:perf-help[1], linkperf:perf-inject[1], 92 linkperf:perf-intel-pt[1], linkperf:perf-iostat[1], linkperf:perf-kallsyms[1], 93 linkperf:perf-kmem[1], linkperf:perf-kvm[1], linkperf:perf-lock[1], 94 linkperf:perf-mem[1], linkperf:perf-probe[1], linkperf:perf-sched[1], 95 linkperf:perf-script[1], linkperf:perf-test[1], [all …]
|
A D | tips.txt | 6 Customize output of perf script with: perf script -F event,ip,sym 8 Save output of perf stat using: perf stat record <target workload> 19 Profiling branch (mis)predictions with: perf record -b / perf report 22 Treat branches as callchains: perf record -b ... ; perf report --branch-history 23 Show estimate cycles per function and IPC in annotate use perf record -b ... ; perf report --total-… 27 For memory address profiling, try: perf mem record / perf mem report 33 To not record events from perf itself add --exclude-perf 40 To compute metrics for samples use perf record -e '{cycles,instructions}' ... ; perf script -F +met… 54 To analyze cache line scalability issues use perf c2c record ... ; perf c2c report 59 Add -I to perf record to sample register values, which will be visible in perf report sample contex… [all …]
|
A D | perf-daemon.txt | 1 perf-daemon(1) 13 'perf daemon' 14 'perf daemon' [<options>] 129 # perf daemon start 134 # perf daemon 144 # perf daemon -v 172 # perf daemon ping 184 [ perf record: Dump perf.data.2020123017013149 ] 195 [ perf record: Dump perf.data.2020123017024689 ] 198 [ perf record: Dump perf.data.2020123017024713 ] [all …]
|
A D | perf.data-directory-format.txt | 1 perf.data directory format 23 $ tree -ps perf.data 24 perf.data 34 $ sudo perf record --kcore uname 36 [ perf record: Woken up 1 times to write data ] 37 [ perf record: Captured and wrote 0.015 MB perf.data (9 samples) ] 38 $ sudo tree -ps perf.data 39 perf.data 47 $ sudo perf script -v 53 Using perf.data/kcore_dir/kcore for kernel data [all …]
|
/tools/perf/util/ |
A D | Build | 6 perf-util-y += annotate.o 11 perf-util-y += config.o 13 perf-util-y += ctype.o 15 perf-util-y += disasm.o 17 perf-util-y += env.o 18 perf-util-y += event.o 21 perf-util-y += evsel.o 28 perf-util-y += mmap.o 34 perf-util-y += perf-regs-arch/ 45 perf-util-y += smt.o [all …]
|
/tools/perf/tests/shell/ |
A D | lock_contention.sh | 47 perf lock record -o ${perfdata} -- perf bench sched messaging -p > /dev/null 2>&1 67 perf lock con -a -b -E 1 -q -- perf bench sched messaging -p > /dev/null 2> ${result} 78 perf lock record -o- -- perf bench sched messaging -p 2> /dev/null | \ 102 perf lock con -a -b -t -E 1 -q -- perf bench sched messaging -p > /dev/null 2> ${result} 125 perf lock con -a -b -l -E 1 -q -- perf bench sched messaging -p > /dev/null 2> ${result} 143 perf lock con -a -b -g -E 1 -q -- perf bench sched messaging -p > /dev/null 2> ${result} 165 perf lock con -a -b -Y spinlock -q -- perf bench sched messaging -p > /dev/null 2> ${result} 197 perf lock con -a -b -L tasklist_lock -q -- perf bench sched messaging -p > /dev/null 2> ${result} 225 …perf lock con -a -b -S unix_stream -E 1 -q -- perf bench sched messaging -p > /dev/null 2> ${resul… 269 …perf lock con -a -b -g -E 1 -F wait_total -q -- perf bench sched messaging -p > /dev/null 2> ${res… [all …]
|
A D | pipe_test.sh | 13 data=$(mktemp /tmp/perf.data.XXXXXX) 14 data2=$(mktemp /tmp/perf.data2.XXXXXX) 42 if ! perf record -e task-clock:u -o - ${prog} | perf report -i - --task | grep -q ${task} 49 if ! perf record -g -e task-clock:u -o - ${prog} | perf report -i - --task | grep -q ${task} 73 …if ! perf record -e task-clock:u -o - ${prog} | perf inject ${inject_opt}| perf report -i - | grep… 80 …if ! perf record -g -e task-clock:u -o - ${prog} | perf inject ${inject_opt} | perf report -i - | … 87 perf record -e task-clock:u -o - ${prog} | perf inject ${inject_opt} -o ${data} 94 perf record -e task-clock:u -o ${data} ${prog} 95 if ! perf inject ${inject_opt} -i ${data} | perf report -i - | grep -q ${sym}; then 102 if ! perf inject ${inject_opt} -i ${data} | perf report -i - | grep -q ${sym}; then [all …]
|
A D | record.sh | 21 perfdata=$(mktemp /tmp/__perf_test.perf.data.XXXXX) 22 script_output=$(mktemp /tmp/__perf_test.perf.data.XXXXX.script) 66 if ! perf report -i "${perfdata}" -q | grep -q "${testsym}" 89 if ! perf report -i "${perfdata}" -q | grep -q "${testsym}" 101 if ! perf list pmu | grep -q 'br_inst_retired.near_call' 113 | perf script -F ip,sym,iregs -i - 2> /dev/null \ 154 if ! perf record -o "${perfdata}" ${testprog} 2> /dev/null 166 if ! perf record -e cpu-clock,cs --threads=package \ 221 if ! perf report -i "${perfdata}" -D | grep -q "CGROUP" 264 perf test -w brstack 2> /dev/null [all …]
|
A D | record_offcpu.sh | 8 perfdata=$(mktemp /tmp/__perf_test.perf.data.XXXXX) 37 if perf version --build-options 2>&1 | grep HAVE_BPF_SKEL | grep -q OFF 48 if ! perf record --off-cpu -e dummy -o ${perfdata} sleep 1 2> /dev/null 54 if ! perf evlist -i ${perfdata} | grep -q "offcpu-time" 60 if ! perf report -i ${perfdata} -q --percent-limit=90 | grep -E -q sleep 73 if ! perf record --off-cpu -e dummy -o ${perfdata} -- \ 74 perf bench sched messaging -g 10 > /dev/null 2>&1 80 if ! perf evlist -i ${perfdata} | grep -q "offcpu-time" 87 if ! perf report -i ${perfdata} -s comm -q -n -t ';' --percent-limit=90 | \ 117 if ! perf script --time "0, ${dummy_timestamp}" -i ${perfdata} -F period | \ [all …]
|
A D | test_task_analyzer.sh | 5 tmpdir=$(mktemp -d /tmp/perf-script-task-analyzer-XXXXX) 18 rm -f perf.data 19 rm -f perf.data.old 58 perf check feature -q libtraceevent && return 0 75 perf script report task-analyzer > "$out" 89 perf script report task-analyzer --ms --filter-tasks perf --highlight-tasks perf \ 98 --limit-to-tasks perf > "$out" 105 perf script report task-analyzer --summary > "$out" 112 perf script report task-analyzer --summary-extended > "$out" 119 perf script report task-analyzer --summary-only > "$out" [all …]
|
A D | sched.sh | 13 perfdata=$(mktemp /tmp/__perf_test_sched.perf.data.XXXXX) 33 perf test -w noploop 10 & 36 perf test -w noploop 10 & 64 perf sched record --no-inherit -o "${perfdata}" sleep 1 72 if ! perf sched latency -i "${perfdata}" | grep -q perf-noploop 82 if ! perf sched script -i "${perfdata}" | grep -q perf-noploop 92 if ! perf sched map -i "${perfdata}" | grep -q perf-noploop 102 if ! perf sched timehist -i "${perfdata}" | grep -q perf-noploop
|
A D | record_bpf_filter.sh | 8 perfdata=$(mktemp /tmp/__perf_test.perf.data.XXXXX) 25 if ! perf record -e task-clock --filter 'period > 1' \ 51 if perf script -i "${perfdata}" -F ip | grep 'ffffffff[0-9a-f]*' 70 if ! perf record -e task-clock --filter 'cpu > 0' \ 78 if ! perf record --sample-cpu -e task-clock --filter 'cpu > 0' \ 92 if ! perf record -e task-clock --filter 'period > 1000, ip > 0' \ 122 if ! perf record -e task-clock --filter 'period > 100000' \ 139 if perf script -i "${perfdata}" -F event,ip | grep page-fault | \ 153 if ! perf record -e task-clock --filter 'cgroup == /' \ 161 if ! perf record -e task-clock --filter 'cgroup == /' \ [all …]
|
/tools/perf/trace/beauty/ |
A D | Build | 1 perf-y += clone.o 2 perf-y += fcntl.o 3 perf-y += flock.o 4 perf-y += fs_at_flags.o 5 perf-y += fsmount.o 6 perf-y += fspick.o 8 perf-y += ioctl.o 10 perf-y += kcmp.o 15 perf-y += prctl.o 18 perf-y += socket.o [all …]
|
/tools/perf/bench/ |
A D | Build | 1 perf-bench-y += sched-messaging.o 2 perf-bench-y += sched-pipe.o 4 perf-bench-y += syscall.o 5 perf-bench-y += mem-functions.o 6 perf-bench-y += futex.o 7 perf-bench-y += futex-hash.o 8 perf-bench-y += futex-wake.o 12 perf-bench-y += epoll-wait.o 13 perf-bench-y += epoll-ctl.o 20 perf-bench-y += pmu-scan.o [all …]
|
/tools/perf/arch/x86/util/ |
A D | Build | 1 perf-util-y += header.o 2 perf-util-y += tsc.o 3 perf-util-y += pmu.o 5 perf-util-y += perf_regs.o 6 perf-util-y += topdown.o 7 perf-util-y += machine.o 8 perf-util-y += event.o 9 perf-util-y += evlist.o 11 perf-util-y += evsel.o 12 perf-util-y += iostat.o [all …]
|
/tools/perf/tests/shell/attr/ |
A D | README | 3 This testing support is embedded into perf directly and is governed 8 each event created within single perf command. Each event details 9 are stored into separate text file. Once perf command is finished 33 Following tests are defined (with perf commands): 35 perf record kill (test-record-basic) 44 perf record -c 123 kill (test-record-count) 45 perf record -d kill (test-record-data) 46 perf record -F 100 kill (test-record-freq) 49 perf record --call-graph dwarf kill (test-record-graph-dwarf) 61 perf record -R kill (test-record-raw) [all …]
|
/tools/perf/ui/ |
A D | Build | 1 perf-ui-y += setup.o 2 perf-ui-y += helpline.o 3 perf-ui-y += progress.o 4 perf-ui-y += util.o 5 perf-ui-y += hist.o 6 perf-ui-y += stdio/hist.o 10 perf-ui-$(CONFIG_SLANG) += browser.o 11 perf-ui-$(CONFIG_SLANG) += keysyms.o 12 perf-ui-$(CONFIG_SLANG) += browsers/ 13 perf-ui-$(CONFIG_SLANG) += tui/
|
/tools/perf/arch/powerpc/util/ |
A D | Build | 1 perf-util-y += header.o 2 perf-util-$(CONFIG_LIBTRACEEVENT) += kvm-stat.o 3 perf-util-y += perf_regs.o 4 perf-util-y += mem-events.o 5 perf-util-y += pmu.o 6 perf-util-y += sym-handling.o 7 perf-util-y += evsel.o 9 perf-util-$(CONFIG_LIBDW) += skip-callchain-idx.o 11 perf-util-$(CONFIG_LIBUNWIND) += unwind-libunwind.o 12 perf-util-$(CONFIG_LIBDW_DWARF_UNWIND) += unwind-libdw.o
|
/tools/perf/util/perf-regs-arch/ |
A D | Build | 1 perf-util-y += perf_regs_aarch64.o 2 perf-util-y += perf_regs_arm.o 3 perf-util-y += perf_regs_csky.o 4 perf-util-y += perf_regs_loongarch.o 5 perf-util-y += perf_regs_mips.o 6 perf-util-y += perf_regs_powerpc.o 7 perf-util-y += perf_regs_riscv.o 8 perf-util-y += perf_regs_s390.o 9 perf-util-y += perf_regs_x86.o
|
/tools/perf/tests/shell/lib/ |
A D | stat_output.sh | 14 perf stat $2 true 27 perf stat -a $2 true 40 perf stat -A -a --no-merge $2 true 48 perf stat -I 1000 $2 true 56 perf stat -e cpu-clock $2 true 69 perf stat --per-core -a $2 true 95 perf stat --per-cache -a $2 true 108 perf stat --per-cluster -a $2 true 120 perf stat --per-die -a $2 true 133 perf stat --per-node -a $2 true [all …]
|
/tools/perf/python/ |
A D | twatch.py | 9 import perf 12 cpus = perf.cpu_map() 13 threads = perf.thread_map(thread) 14 evsel = perf.evsel(type = perf.TYPE_SOFTWARE, 15 config = perf.COUNT_SW_DUMMY, 19 sample_type = perf.SAMPLE_PERIOD | perf.SAMPLE_TID | perf.SAMPLE_CPU) 29 evlist = perf.evlist(cpus, threads)
|