| /linux/drivers/ntb/test/ |
| H A D | ntb_perf.c | 144 struct perf_ctx *perf; member 169 struct perf_ctx *perf; member 205 int (*cmd_recv)(struct perf_ctx *perf, int *pidx, enum perf_cmd *cmd, 247 static void perf_terminate_test(struct perf_ctx *perf); 253 link = ntb_link_is_up(peer->perf->ntb, NULL, NULL); in perf_link_is_up() 260 struct perf_ctx *perf = peer->perf; in perf_spad_cmd_send() local 264 dev_dbg(&perf->ntb->dev, "CMD send: %d 0x%llx\n", cmd, data); in perf_spad_cmd_send() 277 sts = ntb_peer_spad_read(perf->ntb, peer->pidx, in perf_spad_cmd_send() 278 PERF_SPAD_CMD(perf->gidx)); in perf_spad_cmd_send() 284 ntb_peer_spad_write(perf->ntb, peer->pidx, in perf_spad_cmd_send() [all …]
|
| /linux/tools/perf/tests/ |
| H A D | Build | 3 perf-test-y += builtin-test.o 4 perf-test-y += tests-scripts.o 5 perf-test-y += parse-events.o 6 perf-test-y += dso-data.o 7 perf-test-y += vmlinux-kallsyms.o 8 perf-test-y += openat-syscall.o 9 perf-test-y += openat-syscall-all-cpus.o 10 perf-test-$(CONFIG_LIBTRACEEVENT) += openat-syscall-tp-fields.o 11 perf-test-y += mmap-basic.o 12 perf-test-y += perf-record.o [all …]
|
| /linux/tools/perf/util/ |
| H A D | Build | 4 perf-util-y += annotate-arch/ 5 perf-util-y += arm64-frame-pointer-unwind-support.o 6 perf-util-y += addr2line.o 7 perf-util-y += addr_location.o 8 perf-util-y += annotate.o 9 perf-util-y += blake2s.o 10 perf-util-y += block-info.o 11 perf-util-y += block-range.o 12 perf-util-y += build-id.o 13 perf-util-y += cacheline.o [all …]
|
| /linux/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
| H A D | perf.c | 34 u32 perf = 0; in nvbios_perf_table() local 38 perf = nvbios_rd32(bios, bit_P.offset + 0); in nvbios_perf_table() 39 if (perf) { in nvbios_perf_table() 40 *ver = nvbios_rd08(bios, perf + 0); in nvbios_perf_table() 41 *hdr = nvbios_rd08(bios, perf + 1); in nvbios_perf_table() 43 *cnt = nvbios_rd08(bios, perf + 5); in nvbios_perf_table() 44 *len = nvbios_rd08(bios, perf + 2); in nvbios_perf_table() 45 *snr = nvbios_rd08(bios, perf + 4); in nvbios_perf_table() 46 *ssz = nvbios_rd08(bios, perf + 3); in nvbios_perf_table() 47 return perf; in nvbios_perf_table() [all …]
|
| /linux/drivers/gpu/drm/msm/ |
| H A D | msm_perf.c | 41 static int wait_sample(struct msm_perf_state *perf) in wait_sample() argument 45 if (time_after(perf->next_jiffies, start_jiffies)) { in wait_sample() 47 perf->next_jiffies - start_jiffies; in wait_sample() 54 perf->next_jiffies += SAMPLE_TIME; in wait_sample() 58 static int refill_buf(struct msm_perf_state *perf) in refill_buf() argument 60 struct msm_drm_private *priv = perf->dev->dev_private; in refill_buf() 62 char *ptr = perf->buf; in refill_buf() 63 int rem = sizeof(perf->buf); in refill_buf() 66 if ((perf->cnt++ % 32) == 0) { in refill_buf() 86 ret = wait_sample(perf); in refill_buf() [all …]
|
| /linux/tools/perf/Documentation/ |
| H A D | tips.txt | 1 For a higher level overview, try: perf report --sort comm,dso 2 Sample related events with: perf record -e '{cycles,instructions}:S' 3 Compare performance results with: perf diff [<old file> <new file>] 4 Boolean options have negative forms, e.g.: perf report --no-children 6 Customize output of perf script with: perf script -F event,ip,sym 7 Generate a script for your data: perf script -g <lang> 8 Save output of perf stat using: perf stat record <target workload> 9 Create an archive with symtabs to analyse on other machine: perf archiv [all...] |
| H A D | perf.txt | 1 perf(1) 6 perf - Performance analysis tools for Linux 11 'perf' [--version] [--help] [OPTIONS] COMMAND [ARGS] 17 Run perf help command. 21 Display perf version. 44 List the most commonly used perf commands. 47 List available perf options. 64 perf-event-open - Print perf_event_open() arguments and 66 kmaps - Print kernel and module maps (perf script 67 and perf report without browser) [all …]
|
| H A D | perf-daemon.txt | 1 perf-daemon(1) 7 perf-daemon - Run record sessions on background 13 'perf daemon' 14 'perf daemon' [<options>] 15 'perf daemon start' [<options>] 16 'perf daemon stop' [<options>] 17 'perf daemon signal' [<options>] 18 'perf daemon ping' [<options>] 26 You can imagine 'perf daemon' of background process with several 27 'perf record' child tasks, like: [all …]
|
| H A D | perf-kvm.txt | 1 perf-kvm(1) 6 perf-kvm - Tool to trace/measure kvm guest os 11 'perf kvm' [--host] [--guest] [--guestmount=<path> 14 'perf kvm' [--host] [--guest] [--guestkallsyms=<path> --guestmodules=<path> 16 'perf kvm stat [record|report|live] [<options>] 20 There are a couple of variants of perf kvm: 22 'perf kvm [options] top <command>' to generates and displays 26 'perf kvm record <command>' to record the performance counter profile 27 of an arbitrary workload and save it into a perf data file. We set the 28 default behavior of perf kvm as --guest, so if neither --host nor --guest [all …]
|
| H A D | perf.data-directory-format.txt | 1 perf.data directory format 4 in following versions of perf. We will remove this 8 This document describes the on-disk perf.data directory format. 20 - there is a single perf.data file named 'data' within the directory. 23 $ tree -ps perf.data 24 perf.data 30 Currently the only 'perf record' option to output to a directory is 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) ] [all …]
|
| /linux/tools/perf/tests/shell/ |
| H A D | lock_contention.sh | 8 perfdata=$(mktemp /tmp/__perf_test.perf.data.XXXXX) 36 if ! perf list tracepoint | grep -q lock:contention_begin; then 53 perf lock record -o ${perfdata} -- perf bench sched messaging -p > /dev/null 2>&1 55 perf lock contention -i ${perfdata} -E 1 -q 2> ${result} 67 if ! perf lock con -b true > /dev/null 2>&1 ; then 73 perf lock con -a -b -E 1 -q -- perf bench sched messaging -p > /dev/null 2> ${result} 84 perf lock record -o- -- perf bench sched messaging -p 2> ${errout} | \ 85 perf lock contention -i- -E 1 -q 2> ${result} 98 perf lock contention -i ${perfdata} -t -E 1 -q 2> ${result} 105 if ! perf lock con -b true > /dev/null 2>&1 ; then [all …]
|
| H A D | record.sh | 21 perfdata=$(mktemp /tmp/__perf_test.perf.data.XXXXX) 22 script_output=$(mktemp /tmp/__perf_test.perf.data.XXXXX.script) 55 if ! perf record -o /dev/null --quiet ${testprog} 2> /dev/null 60 if ! perf record --per-thread -o "${perfdata}" ${testprog} 2> /dev/null 66 if ! perf report -i "${perfdata}" -q | grep -q "${testsym}" 80 perf record -p "${TESTPID}" --per-thread -o "${perfdata}" sleep 1 2> /dev/null 89 if ! perf report -i "${perfdata}" -q | grep -q "${testsym}" 101 if ! perf list pmu | grep -q 'br_inst_retired.near_call' 106 …if ! perf record --intr-regs=\? 2>&1 | grep -q 'available registers: AX BX CX DX SI DI BP SP IP FL… 111 if ! perf record -o - --intr-regs=di,r8,dx,cx -e br_inst_retired.near_call \ [all …]
|
| H A D | test_brstack.sh | 13 if ! perf record -o- --no-buildid --branch-filter any,save_type,u -- true > /dev/null 2>&1 ; then 51 …perf record -o "$TMPDIR/perf.data" --branch-filter any,save_type,u -- ${TESTPROG} > "$TMPDIR/recor… 52 perf script -i "$TMPDIR/perf.data" --fields brstacksym > "$TMPDIR/perf.script" 73 perf script -i "$TMPDIR/perf.data" --fields brstack | \ 78 if grep -E -m1 "0x[89a-f][0-9a-f]{15}" $TMPDIR/perf.script; then 91 perf record -o $TMPDIR/perf.data --branch-filter any,save_type,u,k -- \ 92 perf test -w traploop 1000 93 perf script -i $TMPDIR/perf.data --fields brstacksym | \ 94 tr ' ' '\n' > $TMPDIR/perf.script 105 if ! perf record --branch-filter any,k -o- -- true > /dev/null; then [all …]
|
| H A D | stat.sh | 8 stat_output=$(mktemp /tmp/perf-stat-test-output.XXXXX) 25 if ! perf stat true 2>&1 | grep -E -q "Performance counter stats for 'true':" 36 if ! perf stat --null true 2>&1 | grep -E -q "Performance counter stats for 'true':" 62 if ! perf stat "-C$cpu" -e cycles true 2>&1 | grep -E -q "No supported events found." 73 if ! perf stat record -e task-clock -o - true | perf stat report -i - 2>&1 | \ 85 if ! perf stat record -e task-clock -o - true | perf script -i - 2>&1 | \ 97 if ! perf stat -e '{cycles,cycles,cycles,cycles,cycles,cycles,cycles,cycles,cycles,cycles}' \ 103 …if ! perf stat -r2 -e '{cycles,cycles,cycles,cycles,cycles,cycles,cycles,cycles,cycles,cycles}:W' \ 117 if ! perf stat -e '{slots,topdown-retiring}' true > /dev/null 2>&1 126 if perf stat -e "$events" true 2>&1 | grep -E -q "<not supported>" [all …]
|
| H A D | perf_sched_stats.sh | 10 if ! perf sched stats record true 2>&1 | \ 22 perf sched stats record true > /dev/null 23 if ! perf sched stats report 2>&1 | grep -E -q "Description" 27 rm perf.data 30 rm perf.data 36 if ! perf sched stats true 2>&1 | grep -E -q "Description" 47 perf sched stats record true > /dev/null 48 perf sched stats record true > /dev/null 49 if ! perf sched stats diff > /dev/null 53 rm perf.data.old perf.data [all …]
|
| /linux/tools/perf/ |
| H 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 7 perf-y += builtin-ftrace.o 8 perf-y += builtin-help.o 9 perf-y += builtin-buildid-list.o 10 perf-y += builtin-buildid-cache.o [all …]
|
| H A D | .gitignore | 6 perf 7 !include/perf/ 8 perf-read-vdso32 9 perf-read-vdsox32 10 perf-help 11 perf-record 12 perf-report 13 perf-stat 14 perf-top 15 perf*.1 [all …]
|
| /linux/tools/perf/bench/ |
| H A D | Build | 1 perf-bench-y += sched-messaging.o 2 perf-bench-y += sched-pipe.o 3 perf-bench-y += sched-seccomp-notify.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 9 perf-bench-y += futex-wake-parallel.o 10 perf [all...] |
| /linux/tools/perf/trace/beauty/ |
| H 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 11 perf-y += mount_flags.o 12 perf-y += move_mount.o [all …]
|
| /linux/drivers/cpufreq/ |
| H A D | amd-pstate.c | 141 static inline u8 freq_to_perf(union perf_cached perf, u32 nominal_freq, unsigned int freq_val) in freq_to_perf() argument 143 u32 perf_val = DIV_ROUND_UP_ULL((u64)freq_val * perf.nominal_perf, nominal_freq); in freq_to_perf() 145 return (u8)clamp(perf_val, perf.lowest_perf, perf.highest_perf); in freq_to_perf() 148 static inline u32 perf_to_freq(union perf_cached perf, u32 nominal_freq, u8 perf_val) in perf_to_freq() argument 151 perf.nominal_perf); in perf_to_freq() 248 union perf_cached perf = READ_ONCE(cpudata->perf); in msr_update_perf() local 251 perf.highest_perf, in msr_update_perf() 299 union perf_cached perf = cpudata->perf; in msr_set_epp() local 301 trace_amd_pstate_epp_perf(cpudata->cpu, perf.highest_perf, in msr_set_epp() 344 union perf_cached perf = cpudata->perf; in shmem_set_epp() local [all …]
|
| H A D | acpi-cpufreq.c | 199 struct acpi_processor_performance *perf; in extract_io() local 202 perf = to_perf_data(data); in extract_io() 204 for (i = 0; i < perf->state_count; i++) { in extract_io() 205 if (value == perf->states[i].status) in extract_io() 215 struct acpi_processor_performance *perf; in extract_msr() local 224 perf = to_perf_data(data); in extract_msr() 227 if (msr == perf->states[pos->driver_data].status) in extract_msr() 309 struct acpi_processor_performance *perf = to_perf_data(data); in drv_read() local 311 .reg = &perf->control_register, in drv_read() 331 struct acpi_processor_performance *perf = to_perf_data(data); in drv_write() local [all …]
|
| /linux/drivers/gpu/drm/i915/ |
| H A D | i915_perf.c | 411 i915_perf_get_oa_config(struct i915_perf *perf, int metrics_set) in i915_perf_get_oa_config() argument 416 oa_config = idr_find(&perf->metrics_idr, metrics_set); in i915_perf_get_oa_config() 471 (GRAPHICS_VER(stream->perf->i915) == 12 ? in oa_report_reason() 487 stream->perf->gen8_valid_ctx_bit); in oa_report_ctx_invalid() 559 hw_tail = stream->perf->ops.oa_hw_tail_read(stream); in oa_buffer_check_unlocked() 598 __ratelimit(&stream->perf->tail_pointer_race)) in oa_buffer_check_unlocked() 907 oaheadptr = GRAPHICS_VER(stream->perf->i915) == 12 ? in gen8_append_oa_reports() 960 oastatus_reg = GRAPHICS_VER(stream->perf->i915) == 12 ? in gen8_oa_read() 986 drm_dbg(&stream->perf->i915->drm, in gen8_oa_read() 990 stream->perf->ops.oa_disable(stream); in gen8_oa_read() [all …]
|
| /linux/drivers/gpu/drm/i915/selftests/ |
| H A D | i915_perf.c | 20 alloc_empty_config(struct i915_perf *perf) in alloc_empty_config() argument 28 oa_config->perf = perf; in alloc_empty_config() 33 mutex_lock(&perf->metrics_lock); in alloc_empty_config() 35 oa_config->id = idr_alloc(&perf->metrics_idr, oa_config, 2, 0, GFP_KERNEL); in alloc_empty_config() 37 mutex_unlock(&perf->metrics_lock); in alloc_empty_config() 42 mutex_unlock(&perf->metrics_lock); in alloc_empty_config() 48 destroy_empty_config(struct i915_perf *perf) in destroy_empty_config() argument 53 mutex_lock(&perf->metrics_lock); in destroy_empty_config() 55 idr_for_each_entry(&perf->metrics_idr, tmp, id) { in destroy_empty_config() 63 idr_remove(&perf->metrics_idr, oa_config->id); in destroy_empty_config() [all …]
|
| /linux/tools/perf/arch/x86/util/ |
| H A D | Build | 1 perf-util-y += header.o 2 perf-util-y += tsc.o 3 perf-util-y += pmu.o 4 perf-util-y += topdown.o 5 perf-util-y += machine.o 6 perf-util-y += event.o 7 perf-util-y += evlist.o 8 perf-util-y += mem-events.o 9 perf-util-y += evsel.o 10 perf-util-y += iostat.o [all …]
|
| /linux/tools/perf/python/ |
| H A D | tracepoint.py | 6 import perf 17 cpus = perf.cpu_map() 18 threads = perf.thread_map(-1) 19 evlist = perf.parse_events("sched:sched_switch", cpus, threads) 27 ev.sample_type = ev.sample_type & ~perf.SAMPLE_IP 41 if not isinstance(event, perf.sample_event):
|