Home
last modified time | relevance | path

Searched refs:perf (Results 1 - 25 of 425) sorted by relevance

12345678910>>...17

/kernel/linux/linux-5.10/drivers/ntb/test/
H A Dntb_perf.c144 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 in perf_spad_cmd_send()
304 perf_spad_cmd_recv(struct perf_ctx *perf, int *pidx, enum perf_cmd *cmd, u64 *data) perf_spad_cmd_recv() argument
351 struct perf_ctx *perf = peer->perf; perf_msg_cmd_send() local
393 perf_msg_cmd_recv(struct perf_ctx *perf, int *pidx, enum perf_cmd *cmd, u64 *data) perf_msg_cmd_recv() argument
423 struct perf_ctx *perf = peer->perf; perf_cmd_send() local
456 perf_cmd_recv(struct perf_ctx *perf) perf_cmd_recv() argument
484 struct perf_ctx *perf = ctx; perf_link_event() local
506 struct perf_ctx *perf = ctx; perf_db_event() local
517 struct perf_ctx *perf = ctx; perf_msg_event() local
539 struct perf_ctx *perf = peer->perf; perf_setup_outbuf() local
571 struct perf_ctx *perf = peer->perf; perf_setup_inbuf() local
658 perf_init_service(struct perf_ctx *perf) perf_init_service() argument
696 perf_enable_service(struct perf_ctx *perf) perf_enable_service() argument
740 perf_disable_service(struct perf_ctx *perf) perf_disable_service() argument
863 struct perf_ctx *perf = data; perf_dma_filter() local
873 struct perf_ctx *perf = pthr->perf; perf_init_test() local
925 struct perf_ctx *perf = pthr->perf; perf_run_test() local
968 struct perf_ctx *perf = pthr->perf; perf_sync_test() local
997 struct perf_ctx *perf = pthr->perf; perf_clear_test() local
1051 perf_set_tcnt(struct perf_ctx *perf, u8 tcnt) perf_set_tcnt() argument
1066 perf_terminate_test(struct perf_ctx *perf) perf_terminate_test() argument
1081 struct perf_ctx *perf = peer->perf; perf_submit_test() local
1117 perf_read_stats(struct perf_ctx *perf, char *buf, size_t size, ssize_t *pos) perf_read_stats() argument
1152 perf_init_threads(struct perf_ctx *perf) perf_init_threads() argument
1172 perf_clear_threads(struct perf_ctx *perf) perf_clear_threads() argument
1185 struct perf_ctx *perf = filep->private_data; perf_dbgfs_read_info() local
1268 struct perf_ctx *perf = filep->private_data; perf_dbgfs_read_run() local
1290 struct perf_ctx *perf = filep->private_data; perf_dbgfs_write_run() local
1319 struct perf_ctx *perf = filep->private_data; perf_dbgfs_read_tcnt() local
1332 struct perf_ctx *perf = filep->private_data; perf_dbgfs_write_tcnt() local
1353 perf_setup_dbgfs(struct perf_ctx *perf) perf_setup_dbgfs() argument
1380 perf_clear_dbgfs(struct perf_ctx *perf) perf_clear_dbgfs() argument
1392 struct perf_ctx *perf; perf_create_data() local
1411 struct perf_ctx *perf = peer->perf; perf_setup_peer_mw() local
1438 perf_init_peers(struct perf_ctx *perf) perf_init_peers() argument
1486 struct perf_ctx *perf; perf_probe() local
1514 struct perf_ctx *perf = ntb->ctx; perf_remove() local
[all...]
/kernel/linux/linux-6.6/drivers/ntb/test/
H A Dntb_perf.c144 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 in perf_spad_cmd_send()
304 perf_spad_cmd_recv(struct perf_ctx *perf, int *pidx, enum perf_cmd *cmd, u64 *data) perf_spad_cmd_recv() argument
351 struct perf_ctx *perf = peer->perf; perf_msg_cmd_send() local
393 perf_msg_cmd_recv(struct perf_ctx *perf, int *pidx, enum perf_cmd *cmd, u64 *data) perf_msg_cmd_recv() argument
423 struct perf_ctx *perf = peer->perf; perf_cmd_send() local
456 perf_cmd_recv(struct perf_ctx *perf) perf_cmd_recv() argument
484 struct perf_ctx *perf = ctx; perf_link_event() local
506 struct perf_ctx *perf = ctx; perf_db_event() local
517 struct perf_ctx *perf = ctx; perf_msg_event() local
539 struct perf_ctx *perf = peer->perf; perf_setup_outbuf() local
571 struct perf_ctx *perf = peer->perf; perf_setup_inbuf() local
658 perf_init_service(struct perf_ctx *perf) perf_init_service() argument
696 perf_enable_service(struct perf_ctx *perf) perf_enable_service() argument
740 perf_disable_service(struct perf_ctx *perf) perf_disable_service() argument
863 struct perf_ctx *perf = data; perf_dma_filter() local
873 struct perf_ctx *perf = pthr->perf; perf_init_test() local
925 struct perf_ctx *perf = pthr->perf; perf_run_test() local
968 struct perf_ctx *perf = pthr->perf; perf_sync_test() local
997 struct perf_ctx *perf = pthr->perf; perf_clear_test() local
1051 perf_set_tcnt(struct perf_ctx *perf, u8 tcnt) perf_set_tcnt() argument
1066 perf_terminate_test(struct perf_ctx *perf) perf_terminate_test() argument
1081 struct perf_ctx *perf = peer->perf; perf_submit_test() local
1117 perf_read_stats(struct perf_ctx *perf, char *buf, size_t size, ssize_t *pos) perf_read_stats() argument
1152 perf_init_threads(struct perf_ctx *perf) perf_init_threads() argument
1172 perf_clear_threads(struct perf_ctx *perf) perf_clear_threads() argument
1185 struct perf_ctx *perf = filep->private_data; perf_dbgfs_read_info() local
1268 struct perf_ctx *perf = filep->private_data; perf_dbgfs_read_run() local
1290 struct perf_ctx *perf = filep->private_data; perf_dbgfs_write_run() local
1319 struct perf_ctx *perf = filep->private_data; perf_dbgfs_read_tcnt() local
1332 struct perf_ctx *perf = filep->private_data; perf_dbgfs_write_tcnt() local
1353 perf_setup_dbgfs(struct perf_ctx *perf) perf_setup_dbgfs() argument
1380 perf_clear_dbgfs(struct perf_ctx *perf) perf_clear_dbgfs() argument
1392 struct perf_ctx *perf; perf_create_data() local
1411 struct perf_ctx *perf = peer->perf; perf_setup_peer_mw() local
1438 perf_init_peers(struct perf_ctx *perf) perf_init_peers() argument
1486 struct perf_ctx *perf; perf_probe() local
1514 struct perf_ctx *perf = ntb->ctx; perf_remove() local
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/
H A Dmsm_perf.c41 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()
123 struct msm_perf_state *perf = file->private_data; perf_read() local
152 struct msm_perf_state *perf = inode->i_private; perf_open() local
180 struct msm_perf_state *perf = inode->i_private; perf_release() local
199 struct msm_perf_state *perf; msm_perf_debugfs_init() local
221 struct msm_perf_state *perf = priv->perf; msm_perf_debugfs_cleanup() local
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/msm/
H A Dmsm_perf.c41 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()
123 struct msm_perf_state *perf = file->private_data; perf_read() local
152 struct msm_perf_state *perf = inode->i_private; perf_open() local
183 struct msm_perf_state *perf = inode->i_private; perf_release() local
202 struct msm_perf_state *perf; msm_perf_debugfs_init() local
224 struct msm_perf_state *perf = priv->perf; msm_perf_debugfs_cleanup() local
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
H A Dperf.c26 #include <subdev/bios/perf.h>
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 in nvbios_perf_table()
83 u32 perf = nvbios_perf_table(bios, ver, hdr, cnt, len, &snr, &ssz); nvbios_perf_entry() local
98 u32 perf = nvbios_perf_entry(bios, idx, ver, hdr, cnt, len); nvbios_perfEp() local
206 u32 perf = nvbios_perf_table(bios, &ver, &hdr, &cnt, &len, &snr, &ssz); nvbios_perf_fan_parse() local
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
H A Dperf.c26 #include <subdev/bios/perf.h>
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 in nvbios_perf_table()
83 u32 perf = nvbios_perf_table(bios, ver, hdr, cnt, len, &snr, &ssz); nvbios_perf_entry() local
98 u32 perf = nvbios_perf_entry(bios, idx, ver, hdr, cnt, len); nvbios_perfEp() local
206 u32 perf = nvbios_perf_table(bios, &ver, &hdr, &cnt, &len, &snr, &ssz); nvbios_perf_fan_parse() local
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/disp/dpu1/
H A Ddpu_core_perf.c55 bw_factor = kms->catalog->perf.bw_inefficiency_factor; in _dpu_core_perf_calc_bw()
92 clk_factor = kms->catalog->perf.clk_inefficiency_factor; in _dpu_core_perf_calc_clk()
111 struct dpu_core_perf_params *perf) in _dpu_core_perf_calc_crtc()
115 if (!kms || !kms->catalog || !crtc || !state || !perf) { in _dpu_core_perf_calc_crtc()
121 memset(perf, 0, sizeof(struct dpu_core_perf_params)); in _dpu_core_perf_calc_crtc()
123 if (kms->perf.perf_tune.mode == DPU_PERF_MODE_MINIMUM) { in _dpu_core_perf_calc_crtc()
124 perf->bw_ctl = 0; in _dpu_core_perf_calc_crtc()
125 perf->max_per_pipe_ib = 0; in _dpu_core_perf_calc_crtc()
126 perf->core_clk_rate = 0; in _dpu_core_perf_calc_crtc()
127 } else if (kms->perf in _dpu_core_perf_calc_crtc()
108 _dpu_core_perf_calc_crtc(struct dpu_kms *kms, struct drm_crtc *crtc, struct drm_crtc_state *state, struct dpu_core_perf_params *perf) _dpu_core_perf_calc_crtc() argument
214 struct dpu_core_perf_params perf = { 0 }; _dpu_core_perf_crtc_update_bus() local
429 struct dpu_core_perf *perf = file->private_data; _dpu_core_perf_mode_write() local
463 struct dpu_core_perf *perf = file->private_data; _dpu_core_perf_mode_read() local
484 struct dpu_core_perf *perf = &dpu_kms->perf; dpu_core_perf_debugfs_init() local
519 dpu_core_perf_destroy(struct dpu_core_perf *perf) dpu_core_perf_destroy() argument
532 dpu_core_perf_init(struct dpu_core_perf *perf, struct drm_device *dev, struct dpu_mdss_cfg *catalog, struct dss_clk *core_clk) dpu_core_perf_init() argument
[all...]
/kernel/linux/linux-6.6/tools/perf/tests/shell/
H A Dtest_brstack.sh9 if ! perf record -o- --no-buildid --branch-filter any,save_type,u -- true > /dev/null 2>&1 ; then
15 TESTPROG="perf test -w brstack"
26 perf record -o $TMPDIR/perf.data --branch-filter any,save_type,u -- ${TESTPROG} > /dev/null 2>&1
27 perf script -i $TMPDIR/perf.data --fields brstacksym | xargs -n1 > $TMPDIR/perf.script
33 grep -E -m1 "^brstack_bench\+[^ ]*/brstack_foo\+[^ ]*/IND_CALL/.*$" $TMPDIR/perf.script
34 grep -E -m1 "^brstack_foo\+[^ ]*/brstack_bar\+[^ ]*/CALL/.*$" $TMPDIR/perf.script
35 grep -E -m1 "^brstack_bench\+[^ ]*/brstack_foo\+[^ ]*/CALL/.*$" $TMPDIR/perf
[all...]
H A Dlock_contention.sh8 perfdata=$(mktemp /tmp/__perf_test.perf.data.XXXXX)
30 if ! perf list | grep -q lock:contention_begin; then
39 echo "Testing perf lock record and perf lock contention"
40 perf lock record -o ${perfdata} -- perf bench sched messaging > /dev/null 2>&1
42 perf lock contention -i ${perfdata} -E 1 -q 2> ${result}
52 echo "Testing perf lock contention --use-bpf"
54 if ! perf lock con -b true > /dev/null 2>&1 ; then
59 # the perf loc
[all...]
H A Dstat.sh2 # perf stat tests
10 if ! perf stat true 2>&1 | grep -E -q "Performance counter stats for 'true':"
21 if ! perf stat record -o - true | perf stat report -i - 2>&1 | \
33 if ! perf stat record -o - true | perf script -i - 2>&1 | \
45 if ! perf stat -e '{cycles,cycles,cycles,cycles,cycles,cycles,cycles,cycles,cycles,cycles}' \
51 if ! perf stat -r2 -e '{cycles,cycles,cycles,cycles,cycles,cycles,cycles,cycles,cycles,cycles}:W' \
65 if ! perf stat -e '{slots,topdown-retiring}' true > /dev/null 2>&1
70 if perf sta
[all...]
H A Drecord.sh2 # perf record tests
11 perfdata=$(mktemp /tmp/__perf_test.perf.data.XXXXX)
12 testprog="perf test -w thloop"
30 if ! perf record -o /dev/null --quiet ${testprog} 2> /dev/null
35 if ! perf record --per-thread -o "${perfdata}" ${testprog} 2> /dev/null
41 if ! perf report -i "${perfdata}" -q | grep -q "${testsym}"
55 perf record -p "${TESTPID}" --per-thread -o "${perfdata}" sleep 1 2> /dev/null
64 if ! perf report -i "${perfdata}" -q | grep -q "${testsym}"
76 if ! perf list | grep -q 'br_inst_retired.near_call'
81 if ! perf recor
[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 Ddaemon.sh118 line=`perf daemon --config ${config} -x: | head -1`
126 perf daemon stop --config ${config}
137 perf daemon start --config ${config}
146 state=`perf daemon ping --config ${config} --session ${session} | awk '{ print $1 }'`
162 config=$(mktemp /tmp/perf.daemon.config.XXX)
164 base=$(mktemp -d /tmp/perf.daemon.base.XXX)
185 line=`perf daemon --config ${config} -x: | head -1`
191 line=`perf daemon --config ${config} -x: | head -2 | tail -1`
199 line=`perf daemon --config ${config} -x: | head -3 | tail -1`
216 config=$(mktemp /tmp/perf
[all...]
H A Dbuildid.sh20 if ! perf version --build-options | grep -q 'libbfd: .* on '; then
21 echo "WARNING: perf not built with libbfd. PE binaries will not be tested."
32 wineprefix=$(mktemp -d /tmp/perf.wineprefix.XXX)
39 ex_md5=$(mktemp /tmp/perf.ex.MD5.XXX)
40 ex_sha1=$(mktemp /tmp/perf.ex.SHA1.XXX)
106 ${perf} buildid-cache -l | grep ${id}
108 echo "failed: ${id} is not reported by \"perf buildid-cache -l\""
117 build_id_dir=$(mktemp -d /tmp/perf.debug.XXX)
118 perf="perf
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/
H A Di915_perf.c35 * This i915 perf interface enables userspace to configure and open a file
56 * i915 perf file descriptors represent a "stream" instead of an "event"; where
57 * a perf event primarily corresponds to a single 64bit value, while a stream
61 * of related counters. Samples for an i915 perf stream capturing OA metrics
68 * i915 perf stream configurations are provided as an array of u64 (key,value)
72 * i915 perf doesn't support exposing metrics via an mmap'd circular buffer.
85 * The first prototype of this driver was based on the core perf
87 * perf, we found we were breaking or working around too many assumptions baked
88 * into perf's currently cpu centric design.
90 * In the end we didn't see a clear benefit to making perf'
394 i915_perf_get_oa_config(struct i915_perf *perf, int metrics_set) i915_perf_get_oa_config() argument
1369 struct i915_perf *perf = stream->perf; i915_oa_stream_destroy() local
2824 struct i915_perf *perf = stream->perf; i915_oa_stream_init() local
3014 struct i915_perf *perf = stream->perf; i915_perf_read() local
3133 struct i915_perf *perf = stream->perf; i915_perf_poll() local
3277 struct i915_perf *perf = stream->perf; i915_perf_ioctl() local
3325 struct i915_perf *perf = stream->perf; i915_perf_release() local
3377 i915_perf_open_ioctl_locked(struct i915_perf *perf, struct drm_i915_perf_open_param *param, struct perf_open_properties *props, struct drm_file *file) i915_perf_open_ioctl_locked() argument
3512 oa_exponent_to_ns(struct i915_perf *perf, int exponent) oa_exponent_to_ns() argument
3532 read_properties_unlocked(struct i915_perf *perf, u64 __user *uprops, u32 n_props, struct perf_open_properties *props) read_properties_unlocked() argument
3720 struct i915_perf *perf = &to_i915(dev)->perf; i915_perf_open_ioctl() local
3763 struct i915_perf *perf = &i915->perf; i915_perf_register() local
3792 struct i915_perf *perf = &i915->perf; i915_perf_unregister() local
3801 gen8_is_valid_flex_addr(struct i915_perf *perf, u32 addr) gen8_is_valid_flex_addr() argument
3832 gen7_is_valid_b_counter_addr(struct i915_perf *perf, u32 addr) gen7_is_valid_b_counter_addr() argument
3839 gen7_is_valid_mux_addr(struct i915_perf *perf, u32 addr) gen7_is_valid_mux_addr() argument
3847 gen8_is_valid_mux_addr(struct i915_perf *perf, u32 addr) gen8_is_valid_mux_addr() argument
3854 gen10_is_valid_mux_addr(struct i915_perf *perf, u32 addr) gen10_is_valid_mux_addr() argument
3861 hsw_is_valid_mux_addr(struct i915_perf *perf, u32 addr) hsw_is_valid_mux_addr() argument
3869 chv_is_valid_mux_addr(struct i915_perf *perf, u32 addr) chv_is_valid_mux_addr() argument
3875 gen12_is_valid_b_counter_addr(struct i915_perf *perf, u32 addr) gen12_is_valid_b_counter_addr() argument
3886 gen12_is_valid_mux_addr(struct i915_perf *perf, u32 addr) gen12_is_valid_mux_addr() argument
3916 alloc_oa_regs(struct i915_perf *perf, bool (*is_valid)(struct i915_perf *perf, u32 addr), u32 __user *regs, u32 n_regs) alloc_oa_regs() argument
3977 create_dynamic_oa_sysfs_entry(struct i915_perf *perf, struct i915_oa_config *oa_config) create_dynamic_oa_sysfs_entry() argument
4012 struct i915_perf *perf = &to_i915(dev)->perf; i915_perf_add_config_ioctl() local
4165 struct i915_perf *perf = &to_i915(dev)->perf; i915_perf_remove_config_ioctl() local
4263 struct i915_perf *perf = &i915->perf; i915_perf_init() local
4426 struct i915_perf *perf = &i915->perf; i915_perf_fini() local
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/selftests/
H A Di915_perf.c20 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 in destroy_empty_config()
72 get_empty_config(struct i915_perf *perf) get_empty_config() argument
92 test_stream(struct i915_perf *perf) test_stream() argument
133 struct i915_perf *perf = stream->perf; stream_destroy() local
422 struct i915_perf *perf = &i915->perf; i915_perf_live_selftests() local
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/msm/disp/dpu1/
H A Ddpu_core_perf.c112 struct dpu_core_perf_params *perf) in _dpu_core_perf_calc_crtc()
116 if (!perf_cfg || !crtc || !state || !perf) { in _dpu_core_perf_calc_crtc()
121 memset(perf, 0, sizeof(struct dpu_core_perf_params)); in _dpu_core_perf_calc_crtc()
124 perf->bw_ctl = 0; in _dpu_core_perf_calc_crtc()
125 perf->max_per_pipe_ib = 0; in _dpu_core_perf_calc_crtc()
126 perf->core_clk_rate = 0; in _dpu_core_perf_calc_crtc()
128 perf->bw_ctl = core_perf->fix_core_ab_vote; in _dpu_core_perf_calc_crtc()
129 perf->max_per_pipe_ib = core_perf->fix_core_ib_vote; in _dpu_core_perf_calc_crtc()
130 perf->core_clk_rate = core_perf->fix_core_clk_rate; in _dpu_core_perf_calc_crtc()
132 perf in _dpu_core_perf_calc_crtc()
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) _dpu_core_perf_calc_crtc() argument
210 struct dpu_core_perf_params perf = { 0 }; _dpu_core_perf_crtc_update_bus() local
404 struct dpu_core_perf *perf = file->private_data; _dpu_core_perf_mode_write() local
432 struct dpu_core_perf *perf = file->private_data; _dpu_core_perf_mode_read() local
451 struct dpu_core_perf *perf = &dpu_kms->perf; dpu_core_perf_debugfs_init() local
485 dpu_core_perf_init(struct dpu_core_perf *perf, const struct dpu_perf_cfg *perf_cfg, unsigned long max_core_clk_rate) dpu_core_perf_init() argument
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/
H A Di915_perf.c35 * This i915 perf interface enables userspace to configure and open a file
56 * i915 perf file descriptors represent a "stream" instead of an "event"; where
57 * a perf event primarily corresponds to a single 64bit value, while a stream
61 * of related counters. Samples for an i915 perf stream capturing OA metrics
68 * i915 perf stream configurations are provided as an array of u64 (key,value)
72 * i915 perf doesn't support exposing metrics via an mmap'd circular buffer.
85 * The first prototype of this driver was based on the core perf
87 * perf, we found we were breaking or working around too many assumptions baked
88 * into perf's currently cpu centric design.
90 * In the end we didn't see a clear benefit to making perf'
409 i915_perf_get_oa_config(struct i915_perf *perf, int metrics_set) i915_perf_get_oa_config() argument
1514 struct i915_perf *perf = &ce->engine->i915->perf; set_oa_ctx_ctrl_offset() local
1688 struct i915_perf *perf = stream->perf; i915_oa_stream_destroy() local
3301 struct i915_perf *perf = stream->perf; i915_oa_stream_init() local
3826 struct i915_perf *perf = stream->perf; i915_perf_release() local
3884 i915_perf_open_ioctl_locked(struct i915_perf *perf, struct drm_i915_perf_open_param *param, struct perf_open_properties *props, struct drm_file *file) i915_perf_open_ioctl_locked() argument
4022 oa_exponent_to_ns(struct i915_perf *perf, int exponent) oa_exponent_to_ns() argument
4031 oa_format_valid(struct i915_perf *perf, enum drm_i915_oa_format format) oa_format_valid() argument
4037 oa_format_add(struct i915_perf *perf, enum drm_i915_oa_format format) oa_format_add() argument
4057 read_properties_unlocked(struct i915_perf *perf, u64 __user *uprops, u32 n_props, struct perf_open_properties *props) read_properties_unlocked() argument
4311 struct i915_perf *perf = &to_i915(dev)->perf; i915_perf_open_ioctl() local
4356 struct i915_perf *perf = &i915->perf; i915_perf_register() local
4386 struct i915_perf *perf = &i915->perf; i915_perf_unregister() local
4395 gen8_is_valid_flex_addr(struct i915_perf *perf, u32 addr) gen8_is_valid_flex_addr() argument
4514 gen7_is_valid_b_counter_addr(struct i915_perf *perf, u32 addr) gen7_is_valid_b_counter_addr() argument
4519 gen8_is_valid_mux_addr(struct i915_perf *perf, u32 addr) gen8_is_valid_mux_addr() argument
4525 gen11_is_valid_mux_addr(struct i915_perf *perf, u32 addr) gen11_is_valid_mux_addr() argument
4532 hsw_is_valid_mux_addr(struct i915_perf *perf, u32 addr) hsw_is_valid_mux_addr() argument
4538 chv_is_valid_mux_addr(struct i915_perf *perf, u32 addr) chv_is_valid_mux_addr() argument
4544 gen12_is_valid_b_counter_addr(struct i915_perf *perf, u32 addr) gen12_is_valid_b_counter_addr() argument
4549 mtl_is_valid_oam_b_counter_addr(struct i915_perf *perf, u32 addr) mtl_is_valid_oam_b_counter_addr() argument
4558 xehp_is_valid_b_counter_addr(struct i915_perf *perf, u32 addr) xehp_is_valid_b_counter_addr() argument
4565 gen12_is_valid_mux_addr(struct i915_perf *perf, u32 addr) gen12_is_valid_mux_addr() argument
4592 alloc_oa_regs(struct i915_perf *perf, bool (*is_valid)(struct i915_perf *perf, u32 addr), u32 __user *regs, u32 n_regs) alloc_oa_regs() argument
4654 create_dynamic_oa_sysfs_entry(struct i915_perf *perf, struct i915_oa_config *oa_config) create_dynamic_oa_sysfs_entry() argument
4689 struct i915_perf *perf = &to_i915(dev)->perf; i915_perf_add_config_ioctl() local
4853 struct i915_perf *perf = &to_i915(dev)->perf; i915_perf_remove_config_ioctl() local
5037 oa_init_engine_groups(struct i915_perf *perf) oa_init_engine_groups() argument
5051 oa_init_supported_formats(struct i915_perf *perf) oa_init_supported_formats() argument
5109 struct i915_perf *perf = &i915->perf; i915_perf_init_info() local
5150 struct i915_perf *perf = &i915->perf; i915_perf_init() local
5299 struct i915_perf *perf = &i915->perf; i915_perf_fini() local
[all...]
/kernel/linux/linux-5.10/tools/perf/python/
H A Dtracepoint.py6 import perf namespace
8 class tracepoint(perf.evsel):
10 config = perf.tracepoint(sys, name)
11 perf.evsel.__init__(self,
12 type = perf.TYPE_TRACEPOINT,
15 sample_type = perf.SAMPLE_PERIOD | perf.SAMPLE_TID | perf.SAMPLE_CPU | perf.SAMPLE_RAW | perf
[all...]
H A Dtwatch.py5 # twatch - Experimental use of the perf python interface
9 import perf namespace
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
[all...]
/kernel/linux/linux-6.6/tools/perf/python/
H A Dtracepoint.py6 import perf namespace
8 class tracepoint(perf.evsel):
10 config = perf.tracepoint(sys, name)
11 perf.evsel.__init__(self,
12 type = perf.TYPE_TRACEPOINT,
15 sample_type = perf.SAMPLE_PERIOD | perf.SAMPLE_TID | perf.SAMPLE_CPU | perf.SAMPLE_RAW | perf
[all...]
H A Dtwatch.py5 # twatch - Experimental use of the perf python interface
9 import perf namespace
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
[all...]
/kernel/linux/linux-5.10/drivers/cpufreq/
H A Dacpi-cpufreq.c198 struct acpi_processor_performance *perf; in extract_io() local
201 perf = to_perf_data(data); in extract_io()
203 for (i = 0; i < perf->state_count; i++) { in extract_io()
204 if (value == perf->states[i].status) in extract_io()
214 struct acpi_processor_performance *perf; in extract_msr() local
223 perf = to_perf_data(data); in extract_msr()
226 if (msr == perf->states[pos->driver_data].status) in extract_msr()
308 struct acpi_processor_performance *perf = to_perf_data(data); in drv_read() local
310 .reg = &perf->control_register, in drv_read()
331 struct acpi_processor_performance *perf in drv_write() local
413 struct acpi_processor_performance *perf; acpi_cpufreq_target() local
463 struct acpi_processor_performance *perf; acpi_cpufreq_fast_switch() local
496 struct acpi_processor_performance *perf; acpi_cpufreq_guess_freq() local
671 struct acpi_processor_performance *perf; acpi_cpufreq_cpu_init() local
919 struct acpi_processor_performance *perf = per_cpu_ptr(acpi_perf_data, acpi_cpufreq_cpu_ready() local
[all...]
/kernel/linux/linux-6.6/drivers/cpufreq/
H A Dacpi-cpufreq.c204 struct acpi_processor_performance *perf; in extract_io() local
207 perf = to_perf_data(data); in extract_io()
209 for (i = 0; i < perf->state_count; i++) { in extract_io()
210 if (value == perf->states[i].status) in extract_io()
220 struct acpi_processor_performance *perf; in extract_msr() local
229 perf = to_perf_data(data); in extract_msr()
232 if (msr == perf->states[pos->driver_data].status) in extract_msr()
314 struct acpi_processor_performance *perf = to_perf_data(data); in drv_read() local
316 .reg = &perf->control_register, in drv_read()
337 struct acpi_processor_performance *perf in drv_write() local
419 struct acpi_processor_performance *perf; acpi_cpufreq_target() local
469 struct acpi_processor_performance *perf; acpi_cpufreq_fast_switch() local
503 struct acpi_processor_performance *perf; acpi_cpufreq_guess_freq() local
673 struct acpi_processor_performance *perf; acpi_cpufreq_cpu_init() local
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/selftests/
H A Di915_perf.c20 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 in destroy_empty_config()
72 get_empty_config(struct i915_perf *perf) get_empty_config() argument
92 test_stream(struct i915_perf *perf) test_stream() argument
427 struct i915_perf *perf = &i915->perf; i915_perf_live_selftests() local
[all...]

Completed in 16 milliseconds

12345678910>>...17