/Linux-v5.4/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->trace_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 static int allocate_ftrace_ops(struct trace_array *tr) in allocate_ftrace_ops() argument 49 tr->ops = ops; in allocate_ftrace_ops() 50 ops->private = tr; in allocate_ftrace_ops() 55 int ftrace_create_function_files(struct trace_array *tr, in ftrace_create_function_files() argument 64 if (tr->flags & TRACE_ARRAY_FL_GLOBAL) in ftrace_create_function_files() 67 ret = allocate_ftrace_ops(tr); in ftrace_create_function_files() 71 ftrace_create_filter_files(tr->ops, parent); in ftrace_create_function_files() 76 void ftrace_destroy_function_files(struct trace_array *tr) in ftrace_destroy_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->trace_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 | 83 dummy_set_flag(struct trace_array *tr, u32 old_flags, u32 bit, int set) in dummy_set_flag() argument 162 static int tracing_set_tracer(struct trace_array *tr, const char *buf); 279 struct trace_array *tr; in trace_array_get() local 283 list_for_each_entry(tr, &ftrace_trace_arrays, list) { in trace_array_get() 284 if (tr == this_tr) { in trace_array_get() 285 tr->ref++; in trace_array_get() 308 int tracing_check_open_get_tr(struct trace_array *tr) in tracing_check_open_get_tr() argument 319 if (tr && trace_array_get(tr) < 0) in tracing_check_open_get_tr() 738 static inline void ftrace_trace_stack(struct trace_array *tr, 749 static inline void ftrace_trace_stack(struct trace_array *tr, in ftrace_trace_stack() argument [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->trace_buffer, &count); in trace_selftest_startup_dynamic_tracing() [all …]
|
D | trace_events.c | 62 #define do_for_each_event_file(tr, file) \ argument 63 list_for_each_entry(tr, &ftrace_trace_arrays, list) { \ 64 list_for_each_entry(file, &tr->events, list) 66 #define do_for_each_event_file_safe(tr, file) \ argument 67 list_for_each_entry(tr, &ftrace_trace_arrays, list) { \ 69 list_for_each_entry_safe(file, ___n, &tr->events, list) 232 struct trace_array *tr = trace_file->tr; in trace_event_ignore_this_pid() local 236 pid_list = rcu_dereference_raw(tr->filtered_pids); in trace_event_ignore_this_pid() 240 data = this_cpu_ptr(tr->trace_buffer.data); in trace_event_ignore_this_pid() 321 struct trace_array *tr; in trace_event_enable_cmd_record() local [all …]
|
D | trace.h | 177 struct trace_array *tr; member 196 typedef bool (*cond_update_fn_t)(struct trace_array *tr, void *cond_data); 339 extern int trace_array_get(struct trace_array *tr); 340 extern void trace_array_put(struct trace_array *tr); 341 extern int tracing_check_open_get_tr(struct trace_array *tr); 343 extern int tracing_set_time_stamp_abs(struct trace_array *tr, bool abs); 344 extern int tracing_set_clock(struct trace_array *tr, const char *clockstr); 346 extern bool trace_clock_in_ns(struct trace_array *tr); 354 struct trace_array *tr; in top_trace_array() local 359 tr = list_entry(ftrace_trace_arrays.prev, 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 ring_buffer *buffer = tr->trace_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->trace_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->trace_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 | 125 struct trace_array *tr = iter->tr; in print_syscall_enter() local 152 if (tr->trace_flags & TRACE_ITER_VERBOSE) in print_syscall_enter() 310 struct trace_array *tr = data; in ftrace_syscall_enter() local 327 trace_file = rcu_dereference_sched(tr->enter_syscall_files[syscall_nr]); in ftrace_syscall_enter() 343 buffer = tr->trace_buffer.buffer; in ftrace_syscall_enter() 360 struct trace_array *tr = data; in ftrace_syscall_exit() local 375 trace_file = rcu_dereference_sched(tr->exit_syscall_files[syscall_nr]); in ftrace_syscall_exit() 389 buffer = tr->trace_buffer.buffer; in ftrace_syscall_exit() 407 struct trace_array *tr = file->tr; in reg_event_syscall_enter() local 415 if (!tr->sys_refcount_enter) in reg_event_syscall_enter() [all …]
|
D | trace_hwlat.c | 105 struct trace_array *tr = hwlat_trace; in trace_hwlat_sample() local 107 struct ring_buffer *buffer = tr->trace_buffer.buffer; in trace_hwlat_sample() 169 struct trace_array *tr = hwlat_trace; in get_sample() local 257 if (sample > tr->max_latency) in get_sample() 258 tr->max_latency = sample; in get_sample() 259 if (outer_sample > tr->max_latency) in get_sample() 260 tr->max_latency = outer_sample; in get_sample() 351 static int start_kthread(struct trace_array *tr) in start_kthread() argument 560 static void hwlat_tracer_start(struct trace_array *tr) in hwlat_tracer_start() argument 564 err = start_kthread(tr); in hwlat_tracer_start() [all …]
|
D | ftrace.c | 100 struct trace_array *tr; in ftrace_pids_enabled() local 105 tr = ops->private; in ftrace_pids_enabled() 107 return tr->function_pids != NULL; in ftrace_pids_enabled() 147 struct trace_array *tr = op->private; in ftrace_pid_func() local 149 if (tr && this_cpu_read(tr->trace_buffer.data->ftrace_ignore_pid)) in ftrace_pid_func() 1029 struct trace_array *tr; member 1299 static int ftrace_add_mod(struct trace_array *tr, in ftrace_add_mod() argument 1304 struct list_head *mod_head = enable ? &tr->mod_trace : &tr->mod_notrace; in ftrace_add_mod() 3061 struct trace_array *tr; member 3072 struct trace_array *tr = iter->ops->private; in t_probe_next() local [all …]
|
D | trace_kdb.c | 25 struct trace_array *tr; in ftrace_dump_buf() local 29 tr = iter.tr; in ftrace_dump_buf() 31 old_userobj = tr->trace_flags; in ftrace_dump_buf() 34 tr->trace_flags &= ~TRACE_ITER_SYM_USEROBJ; in ftrace_dump_buf() 82 tr->trace_flags = old_userobj; in ftrace_dump_buf()
|
D | trace_events_hist.c | 627 static void hist_err(struct trace_array *tr, u8 err_type, u8 err_pos) in hist_err() argument 629 tracing_log_err(tr, last_cmd_loc, last_cmd, err_text, in hist_err() 816 struct trace_array *tr = iter->tr; in print_synth_event() local 836 if (tr->trace_flags & TRACE_ITER_VERBOSE) in print_synth_event() 898 buffer = trace_file->tr->trace_buffer.buffer; in trace_event_raw_event_synth() 1489 struct trace_array *tr = hist_data->event_file->tr; in hist_field_timestamp() local 1493 if (hist_data->attrs->ts_in_usecs && trace_clock_in_ns(tr)) in hist_field_timestamp() 1579 struct trace_array *tr = hist_data->event_file->tr; in find_any_var_ref() local 1583 list_for_each_entry(var_data, &tr->hist_vars, list) { in find_any_var_ref() 1628 struct trace_array *tr = hist_data->event_file->tr; in find_hist_vars() local [all …]
|
/Linux-v5.4/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-v5.4/fs/gfs2/ |
D | trans.c | 31 struct gfs2_trans *tr; in gfs2_trans_begin() local 40 tr = kzalloc(sizeof(struct gfs2_trans), GFP_NOFS); in gfs2_trans_begin() 41 if (!tr) in gfs2_trans_begin() 44 tr->tr_ip = _RET_IP_; in gfs2_trans_begin() 45 tr->tr_blocks = blocks; in gfs2_trans_begin() 46 tr->tr_revokes = revokes; in gfs2_trans_begin() 47 tr->tr_reserved = 1; in gfs2_trans_begin() 48 set_bit(TR_ALLOCED, &tr->tr_flags); in gfs2_trans_begin() 50 tr->tr_reserved += 6 + blocks; in gfs2_trans_begin() 52 tr->tr_reserved += gfs2_struct2blk(sdp, revokes, 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() 114 list_move(&bd->bd_ail_st_list, &tr->tr_ail2_list); in gfs2_ail1_start_one() 123 list_move(&bd->bd_ail_st_list, &tr->tr_ail1_list); in gfs2_ail1_start_one() 151 struct gfs2_trans *tr; in gfs2_ail1_flush() local 159 list_for_each_entry_reverse(tr, head, tr_list) { in gfs2_ail1_flush() 162 if (gfs2_ail1_start_one(sdp, wbc, tr, &withdraw)) in gfs2_ail1_flush() 196 static void gfs2_ail1_empty_one(struct gfs2_sbd *sdp, struct gfs2_trans *tr, in gfs2_ail1_empty_one() argument 202 list_for_each_entry_safe_reverse(bd, s, &tr->tr_ail1_list, in gfs2_ail1_empty_one() [all …]
|
/Linux-v5.4/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 …]
|
/Linux-v5.4/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 …]
|
/Linux-v5.4/drivers/net/ethernet/toshiba/ |
D | tc35815.c | 506 struct tc35815_regs __iomem *tr = in tc_mdio_read() local 510 tc_writel(MD_CA_Busy | (mii_id << 5) | (regnum & 0x1f), &tr->MD_CA); in tc_mdio_read() 512 while (tc_readl(&tr->MD_CA) & MD_CA_Busy) { in tc_mdio_read() 517 return tc_readl(&tr->MD_Data) & 0xffff; in tc_mdio_read() 523 struct tc35815_regs __iomem *tr = in tc_mdio_write() local 527 tc_writel(val, &tr->MD_Data); in tc_mdio_write() 529 &tr->MD_CA); in tc_mdio_write() 531 while (tc_readl(&tr->MD_CA) & MD_CA_Busy) { in tc_mdio_write() 549 struct tc35815_regs __iomem *tr = in tc_handle_link_change() local 553 reg = tc_readl(&tr->MAC_Ctl); in tc_handle_link_change() [all …]
|
/Linux-v5.4/tools/testing/selftests/ftrace/test.d/ |
D | functions | 51 tr=`echo $t | cut -d: -f2` 52 if [ "$tr" = "" ]; then 59 if [ $tr = "enable_event" -o $tr = "disable_event" ]; then 60 tr=`echo $t | cut -d: -f2-4` 63 tr=`echo $t | cut -d: -f2` 67 tr="$tr:$limit" 69 echo "!$name:$tr" > set_ftrace_filter 115 command=$(echo "$2" | tr -d ^)
|
/Linux-v5.4/arch/x86/kernel/cpu/mce/ |
D | amd.c | 379 struct thresh_restart *tr = _tr; in threshold_restart_bank() local 382 rdmsr(tr->b->address, lo, hi); in threshold_restart_bank() 384 if (tr->b->threshold_limit < (hi & THRESHOLD_MAX)) in threshold_restart_bank() 385 tr->reset = 1; /* limit cannot be lower than err count */ in threshold_restart_bank() 387 if (tr->reset) { /* reset err count and overflow bit */ in threshold_restart_bank() 390 (THRESHOLD_MAX - tr->b->threshold_limit); in threshold_restart_bank() 391 } else if (tr->old_limit) { /* change limit w/o reset */ in threshold_restart_bank() 393 (tr->old_limit - tr->b->threshold_limit); in threshold_restart_bank() 402 if (!tr->b->interrupt_capable) in threshold_restart_bank() 405 if (tr->set_lvt_off) { in threshold_restart_bank() [all …]
|
/Linux-v5.4/tools/power/cpupower/utils/ |
D | version-gen.sh | 26 eval $(grep '^VERSION[[:space:]]*=' ../../../Makefile|tr -d ' ') 27 eval $(grep '^PATCHLEVEL[[:space:]]*=' ../../../Makefile|tr -d ' ') 28 eval $(grep '^SUBLEVEL[[:space:]]*=' ../../../Makefile|tr -d ' ') 29 eval $(grep '^EXTRAVERSION[[:space:]]*=' ../../../Makefile|tr -d ' ')
|