/linux-6.1.9/kernel/bpf/ |
D | trampoline.c | 34 static int bpf_trampoline_update(struct bpf_trampoline *tr, bool lock_direct_mutex); 38 struct bpf_trampoline *tr = ops->private; in bpf_tramp_ftrace_ops_func() local 45 lockdep_assert_held_once(&tr->mutex); in bpf_tramp_ftrace_ops_func() 52 if ((tr->flags & BPF_TRAMP_F_CALL_ORIG) && in bpf_tramp_ftrace_ops_func() 53 !(tr->flags & BPF_TRAMP_F_ORIG_STACK)) { in bpf_tramp_ftrace_ops_func() 54 if (WARN_ON_ONCE(tr->flags & BPF_TRAMP_F_SHARE_IPMODIFY)) in bpf_tramp_ftrace_ops_func() 57 tr->flags |= BPF_TRAMP_F_SHARE_IPMODIFY; in bpf_tramp_ftrace_ops_func() 76 if (!mutex_trylock(&tr->mutex)) { in bpf_tramp_ftrace_ops_func() 86 tr->flags |= BPF_TRAMP_F_SHARE_IPMODIFY; in bpf_tramp_ftrace_ops_func() 88 if ((tr->flags & BPF_TRAMP_F_CALL_ORIG) && in bpf_tramp_ftrace_ops_func() [all …]
|
/linux-6.1.9/kernel/trace/ |
D | trace_irqsoff.c | 40 static void stop_irqsoff_tracer(struct trace_array *tr, int graph); 41 static int start_irqsoff_tracer(struct trace_array *tr, int graph); 65 static int irqsoff_display_graph(struct trace_array *tr, int set); 66 # define is_graph(tr) ((tr)->trace_flags & TRACE_ITER_DISPLAY_GRAPH) argument 68 static inline int irqsoff_display_graph(struct trace_array *tr, int set) in irqsoff_display_graph() argument 72 # define is_graph(tr) false argument 99 static int func_prolog_dec(struct trace_array *tr, in func_prolog_dec() argument 125 *data = per_cpu_ptr(tr->array_buffer.data, cpu); in func_prolog_dec() 143 struct trace_array *tr = irqsoff_trace; in irqsoff_tracer_call() local 148 if (!func_prolog_dec(tr, &data, &flags)) in irqsoff_tracer_call() [all …]
|
D | trace_functions.c | 22 static void tracing_start_function_trace(struct trace_array *tr); 23 static void tracing_stop_function_trace(struct trace_array *tr); 52 int ftrace_allocate_ftrace_ops(struct trace_array *tr) in ftrace_allocate_ftrace_ops() argument 57 if (tr->flags & TRACE_ARRAY_FL_GLOBAL) in ftrace_allocate_ftrace_ops() 68 tr->ops = ops; in ftrace_allocate_ftrace_ops() 69 ops->private = tr; in ftrace_allocate_ftrace_ops() 74 void ftrace_free_ftrace_ops(struct trace_array *tr) in ftrace_free_ftrace_ops() argument 76 kfree(tr->ops); in ftrace_free_ftrace_ops() 77 tr->ops = NULL; in ftrace_free_ftrace_ops() 80 int ftrace_create_function_files(struct trace_array *tr, in ftrace_create_function_files() argument [all …]
|
D | trace_sched_wakeup.c | 36 static void wakeup_reset(struct trace_array *tr); 37 static void __wakeup_reset(struct trace_array *tr); 38 static int start_func_tracer(struct trace_array *tr, int graph); 39 static void stop_func_tracer(struct trace_array *tr, int graph); 44 # define is_graph(tr) ((tr)->trace_flags & TRACE_ITER_DISPLAY_GRAPH) argument 46 # define is_graph(tr) false argument 68 func_prolog_preempt_disable(struct trace_array *tr, in func_prolog_preempt_disable() argument 85 *data = per_cpu_ptr(tr->array_buffer.data, cpu); in func_prolog_preempt_disable() 102 static int wakeup_display_graph(struct trace_array *tr, int set) in wakeup_display_graph() argument 104 if (!(is_graph(tr) ^ set)) in wakeup_display_graph() [all …]
|
D | trace.c | 99 dummy_set_flag(struct trace_array *tr, u32 old_flags, u32 bit, int set) in dummy_set_flag() argument 178 int tracing_set_tracer(struct trace_array *tr, const char *buf); 179 static void ftrace_trace_userstack(struct trace_array *tr, 457 struct trace_array *tr; in trace_array_get() local 461 list_for_each_entry(tr, &ftrace_trace_arrays, list) { in trace_array_get() 462 if (tr == this_tr) { in trace_array_get() 463 tr->ref++; in trace_array_get() 499 int tracing_check_open_get_tr(struct trace_array *tr) in tracing_check_open_get_tr() argument 510 if (tr && trace_array_get(tr) < 0) in tracing_check_open_get_tr() 914 static inline void ftrace_trace_stack(struct trace_array *tr, [all …]
|
D | trace_selftest.c | 70 arch_spin_lock(&buf->tr->max_lock); in trace_test_buffer() 88 arch_spin_unlock(&buf->tr->max_lock); in trace_test_buffer() 182 static int trace_selftest_ops(struct trace_array *tr, int cnt) in trace_selftest_ops() argument 219 ftrace_init_array_ops(tr, trace_selftest_test_global_func); in trace_selftest_ops() 220 register_ftrace_function(tr->ops); in trace_selftest_ops() 335 unregister_ftrace_function(tr->ops); in trace_selftest_ops() 336 ftrace_reset_array_ops(tr); in trace_selftest_ops() 357 struct trace_array *tr, in trace_selftest_startup_dynamic_tracing() argument 386 ret = tracer_init(trace, tr); in trace_selftest_startup_dynamic_tracing() 396 ret = trace_test_buffer(&tr->array_buffer, &count); in trace_selftest_startup_dynamic_tracing() [all …]
|
D | trace_events.c | 72 #define do_for_each_event_file(tr, file) \ argument 73 list_for_each_entry(tr, &ftrace_trace_arrays, list) { \ 74 list_for_each_entry(file, &tr->events, list) 76 #define do_for_each_event_file_safe(tr, file) \ argument 77 list_for_each_entry(tr, &ftrace_trace_arrays, list) { \ 79 list_for_each_entry_safe(file, ___n, &tr->events, list) 461 struct trace_array *tr = trace_file->tr; in trace_event_ignore_this_pid() local 466 pid_list = rcu_dereference_raw(tr->filtered_pids); in trace_event_ignore_this_pid() 467 no_pid_list = rcu_dereference_raw(tr->filtered_no_pids); in trace_event_ignore_this_pid() 472 data = this_cpu_ptr(tr->array_buffer.data); in trace_event_ignore_this_pid() [all …]
|
D | trace.h | 184 struct trace_array *tr; member 231 typedef bool (*cond_update_fn_t)(struct trace_array *tr, void *cond_data); 394 extern int trace_array_get(struct trace_array *tr); 395 extern int tracing_check_open_get_tr(struct trace_array *tr); 400 extern int tracing_set_filter_buffering(struct trace_array *tr, bool set); 401 extern int tracing_set_clock(struct trace_array *tr, const char *clockstr); 403 extern bool trace_clock_in_ns(struct trace_array *tr); 411 struct trace_array *tr; in top_trace_array() local 416 tr = list_entry(ftrace_trace_arrays.prev, in top_trace_array() 417 typeof(*tr), list); in top_trace_array() [all …]
|
D | trace_boot.c | 25 trace_boot_set_instance_options(struct trace_array *tr, struct xbc_node *node) in trace_boot_set_instance_options() argument 39 if (trace_set_options(tr, buf) < 0) in trace_boot_set_instance_options() 48 tracer_tracing_on(tr); in trace_boot_set_instance_options() 50 tracer_tracing_off(tr); in trace_boot_set_instance_options() 55 if (tracing_set_clock(tr, p) < 0) in trace_boot_set_instance_options() 64 if (tracing_resize_ring_buffer(tr, v, RING_BUFFER_ALL_CPUS) < 0) in trace_boot_set_instance_options() 74 tracing_set_cpumask(tr, new_mask) < 0) in trace_boot_set_instance_options() 83 trace_boot_enable_events(struct trace_array *tr, struct xbc_node *node) in trace_boot_enable_events() argument 95 if (ftrace_set_clr_event(tr, buf, 1) < 0) in trace_boot_enable_events() 462 trace_boot_init_one_event(struct trace_array *tr, struct xbc_node *gnode, in trace_boot_init_one_event() argument [all …]
|
D | trace_functions_graph.c | 94 print_graph_duration(struct trace_array *tr, unsigned long long duration, 97 int __trace_graph_entry(struct trace_array *tr, in __trace_graph_entry() argument 103 struct trace_buffer *buffer = tr->array_buffer.buffer; in __trace_graph_entry() 128 struct trace_array *tr = graph_array; in trace_graph_entry() local 155 if (!ftrace_trace_task(tr)) in trace_graph_entry() 173 data = per_cpu_ptr(tr->array_buffer.data, cpu); in trace_graph_entry() 177 ret = __trace_graph_entry(tr, trace, trace_ctx); in trace_graph_entry() 189 __trace_graph_function(struct trace_array *tr, in __trace_graph_function() argument 204 __trace_graph_entry(tr, &ent, trace_ctx); in __trace_graph_function() 205 __trace_graph_return(tr, &ret, trace_ctx); in __trace_graph_function() [all …]
|
D | trace_hwlat.c | 132 struct trace_array *tr = hwlat_trace; in trace_hwlat_sample() local 134 struct trace_buffer *buffer = tr->array_buffer.buffer; in trace_hwlat_sample() 189 struct trace_array *tr = hwlat_trace; \ 191 trace_array_printk_buf(tr->array_buffer.buffer, _THIS_IP_, msg); \ 204 struct trace_array *tr = hwlat_trace; in get_sample() local 302 if (latency > tr->max_latency) { in get_sample() 303 tr->max_latency = latency; in get_sample() 304 latency_fsnotify(tr); in get_sample() 317 struct trace_array *tr = hwlat_trace; in move_to_next_cpu() local 329 cpumask_and(current_mask, cpu_online_mask, tr->tracing_cpumask); in move_to_next_cpu() [all …]
|
D | trace_nop.c | 37 static void start_nop_trace(struct trace_array *tr) in start_nop_trace() argument 42 static void stop_nop_trace(struct trace_array *tr) in stop_nop_trace() argument 47 static int nop_trace_init(struct trace_array *tr) in nop_trace_init() argument 49 ctx_trace = tr; in nop_trace_init() 50 start_nop_trace(tr); in nop_trace_init() 54 static void nop_trace_reset(struct trace_array *tr) in nop_trace_reset() argument 56 stop_nop_trace(tr); in nop_trace_reset() 64 static int nop_set_flag(struct trace_array *tr, u32 old_flags, u32 bit, int set) in nop_set_flag() argument
|
D | trace_mmiotrace.c | 28 static void mmio_reset_data(struct trace_array *tr) in mmio_reset_data() argument 33 tracing_reset_online_cpus(&tr->array_buffer); in mmio_reset_data() 36 static int mmio_trace_init(struct trace_array *tr) in mmio_trace_init() argument 39 mmio_trace_array = tr; in mmio_trace_init() 41 mmio_reset_data(tr); in mmio_trace_init() 46 static void mmio_trace_reset(struct trace_array *tr) in mmio_trace_reset() argument 51 mmio_reset_data(tr); in mmio_trace_reset() 55 static void mmio_trace_start(struct trace_array *tr) in mmio_trace_start() argument 58 mmio_reset_data(tr); in mmio_trace_start() 293 static void __trace_mmiotrace_rw(struct trace_array *tr, in __trace_mmiotrace_rw() argument [all …]
|
D | trace_syscalls.c | 130 struct trace_array *tr = iter->tr; in print_syscall_enter() local 157 if (tr && tr->trace_flags & TRACE_ITER_VERBOSE) in print_syscall_enter() 293 struct trace_array *tr = data; in ftrace_syscall_enter() local 307 trace_file = rcu_dereference_sched(tr->enter_syscall_files[syscall_nr]); in ftrace_syscall_enter() 334 struct trace_array *tr = data; in ftrace_syscall_exit() local 346 trace_file = rcu_dereference_sched(tr->exit_syscall_files[syscall_nr]); in ftrace_syscall_exit() 371 struct trace_array *tr = file->tr; in reg_event_syscall_enter() local 379 if (!tr->sys_refcount_enter) in reg_event_syscall_enter() 380 ret = register_trace_sys_enter(ftrace_syscall_enter, tr); in reg_event_syscall_enter() 382 rcu_assign_pointer(tr->enter_syscall_files[num], file); in reg_event_syscall_enter() [all …]
|
/linux-6.1.9/fs/gfs2/ |
D | trans.c | 28 static void gfs2_print_trans(struct gfs2_sbd *sdp, const struct gfs2_trans *tr) in gfs2_print_trans() argument 30 fs_warn(sdp, "Transaction created at: %pSR\n", (void *)tr->tr_ip); in gfs2_print_trans() 32 tr->tr_blocks, tr->tr_revokes, tr->tr_reserved, in gfs2_print_trans() 33 test_bit(TR_TOUCHED, &tr->tr_flags)); in gfs2_print_trans() 35 tr->tr_num_buf_new, tr->tr_num_buf_rm, in gfs2_print_trans() 36 tr->tr_num_databuf_new, tr->tr_num_databuf_rm, in gfs2_print_trans() 37 tr->tr_num_revoke); in gfs2_print_trans() 40 int __gfs2_trans_begin(struct gfs2_trans *tr, struct gfs2_sbd *sdp, in __gfs2_trans_begin() argument 55 tr->tr_ip = ip; in __gfs2_trans_begin() 56 tr->tr_blocks = blocks; in __gfs2_trans_begin() [all …]
|
D | log.c | 93 struct gfs2_trans *tr, struct blk_plug *plug) in gfs2_ail1_start_one() argument 103 list_for_each_entry_safe_reverse(bd, s, &tr->tr_ail1_list, bd_ail_st_list) { in gfs2_ail1_start_one() 106 gfs2_assert(sdp, bd->bd_tr == tr); in gfs2_ail1_start_one() 111 &tr->tr_ail2_list); in gfs2_ail1_start_one() 129 list_move(&bd->bd_ail_st_list, &tr->tr_ail1_list); in gfs2_ail1_start_one() 153 struct gfs2_trans *tr; in dump_ail_list() local 157 list_for_each_entry_reverse(tr, &sdp->sd_ail1_list, tr_list) { in dump_ail_list() 158 list_for_each_entry_reverse(bd, &tr->tr_ail1_list, in dump_ail_list() 195 struct gfs2_trans *tr; in gfs2_ail1_flush() local 211 list_for_each_entry_reverse(tr, head, tr_list) { in gfs2_ail1_flush() [all …]
|
/linux-6.1.9/drivers/media/radio/ |
D | radio-timb.c | 43 struct timbradio *tr = video_drvdata(file); in timbradio_vidioc_g_tuner() local 44 return v4l2_subdev_call(tr->sd_tuner, tuner, g_tuner, v); in timbradio_vidioc_g_tuner() 50 struct timbradio *tr = video_drvdata(file); in timbradio_vidioc_s_tuner() local 51 return v4l2_subdev_call(tr->sd_tuner, tuner, s_tuner, v); in timbradio_vidioc_s_tuner() 57 struct timbradio *tr = video_drvdata(file); in timbradio_vidioc_s_frequency() local 58 return v4l2_subdev_call(tr->sd_tuner, tuner, s_frequency, f); in timbradio_vidioc_s_frequency() 64 struct timbradio *tr = video_drvdata(file); in timbradio_vidioc_g_frequency() local 65 return v4l2_subdev_call(tr->sd_tuner, tuner, g_frequency, f); in timbradio_vidioc_g_frequency() 90 struct timbradio *tr; in timbradio_probe() local 99 tr = devm_kzalloc(&pdev->dev, sizeof(*tr), GFP_KERNEL); in timbradio_probe() [all …]
|
D | radio-trust.c | 58 struct trust *tr = kzalloc(sizeof(*tr), GFP_KERNEL); in trust_alloc() local 60 return tr ? &tr->isa : NULL; in trust_alloc() 67 #define TR_DELAY do { inb(tr->isa.io); inb(tr->isa.io); inb(tr->isa.io); } while (0) 68 #define TR_SET_SCL outb(tr->ioval |= 2, tr->isa.io) 69 #define TR_CLR_SCL outb(tr->ioval &= 0xfd, tr->isa.io) 70 #define TR_SET_SDA outb(tr->ioval |= 1, tr->isa.io) 71 #define TR_CLR_SDA outb(tr->ioval &= 0xfe, tr->isa.io) 73 static void write_i2c(struct trust *tr, int n, ...) in write_i2c() argument 121 struct trust *tr = container_of(isa, struct trust, isa); in trust_s_mute_volume() local 123 tr->ioval = (tr->ioval & 0xf7) | (mute << 3); in trust_s_mute_volume() [all …]
|
/linux-6.1.9/drivers/input/touchscreen/ |
D | touchright.c | 45 struct tr { struct 56 struct tr *tr = serio_get_drvdata(serio); in tr_interrupt() argument 57 struct input_dev *dev = tr->dev; in tr_interrupt() 59 tr->data[tr->idx] = data; in tr_interrupt() 61 if ((tr->data[0] & TR_FORMAT_STATUS_MASK) == TR_FORMAT_STATUS_BYTE) { in tr_interrupt() 62 if (++tr->idx == TR_LENGTH) { in tr_interrupt() 64 (tr->data[1] << 5) | (tr->data[2] >> 1)); in tr_interrupt() 66 (tr->data[3] << 5) | (tr->data[4] >> 1)); in tr_interrupt() 68 tr->data[0] & TR_FORMAT_TOUCH_BIT); in tr_interrupt() 70 tr->idx = 0; in tr_interrupt() [all …]
|
/linux-6.1.9/drivers/mtd/ |
D | mtd_blkdevs.c | 45 static blk_status_t do_blktrans_request(struct mtd_blktrans_ops *tr, in do_blktrans_request() argument 54 block = blk_rq_pos(req) << 9 >> tr->blkshift; in do_blktrans_request() 55 nsect = blk_rq_cur_bytes(req) >> tr->blkshift; in do_blktrans_request() 59 if (tr->flush(dev)) in do_blktrans_request() 63 if (tr->discard(dev, block, nsect)) in do_blktrans_request() 68 for (; nsect > 0; nsect--, block++, buf += tr->blksize) { in do_blktrans_request() 69 if (tr->readsect(dev, block, buf)) { in do_blktrans_request() 80 if (!tr->writesect) in do_blktrans_request() 87 for (; nsect > 0; nsect--, block++, buf += tr->blksize) { in do_blktrans_request() 88 if (tr->writesect(dev, block, buf)) { in do_blktrans_request() [all …]
|
/linux-6.1.9/drivers/s390/crypto/ |
D | zcrypt_api.c | 675 struct zcrypt_track *tr, in zcrypt_rsa_modexpo() argument 691 if (tr && tr->fi.cmd) in zcrypt_rsa_modexpo() 692 ap_msg.fi.cmd = tr->fi.cmd; in zcrypt_rsa_modexpo() 730 cpen = (tr && tr->again_counter && tr->last_qid && in zcrypt_rsa_modexpo() 731 AP_QID_CARD(tr->last_qid) == zc->card->id) ? in zcrypt_rsa_modexpo() 745 qpen = (tr && tr->again_counter && tr->last_qid && in zcrypt_rsa_modexpo() 746 tr->last_qid == zq->queue->qid) ? in zcrypt_rsa_modexpo() 775 if (tr) { in zcrypt_rsa_modexpo() 776 tr->last_rc = rc; in zcrypt_rsa_modexpo() 777 tr->last_qid = qid; in zcrypt_rsa_modexpo() [all …]
|
/linux-6.1.9/samples/ftrace/ |
D | sample-trace-array.c | 20 struct trace_array *tr; variable 29 trace_array_set_clr_event(tr, "sample-subsystem", "sample_event", in trace_work_fn() 55 trace_array_printk(tr, _THIS_IP_, "trace_array_printk: count=%d\n", in simple_thread_func() 72 trace_array_set_clr_event(tr, "sample-subsystem", "sample_event", true); in simple_thread() 94 trace_array_put(tr); in simple_thread() 108 tr = trace_array_get_by_name("sample-instance"); in sample_trace_array_init() 110 if (!tr) in sample_trace_array_init() 119 trace_array_put(tr); in sample_trace_array_init() 120 trace_array_destroy(tr); in sample_trace_array_init() 135 trace_array_destroy(tr); in sample_trace_array_exit()
|
/linux-6.1.9/include/linux/ |
D | trace.h | 38 int trace_array_printk(struct trace_array *tr, unsigned long ip, 40 int trace_array_init_printk(struct trace_array *tr); 41 void trace_array_put(struct trace_array *tr); 43 int trace_array_destroy(struct trace_array *tr); 63 static inline int trace_array_printk(struct trace_array *tr, unsigned long ip, in trace_array_printk() argument 68 static inline int trace_array_init_printk(struct trace_array *tr) in trace_array_init_printk() argument 72 static inline void trace_array_put(struct trace_array *tr) in trace_array_put() argument 79 static inline int trace_array_destroy(struct trace_array *tr) in trace_array_destroy() argument
|
/linux-6.1.9/drivers/net/ethernet/toshiba/ |
D | tc35815.c | 505 struct tc35815_regs __iomem *tr = in tc_mdio_read() local 509 tc_writel(MD_CA_Busy | (mii_id << 5) | (regnum & 0x1f), &tr->MD_CA); in tc_mdio_read() 511 while (tc_readl(&tr->MD_CA) & MD_CA_Busy) { in tc_mdio_read() 516 return tc_readl(&tr->MD_Data) & 0xffff; in tc_mdio_read() 522 struct tc35815_regs __iomem *tr = in tc_mdio_write() local 526 tc_writel(val, &tr->MD_Data); in tc_mdio_write() 528 &tr->MD_CA); in tc_mdio_write() 530 while (tc_readl(&tr->MD_CA) & MD_CA_Busy) { in tc_mdio_write() 548 struct tc35815_regs __iomem *tr = in tc_handle_link_change() local 552 reg = tc_readl(&tr->MAC_Ctl); in tc_handle_link_change() [all …]
|
/linux-6.1.9/tools/bootconfig/scripts/ |
D | ftrace.sh | 55 tr=`echo $t | cut -d: -f2` 56 if [ "$tr" = "" ]; then 63 if [ $tr = "enable_event" -o $tr = "disable_event" ]; then 64 tr=`echo $t | cut -d: -f2-4` 67 tr=`echo $t | cut -d: -f2` 71 tr="$tr:$limit" 73 echo "!$name:$tr" > set_ftrace_filter
|