/kernel/linux/linux-5.10/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 147 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); 37 int ftrace_allocate_ftrace_ops(struct trace_array *tr) in ftrace_allocate_ftrace_ops() argument 42 if (tr->flags & TRACE_ARRAY_FL_GLOBAL) in ftrace_allocate_ftrace_ops() 53 tr->ops = ops; in ftrace_allocate_ftrace_ops() 54 ops->private = tr; in ftrace_allocate_ftrace_ops() 59 void ftrace_free_ftrace_ops(struct trace_array *tr) in ftrace_free_ftrace_ops() argument 61 kfree(tr->ops); in ftrace_free_ftrace_ops() 62 tr->ops = NULL; in ftrace_free_ftrace_ops() 65 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 | 97 dummy_set_flag(struct trace_array *tr, u32 old_flags, u32 bit, int set) in dummy_set_flag() argument 176 int tracing_set_tracer(struct trace_array *tr, const char *buf); 177 static void ftrace_trace_userstack(struct trace_array *tr, 433 struct trace_array *tr; in trace_array_get() local 437 list_for_each_entry(tr, &ftrace_trace_arrays, list) { in trace_array_get() 438 if (tr == this_tr) { in trace_array_get() 439 tr->ref++; in trace_array_get() 474 int tracing_check_open_get_tr(struct trace_array *tr) in tracing_check_open_get_tr() argument 485 if (tr && trace_array_get(tr) < 0) in tracing_check_open_get_tr() 910 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() 185 static int trace_selftest_ops(struct trace_array *tr, int cnt) in trace_selftest_ops() argument 222 ftrace_init_array_ops(tr, trace_selftest_test_global_func); in trace_selftest_ops() 223 register_ftrace_function(tr->ops); in trace_selftest_ops() 304 unregister_ftrace_function(tr->ops); in trace_selftest_ops() 305 ftrace_reset_array_ops(tr); in trace_selftest_ops() 326 struct trace_array *tr, in trace_selftest_startup_dynamic_tracing() argument 355 ret = tracer_init(trace, tr); in trace_selftest_startup_dynamic_tracing() 365 ret = trace_test_buffer(&tr->array_buffer, &count); in trace_selftest_startup_dynamic_tracing() [all …]
|
D | trace_events.c | 64 #define do_for_each_event_file(tr, file) \ argument 65 list_for_each_entry(tr, &ftrace_trace_arrays, list) { \ 66 list_for_each_entry(file, &tr->events, list) 68 #define do_for_each_event_file_safe(tr, file) \ argument 69 list_for_each_entry(tr, &ftrace_trace_arrays, list) { \ 71 list_for_each_entry_safe(file, ___n, &tr->events, list) 234 struct trace_array *tr = trace_file->tr; in trace_event_ignore_this_pid() local 239 pid_list = rcu_dereference_raw(tr->filtered_pids); in trace_event_ignore_this_pid() 240 no_pid_list = rcu_dereference_raw(tr->filtered_no_pids); in trace_event_ignore_this_pid() 245 data = this_cpu_ptr(tr->array_buffer.data); in trace_event_ignore_this_pid() [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() 175 trace_boot_init_one_event(struct trace_array *tr, struct xbc_node *gnode, in trace_boot_init_one_event() argument [all …]
|
D | trace.h | 195 struct trace_array *tr; member 238 typedef bool (*cond_update_fn_t)(struct trace_array *tr, void *cond_data); 389 extern int trace_array_get(struct trace_array *tr); 390 extern int tracing_check_open_get_tr(struct trace_array *tr); 394 extern int tracing_set_time_stamp_abs(struct trace_array *tr, bool abs); 395 extern int tracing_set_clock(struct trace_array *tr, const char *clockstr); 397 extern bool trace_clock_in_ns(struct trace_array *tr); 405 struct trace_array *tr; in top_trace_array() local 410 tr = list_entry(ftrace_trace_arrays.prev, in top_trace_array() 411 typeof(*tr), list); in top_trace_array() [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 104 struct trace_buffer *buffer = tr->array_buffer.buffer; in __trace_graph_entry() 129 struct trace_array *tr = graph_array; in trace_graph_entry() local 156 if (!ftrace_trace_task(tr)) in trace_graph_entry() 174 data = per_cpu_ptr(tr->array_buffer.data, cpu); in trace_graph_entry() 178 ret = __trace_graph_entry(tr, trace, flags, pc); in trace_graph_entry() 190 __trace_graph_function(struct trace_array *tr, in __trace_graph_function() argument 205 __trace_graph_entry(tr, &ent, flags, pc); in __trace_graph_function() 206 __trace_graph_return(tr, &ret, flags, pc); in __trace_graph_function() [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 | 30 static void mmio_reset_data(struct trace_array *tr) in mmio_reset_data() argument 35 tracing_reset_online_cpus(&tr->array_buffer); in mmio_reset_data() 38 static int mmio_trace_init(struct trace_array *tr) in mmio_trace_init() argument 41 mmio_trace_array = tr; in mmio_trace_init() 43 mmio_reset_data(tr); in mmio_trace_init() 48 static void mmio_trace_reset(struct trace_array *tr) in mmio_trace_reset() argument 53 mmio_reset_data(tr); in mmio_trace_reset() 57 static void mmio_trace_start(struct trace_array *tr) in mmio_trace_start() argument 60 mmio_reset_data(tr); in mmio_trace_start() 295 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->trace_flags & TRACE_ITER_VERBOSE) in print_syscall_enter() 295 struct trace_array *tr = data; in ftrace_syscall_enter() local 312 trace_file = rcu_dereference_sched(tr->enter_syscall_files[syscall_nr]); in ftrace_syscall_enter() 328 buffer = tr->array_buffer.buffer; in ftrace_syscall_enter() 345 struct trace_array *tr = data; in ftrace_syscall_exit() local 360 trace_file = rcu_dereference_sched(tr->exit_syscall_files[syscall_nr]); in ftrace_syscall_exit() 374 buffer = tr->array_buffer.buffer; in ftrace_syscall_exit() 392 struct trace_array *tr = file->tr; in reg_event_syscall_enter() local 400 if (!tr->sys_refcount_enter) in reg_event_syscall_enter() [all …]
|
D | trace_hwlat.c | 106 struct trace_array *tr = hwlat_trace; in trace_hwlat_sample() local 108 struct trace_buffer *buffer = tr->array_buffer.buffer; in trace_hwlat_sample() 171 struct trace_array *tr = hwlat_trace; in get_sample() local 270 if (latency > tr->max_latency) { in get_sample() 271 tr->max_latency = latency; in get_sample() 272 latency_fsnotify(tr); in get_sample() 286 struct trace_array *tr = hwlat_trace; in move_to_next_cpu() local 300 cpumask_and(current_mask, cpu_online_mask, tr->tracing_cpumask); in move_to_next_cpu() 365 static int start_kthread(struct trace_array *tr) in start_kthread() argument 376 cpumask_and(current_mask, cpu_online_mask, tr->tracing_cpumask); in start_kthread() [all …]
|
D | ftrace.c | 98 struct trace_array *tr; in ftrace_pids_enabled() local 103 tr = ops->private; in ftrace_pids_enabled() 105 return tr->function_pids != NULL || tr->function_no_pids != NULL; in ftrace_pids_enabled() 145 struct trace_array *tr = op->private; in ftrace_pid_func() local 148 if (tr) { in ftrace_pid_func() 149 pid = this_cpu_read(tr->array_buffer.data->ftrace_ignore_pid); in ftrace_pid_func() 1020 struct trace_array *tr; member 1287 static int ftrace_add_mod(struct trace_array *tr, in ftrace_add_mod() argument 1292 struct list_head *mod_head = enable ? &tr->mod_trace : &tr->mod_notrace; in ftrace_add_mod() 3264 struct trace_array *tr; member [all …]
|
/kernel/linux/linux-5.10/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, tr->tr_num_revoke_rm); in gfs2_print_trans() 43 struct gfs2_trans *tr; in gfs2_trans_begin() local 55 tr = kmem_cache_zalloc(gfs2_trans_cachep, GFP_NOFS); in gfs2_trans_begin() 56 if (!tr) in gfs2_trans_begin() [all …]
|
D | log.c | 92 struct gfs2_trans *tr) in gfs2_ail1_start_one() argument 102 list_for_each_entry_safe_reverse(bd, s, &tr->tr_ail1_list, bd_ail_st_list) { in gfs2_ail1_start_one() 105 gfs2_assert(sdp, bd->bd_tr == tr); in gfs2_ail1_start_one() 110 &tr->tr_ail2_list); in gfs2_ail1_start_one() 128 list_move(&bd->bd_ail_st_list, &tr->tr_ail1_list); in gfs2_ail1_start_one() 147 struct gfs2_trans *tr; in dump_ail_list() local 151 list_for_each_entry_reverse(tr, &sdp->sd_ail1_list, tr_list) { in dump_ail_list() 152 list_for_each_entry_reverse(bd, &tr->tr_ail1_list, in dump_ail_list() 189 struct gfs2_trans *tr; in gfs2_ail1_flush() local 205 list_for_each_entry_reverse(tr, head, tr_list) { in gfs2_ail1_flush() [all …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/kernel/bpf/ |
D | trampoline.c | 62 struct bpf_trampoline *tr; in bpf_trampoline_lookup() local 68 hlist_for_each_entry(tr, head, hlist) { in bpf_trampoline_lookup() 69 if (tr->key == key) { in bpf_trampoline_lookup() 70 refcount_inc(&tr->refcnt); in bpf_trampoline_lookup() 74 tr = kzalloc(sizeof(*tr), GFP_KERNEL); in bpf_trampoline_lookup() 75 if (!tr) in bpf_trampoline_lookup() 78 tr->key = key; in bpf_trampoline_lookup() 79 INIT_HLIST_NODE(&tr->hlist); in bpf_trampoline_lookup() 80 hlist_add_head(&tr->hlist, head); in bpf_trampoline_lookup() 81 refcount_set(&tr->refcnt, 1); in bpf_trampoline_lookup() [all …]
|
/kernel/linux/linux-5.10/drivers/input/touchscreen/ |
D | touchright.c | 45 struct tr { struct 56 struct tr *tr = serio_get_drvdata(serio); in tr_interrupt() local 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 …]
|
/kernel/linux/linux-5.10/drivers/mtd/ |
D | mtd_blkdevs.c | 65 static blk_status_t do_blktrans_request(struct mtd_blktrans_ops *tr, in do_blktrans_request() argument 72 block = blk_rq_pos(req) << 9 >> tr->blkshift; in do_blktrans_request() 73 nsect = blk_rq_cur_bytes(req) >> tr->blkshift; in do_blktrans_request() 76 if (tr->flush(dev)) in do_blktrans_request() 87 if (tr->discard(dev, block, nsect)) in do_blktrans_request() 92 for (; nsect > 0; nsect--, block++, buf += tr->blksize) { in do_blktrans_request() 93 if (tr->readsect(dev, block, buf)) { in do_blktrans_request() 102 if (!tr->writesect) in do_blktrans_request() 107 for (; nsect > 0; nsect--, block++, buf += tr->blksize) { in do_blktrans_request() 108 if (tr->writesect(dev, block, buf)) { in do_blktrans_request() [all …]
|
/kernel/linux/linux-5.10/drivers/s390/crypto/ |
D | zcrypt_api.c | 634 struct zcrypt_track *tr, in zcrypt_rsa_modexpo() argument 650 if (tr && tr->fi.cmd) in zcrypt_rsa_modexpo() 651 ap_msg.fi.cmd = tr->fi.cmd; in zcrypt_rsa_modexpo() 689 cpen = (tr && tr->again_counter && tr->last_qid && in zcrypt_rsa_modexpo() 690 AP_QID_CARD(tr->last_qid) == zc->card->id) ? in zcrypt_rsa_modexpo() 704 qpen = (tr && tr->again_counter && tr->last_qid && in zcrypt_rsa_modexpo() 705 tr->last_qid == zq->queue->qid) ? in zcrypt_rsa_modexpo() 732 if (tr) { in zcrypt_rsa_modexpo() 733 tr->last_rc = rc; in zcrypt_rsa_modexpo() 734 tr->last_qid = qid; in zcrypt_rsa_modexpo() [all …]
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/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
|