Home
last modified time | relevance | path

Searched refs:perf (Results 26 - 50 of 430) sorted by relevance

12345678910>>...18

/kernel/linux/linux-6.6/tools/perf/tests/shell/lib/
H A Dstat_output.sh14 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
82 perf stat --per-thread -a $2 true
95 perf stat --per-cache -a $2 true
108 perf stat --per-die -a $2 true
121 perf sta
[all...]
H A Dprobe_vfs_getname.sh4 perf probe -l 2>&1 | grep -q probe:vfs_getname
9 perf probe -q -d probe:vfs_getname*
16 line=$(perf probe -L getname_flags 2>&1 | grep -E 'result.*=.*filename;' | sed -r 's/[[:space:]]+([[:digit:]]+)[[:space:]]+result->uptr.*/\1/')
17 perf probe -q "vfs_getname=getname_flags:${line} pathname=result->name:string" || \
18 perf probe $add_probe_verbose "vfs_getname=getname_flags:${line} pathname=filename:ustring"
27 # check if perf is compiled with libtraceevent support
30 perf record --dry-run -e $1 2>&1 | grep "libtraceevent is necessary for tracepoint support" && return 2
/kernel/linux/linux-6.6/tools/perf/tests/shell/
H A Dtest_arm_coresight.sh4 # Uses the 'perf record' to record trace data with Arm CoreSight sinks;
6 # are generated by CoreSight with 'perf script' and 'perf report'
15 perf list | grep -q 'cs_etm//' && return 0
23 perfdata=$(mktemp /tmp/__perf_test.perf.data.XXXXX)
40 perf record -o ${perfdata} -e cs_etm/@$1/u --per-thread \
45 echo "Looking at perf.data file for dumping branch samples:"
51 perf script -F,-time -i ${perfdata} 2>&1 | \
56 echo "Looking at perf.data file for reporting branch samples:"
62 perf repor
[all...]
H A Dstat+json_output.sh2 # perf stat JSON output linter
4 # Checks various perf stat JSON output commands for the
49 perf stat -j -o "${stat_output}" true
62 perf stat -j -a -o "${stat_output}" true
75 perf stat -j -A -a --no-merge -o "${stat_output}" true
83 perf stat -j -I 1000 -o "${stat_output}" true
92 perf stat -j -e cpu-clock -o "${stat_output}" true
105 perf stat -j --per-core -a -o "${stat_output}" true
118 perf stat -j --per-thread -a -o "${stat_output}" true
131 perf sta
[all...]
H A Drecord_bpf_filter.sh2 # perf record sample filtering (by BPF) tests
8 perfdata=$(mktemp /tmp/__perf_test.perf.data.XXXXX)
31 if ! perf record -e task-clock --filter 'period > 1' \
43 if ! perf record -e task-clock -c 10000 --filter 'ip < 0xffffffff00000000' \
50 if perf script -i "${perfdata}" -F ip | grep 'ffffffff[0-9a-f]*'
69 if ! perf record -e task-clock --filter 'cpu > 0' \
77 if ! perf record --sample-cpu -e task-clock --filter 'cpu > 0' \
91 if ! perf record -e task-clock --filter 'period > 1000 || ip > 0' \
99 if ! perf record -e task-clock --filter 'cpu > 0 || ip > 0' \
107 if ! perf recor
[all...]
H A Drecord_offcpu.sh2 # perf record offcpu profiling tests
8 perfdata=$(mktemp /tmp/__perf_test.perf.data.XXXXX)
31 if perf record --off-cpu -o /dev/null --quiet true 2>&1 | grep BUILD_BPF_SKEL
42 if ! perf record --off-cpu -e dummy -o ${perfdata} sleep 1 2> /dev/null
48 if ! perf evlist -i ${perfdata} | grep -q "offcpu-time"
54 if ! perf report -i ${perfdata} -q --percent-limit=90 | grep -E -q sleep
66 # perf bench sched messaging creates 400 processes
67 if ! perf record --off-cpu -e dummy -o ${perfdata} -- \
68 perf bench sched messaging -g 10 > /dev/null 2>&1
74 if ! perf evlis
[all...]
H A Dstat_bpf_counters.sh2 # perf stat --bpf-counters test
25 if ! perf stat -e cycles --bpf-counters true > /dev/null 2>&1; then
28 perf --no-pager stat -e cycles --bpf-counters true || true
33 base_cycles=$(perf stat --no-big-num -e cycles -- perf bench sched messaging -g 1 -l 100 -t 2>&1 | awk '/cycles/ {print $1}')
38 bpf_cycles=$(perf stat --no-big-num --bpf-counters -e cycles -- perf bench sched messaging -g 1 -l 100 -t 2>&1 | awk '/cycles/ {print $1}')
H A Dtest_arm_spe.sh4 # Uses the 'perf record' to record trace data of Arm SPE events;
6 # 'perf script' and 'perf report' commands.
12 perf list | grep -E -q 'arm_spe_[0-9]+//' && return 0
20 perfdata=$(mktemp /tmp/__perf_test.perf.data.XXXXX)
44 echo "Looking at perf.data file for dumping samples:"
53 perf script -F,-time -i ${perfdata} 2>&1 | \
58 echo "Looking at perf.data file for reporting samples:"
64 perf report --stdio -i ${perfdata} 2>&1 | \
70 perf recor
[all...]
H A Dtest_intel_pt.sh8 perf list | grep -q 'intel_pt//' || exit 2
17 temp_dir=$(mktemp -d /tmp/perf-test-intel-pt-sh.XXXXXXXXXX)
19 tmpfile="${temp_dir}/tmp-perf.data"
20 perfdatafile="${temp_dir}/test-perf.data"
32 if [ "${sane}" = "/tmp/perf-test-intel-pt-sh" ] ; then
47 # perf record for testing without decoding
52 perf record -B -N --no-bpf-event "$@"
55 # perf record for testing should not need BPF events
59 perf record --no-bpf-event "$@"
116 mmap_cnt=$(perf scrip
[all...]
H A Dtest_data_symbol.sh8 perf mem record -e list 2>&1 | grep -E -q 'available' && return 0
14 TEST_PROGRAM="perf test -w datasym"
15 PERF_DATA=$(mktemp /tmp/__perf_test.perf.data.XXXXX)
20 result=$(perf mem report -i ${PERF_DATA} -s symbol_daddr -q 2>&1 |
48 # perf mem/c2c internally uses IBS PMU on AMD CPU which doesn't support
53 perf mem record -o ${PERF_DATA} -C 0 -- taskset -c 0 $TEST_PROGRAM &
55 perf mem record --all-user -o ${PERF_DATA} -- $TEST_PROGRAM &
H A Drecord+probe_libc_inet_pton.sh5 # then use 'perf trace' on a ping to localhost asking for just one packet
23 event_name=$(perf probe -f -x $libc -a inet_pton 2>&1 | tail -n +2 | head -n -5 | \
56 perf_data=`mktemp -u /tmp/perf.data.XXX`
57 perf_script=`mktemp -u /tmp/perf.script.XXX`
59 # Check presence of libtraceevent support to run perf record
63 perf record -e $event_name/$eventattr/ -o $perf_data ping -6 -c 1 ::1 > /dev/null 2>&1
64 # check if perf data file got created in above step.
66 printf "FAIL: perf record failed to create \"%s\" \n" "$perf_data"
69 perf script -i $perf_data | tac | grep -m1 ^ping -B9 | tac > $perf_script
86 # even if the perf scrip
[all...]
H A Dtest_java_symbol.sh13 PERF_DATA=$(mktemp /tmp/__perf_test.perf.data.XXXXX)
14 PERF_INJ_DATA=$(mktemp /tmp/__perf_test.perf.data.inj.XXXXX)
25 if [ -e "$PWD/tools/perf/libperf-jvmti.so" ]; then
26 LIBJVMTI=$PWD/tools/perf/libperf-jvmti.so
41 cat <<EOF | perf record -k 1 -o $PERF_DATA jshell -s -J-agentpath:$LIBJVMTI
59 if ! DEBUGINFOD_URLS='' perf inject -i $PERF_DATA -o $PERF_INJ_DATA -j; then
67 perf report --stdio -i ${PERF_INJ_DATA} 2>&1 | \
/test/xts/acts/distributeddatamgr/preferencesjstest/hap/entry/src/ohosTest/js/test/
H A DStorageHelperJsunit.test.js104 let perf = storage.getStorageSync('/data/test_storage1');
105 perf.putSync('test', 2);
124 let perf = storage.getStorageSync('/data/test_storage2');
125 perf = null;
143 let perf = storage.getStorageSync('/data/test_storage2');
144 perf = null;
160 let perf = storage.getStorageSync('/data/test_storage3');
167 perf.putSync("int", 3);
182 let perf = storage.getStorageSync('/data/test_storage4');
183 perf
[all...]
/kernel/linux/linux-5.10/tools/perf/tests/shell/
H A Dtest_arm_coresight.sh4 # Uses the 'perf record' to record trace data with Arm CoreSight sinks;
6 # are generated by CoreSight with 'perf script' and 'perf report'
12 perfdata=$(mktemp /tmp/__perf_test.perf.data.XXXXX)
16 perf list | grep -q 'cs_etm//' && return 0
35 perf record -o ${perfdata} -e cs_etm/@$1/u --per-thread \
40 echo "Looking at perf.data file for dumping branch samples:"
46 perf script -F,-time -i ${perfdata} | \
51 echo "Looking at perf.data file for reporting branch samples:"
57 perf repor
[all...]
H A Dbuildid.sh17 ex_md5=$(mktemp /tmp/perf.ex.MD5.XXX)
18 ex_sha1=$(mktemp /tmp/perf.ex.SHA1.XXX)
58 build_id_dir=$(mktemp -d /tmp/perf.debug.XXX)
59 perf="perf --buildid-dir ${build_id_dir}"
61 ${perf} buildid-cache -v -a ${1}
74 data=$(mktemp /tmp/perf.data.XXX)
75 build_id_dir=$(mktemp -d /tmp/perf.debug.XXX)
76 perf="perf
[all...]
H A Drecord+probe_libc_inet_pton.sh5 # then use 'perf trace' on a ping to localhost asking for just one packet
22 event_name=$(perf probe -f -x $libc -a inet_pton 2>&1 | tail -n +2 | head -n -5 | \
57 perf_data=`mktemp -u /tmp/perf.data.XXX`
58 perf_script=`mktemp -u /tmp/perf.script.XXX`
59 perf record -e $event_name/$eventattr/ -o $perf_data ping -6 -c 1 ::1 > /dev/null 2>&1
60 perf script -i $perf_data > $perf_script
77 # even if the perf script output does not match.
83 perf probe -q -d $event_name
/kernel/linux/linux-5.10/tools/lib/perf/
H A DMakefile63 -I$(srctree)/tools/lib/perf/include \
172 $(call do_install,include/perf/core.h,$(prefix)/include/perf,644); \
173 $(call do_install,include/perf/cpumap.h,$(prefix)/include/perf,644); \
174 $(call do_install,include/perf/threadmap.h,$(prefix)/include/perf,644); \
175 $(call do_install,include/perf/evlist.h,$(prefix)/include/perf,644); \
176 $(call do_install,include/perf/evse
[all...]
/kernel/linux/linux-5.10/tools/lib/perf/Documentation/examples/
H A Dcounting.c2 #include <perf/evlist.h>
3 #include <perf/evsel.h>
4 #include <perf/cpumap.h>
5 #include <perf/threadmap.h>
6 #include <perf/mmap.h>
7 #include <perf/core.h>
8 #include <perf/event.h>
H A Dsampling.c2 #include <perf/evlist.h>
3 #include <perf/evsel.h>
4 #include <perf/cpumap.h>
5 #include <perf/threadmap.h>
6 #include <perf/mmap.h>
7 #include <perf/core.h>
8 #include <perf/event.h>
/kernel/linux/linux-6.6/tools/lib/perf/Documentation/examples/
H A Dcounting.c2 #include <perf/evlist.h>
3 #include <perf/evsel.h>
4 #include <perf/cpumap.h>
5 #include <perf/threadmap.h>
6 #include <perf/mmap.h>
7 #include <perf/core.h>
8 #include <perf/event.h>
H A Dsampling.c2 #include <perf/evlist.h>
3 #include <perf/evsel.h>
4 #include <perf/cpumap.h>
5 #include <perf/threadmap.h>
6 #include <perf/mmap.h>
7 #include <perf/core.h>
8 #include <perf/event.h>
/kernel/linux/linux-5.10/tools/perf/tests/shell/lib/
H A Dprobe_vfs_getname.sh3 perf probe -l 2>&1 | grep -q probe:vfs_getname
8 perf probe -q -d probe:vfs_getname*
15 line=$(perf probe -L getname_flags 2>&1 | egrep 'result.*=.*filename;' | sed -r 's/[[:space:]]+([[:digit:]]+)[[:space:]]+result->uptr.*/\1/')
16 perf probe -q "vfs_getname=getname_flags:${line} pathname=result->name:string" || \
17 perf probe $verbose "vfs_getname=getname_flags:${line} pathname=filename:ustring"
/kernel/linux/linux-5.10/lib/raid6/
H A Dalgos.c164 unsigned long perf, bestgenperf, bestxorperf, j0, j1; in raid6_choose_gen() local
179 perf = 0; in raid6_choose_gen()
188 perf++; in raid6_choose_gen()
192 if (perf > bestgenperf) { in raid6_choose_gen()
193 bestgenperf = perf; in raid6_choose_gen()
197 (perf * HZ * (disks-2)) >> in raid6_choose_gen()
203 perf = 0; in raid6_choose_gen()
213 perf++; in raid6_choose_gen()
218 bestxorperf = perf; in raid6_choose_gen()
221 (perf * H in raid6_choose_gen()
[all...]
/kernel/linux/linux-6.6/tools/perf/
H A Dcheck-headers.sh93 # These copies are under tools/perf/trace/beauty/ as they are not used to in
94 # building object files only by scripts in tools/perf/trace/beauty/ to generate
135 check_2 "tools/perf/trace/beauty/$file" "$file" "$@"
138 # Check if we have the kernel headers (tools/perf/../../include), else
173 check_2 tools/perf/arch/x86/entry/syscalls/syscall_64.tbl arch/x86/entry/syscalls/syscall_64.tbl
174 check_2 tools/perf/arch/powerpc/entry/syscalls/syscall.tbl arch/powerpc/kernel/syscalls/syscall.tbl
175 check_2 tools/perf/arch/s390/entry/syscalls/syscall.tbl arch/s390/kernel/syscalls/syscall.tbl
176 check_2 tools/perf/arch/mips/entry/syscalls/syscall_n64.tbl arch/mips/kernel/syscalls/syscall_n64.tbl
184 check_2 tools/perf/util/hashmap.h tools/lib/bpf/hashmap.h
185 check_2 tools/perf/uti
[all...]
/kernel/linux/linux-6.6/lib/raid6/
H A Dalgos.c162 unsigned long perf, bestgenperf, j0, j1; in raid6_choose_gen() local
177 perf = 0; in raid6_choose_gen()
186 perf++; in raid6_choose_gen()
190 if (perf > bestgenperf) { in raid6_choose_gen()
191 bestgenperf = perf; in raid6_choose_gen()
195 (perf * HZ * (disks-2)) >> in raid6_choose_gen()
219 perf = 0; in raid6_choose_gen()
229 perf++; in raid6_choose_gen()
234 (perf * HZ * (disks - 2)) >> in raid6_choose_gen()

Completed in 7 milliseconds

12345678910>>...18