Searched refs:perf (Results 51 - 75 of 335) sorted by relevance

1234567891011>>

/linux-master/tools/perf/tests/shell/
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 Drecord_offcpu.sh2 # perf record offcpu profiling tests
8 perfdata=$(mktemp /tmp/__perf_test.perf.data.XXXXX)
31 if perf version --build-options 2>&1 | grep HAVE_BPF_SKEL | grep -q OFF
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 Dtest_task_analyzer.sh2 # perf script task-analyzer tests
5 tmpdir=$(mktemp -d /tmp/perf-script-task-analyzer-XXXXX)
15 rm -f perf.data
16 rm -f perf.data.old
53 # check if perf is compiled with libtraceevent support
55 perf version --build-options | grep -q " OFF .* HAVE_LIBTRACEEVENT" && return 2
61 perf record -e sched:sched_switch -a -- sleep 1 > /dev/null 2>&1
62 # check if perf data file got created in above step.
63 if [ ! -e "perf.data" ]; then
64 printf "FAIL: perf recor
[all...]
H A Drecord.sh2 # perf record tests
19 perfdata=$(mktemp /tmp/__perf_test.perf.data.XXXXX)
20 testprog="perf test -w thloop"
40 if ! perf record -o /dev/null --quiet ${testprog} 2> /dev/null
45 if ! perf record --per-thread -o "${perfdata}" ${testprog} 2> /dev/null
51 if ! perf report -i "${perfdata}" -q | grep -q "${testsym}"
65 perf record -p "${TESTPID}" --per-thread -o "${perfdata}" sleep 1 2> /dev/null
74 if ! perf report -i "${perfdata}" -q | grep -q "${testsym}"
86 if ! perf list | grep -q 'br_inst_retired.near_call'
91 if ! perf recor
[all...]
H A Dtest_arm_callgraph_fp.sh11 if perf version --build-options | grep HAVE_DWARF_UNWIND_SUPPORT | grep -q OFF
19 PERF_DATA=$(mktemp /tmp/__perf_test.perf.data.XXXXX)
20 TEST_PROGRAM="perf test -w leafloop"
31 perf record -o "$PERF_DATA" --call-graph fp -e cycles//u -D 1000 --user-callchains -- $TEST_PROGRAM 2> /dev/null &
36 echo " + Stopping perf-record..."
41 # expected perf-script output:
49 perf script -i "$PERF_DATA" -F comm,ip,sym | head -n4
50 perf script -i "$PERF_DATA" -F comm,ip,sym | head -n4 | \
H A Dstat_all_pfm.sh2 # perf all libpfm4 events test
5 if perf version --build-options | grep HAVE_LIBPFM | grep -q OFF
12 for p in $(perf list --raw-dump pfm)
20 result=$(perf stat --pfm-events "$p" true 2>&1)
35 result=$(perf stat --pfm-events "$p" perf bench internals synthesize 2>&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 Ddiff.sh2 # perf diff tests
8 perfdata1=$(mktemp /tmp/__perf_test.perf.data.XXXXX)
9 perfdata2=$(mktemp /tmp/__perf_test.perf.data.XXXXX)
10 perfdata3=$(mktemp /tmp/__perf_test.perf.data.XXXXX)
11 testprog="perf test -w thloop"
40 if ! perf record -o "${file}" ${testprog} 2> /dev/null
46 if ! perf report -i "${file}" -q | grep -q "${testsym}"
68 if ! perf diff "${perfdata1}" "${perfdata2}" | grep -q "${testsym}"
95 if ! perf diff "${perfdata1}" "${perfdata2}" "${perfdata3}" | grep -q "${testsym}"
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+script_probe_vfs_getname.sh4 # Uses the 'perf test shell' library to add probe:vfs_getname to the system
5 # then use it with 'perf record' using 'touch' to write to a temp file, then
7 # perf.data file, with the temp file name as the pathname argument.
22 # Check presence of libtraceevent support to run perf record
25 perf record -o ${perfdata} -e probe:vfs_getname\* touch $file
29 echo "Looking at perf.data file for vfs_getname records for the file we touched:"
30 perf script -i ${perfdata} | \
40 perfdata=$(mktemp /tmp/__perf_test.perf.data.XXXXX)
H A Drecord_sideband.sh2 # perf record sideband tests
8 perfdata=$(mktemp /tmp/__perf_test.perf.data.XXXXX)
25 if ! perf record -o ${perfdata} -BN --no-bpf-event -C $1 true > /dev/null 2>&1
42 perf record -BN --no-bpf-event -o ${perfdata} -C 0 -- taskset --cpu-list 1 true
45 mmap_cnt=`perf script -i ${perfdata} --show-mmap-events -C 1 2>/dev/null | grep MMAP | wc -l`
H A Dstat+csv_summary.sh2 # perf stat csv summary test
11 perf stat -e cycles -x' ' -I1000 --interval-count 1 --summary 2>&1 | \
24 perf stat -e cycles -x' ' -I1000 --interval-count 1 --summary --no-csv-summary 2>&1 | \
H A Dtest_perf_data_converter_json.sh2 # 'perf data convert --to-json' command test
13 perfdata=$(mktemp /tmp/__perf_test.perf.data.XXXXX)
33 perf record -o "$perfdata" -F 99 -g -- perf test -w noploop > /dev/null 2>&1
34 perf data convert --to-json "$result" --force -i "$perfdata" >/dev/null 2>&1
H A Dscript.sh2 # perf script tests
7 temp_dir=$(mktemp -d /tmp/perf-test-script.XXXXXXXXXX)
9 perfdatafile="${temp_dir}/perf.data"
18 if [ "${sane}" = "/tmp/perf-test-script" ] ; then
39 if perf version --build-options | grep python | grep -q OFF ; then
63 perf record $cmd_flags -o "${perfdatafile}" true
64 perf script -i "${perfdatafile}" -s "${db_test}"
/linux-master/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-cluster -a $2 true
120 perf sta
[all...]
/linux-master/tools/perf/scripts/perl/bin/
H A Dcheck-perf-trace-record2 perf record -a -e kmem:kmalloc -e irq:softirq_entry -e kmem:kfree
H A Dfailed-syscalls-report10 perf script $@ -s "$PERF_EXEC_PATH"/scripts/perl/failed-syscalls.pl $comm
H A Drw-by-file-report10 perf script $@ -s "$PERF_EXEC_PATH"/scripts/perl/rw-by-file.pl $comm
H A Drw-by-pid-record2 perf record -e syscalls:sys_enter_read -e syscalls:sys_exit_read -e syscalls:sys_enter_write -e syscalls:sys_exit_write $@
H A Drwtop-record2 perf record -e syscalls:sys_enter_read -e syscalls:sys_exit_read -e syscalls:sys_enter_write -e syscalls:sys_exit_write $@
/linux-master/tools/perf/scripts/python/bin/
H A Dsched-migration-record2 perf record -m 16384 -e sched:sched_wakeup -e sched:sched_wakeup_new -e sched:sched_switch -e sched:sched_migrate_task $@
H A Dsyscall-counts-report10 perf script $@ -s "$PERF_EXEC_PATH"/scripts/python/syscall-counts.py $comm
/linux-master/tools/perf/
H A Dperf-iostat.sh3 # perf iostat
12 perf stat --iostat$DELIMITER$*
/linux-master/drivers/gpu/drm/msm/disp/dpu1/
H A Ddpu_core_perf.c112 struct dpu_core_perf_params *perf)
116 if (!perf_cfg || !crtc || !state || !perf) {
121 memset(perf, 0, sizeof(struct dpu_core_perf_params));
124 perf->bw_ctl = 0;
125 perf->max_per_pipe_ib = 0;
126 perf->core_clk_rate = 0;
128 perf->bw_ctl = core_perf->fix_core_ab_vote;
129 perf->max_per_pipe_ib = core_perf->fix_core_ib_vote;
130 perf->core_clk_rate = core_perf->fix_core_clk_rate;
132 perf
109 _dpu_core_perf_calc_crtc(const struct dpu_core_perf *core_perf, struct drm_crtc *crtc, struct drm_crtc_state *state, struct dpu_core_perf_params *perf) argument
210 struct dpu_core_perf_params perf = { 0 }; local
404 struct dpu_core_perf *perf = file->private_data; local
432 struct dpu_core_perf *perf = file->private_data; local
451 struct dpu_core_perf *perf = &dpu_kms->perf; local
485 dpu_core_perf_init(struct dpu_core_perf *perf, const struct dpu_perf_cfg *perf_cfg, unsigned long max_core_clk_rate) argument
[all...]
/linux-master/drivers/gpu/drm/i915/selftests/
H A Di915_perf.c20 alloc_empty_config(struct i915_perf *perf) argument
28 oa_config->perf = perf;
33 mutex_lock(&perf->metrics_lock);
35 oa_config->id = idr_alloc(&perf->metrics_idr, oa_config, 2, 0, GFP_KERNEL);
37 mutex_unlock(&perf->metrics_lock);
42 mutex_unlock(&perf->metrics_lock);
48 destroy_empty_config(struct i915_perf *perf) argument
53 mutex_lock(&perf->metrics_lock);
55 idr_for_each_entry(&perf
72 get_empty_config(struct i915_perf *perf) argument
92 test_stream(struct i915_perf *perf) argument
427 struct i915_perf *perf = &i915->perf; local
[all...]

Completed in 274 milliseconds

1234567891011>>