Home
last modified time | relevance | path

Searched refs:tr (Results 1 – 25 of 149) sorted by relevance

123456

/Linux-v4.19/kernel/trace/
Dtrace_irqsoff.c39 static void stop_irqsoff_tracer(struct trace_array *tr, int graph);
40 static int start_irqsoff_tracer(struct trace_array *tr, int graph);
64 static int irqsoff_display_graph(struct trace_array *tr, int set);
65 # define is_graph(tr) ((tr)->trace_flags & TRACE_ITER_DISPLAY_GRAPH) argument
67 static inline int irqsoff_display_graph(struct trace_array *tr, int set) in irqsoff_display_graph() argument
71 # define is_graph(tr) false argument
98 static int func_prolog_dec(struct trace_array *tr, in func_prolog_dec() argument
124 *data = per_cpu_ptr(tr->trace_buffer.data, cpu); in func_prolog_dec()
142 struct trace_array *tr = irqsoff_trace; in irqsoff_tracer_call() local
146 if (!func_prolog_dec(tr, &data, &flags)) in irqsoff_tracer_call()
[all …]
Dtrace_functions.c22 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 …]
Dtrace_sched_wakeup.c36 static void wakeup_reset(struct trace_array *tr);
37 static void __wakeup_reset(struct trace_array *tr);
42 static int wakeup_display_graph(struct trace_array *tr, int set);
43 # define is_graph(tr) ((tr)->trace_flags & TRACE_ITER_DISPLAY_GRAPH) argument
45 static inline int wakeup_display_graph(struct trace_array *tr, int set) in wakeup_display_graph() argument
49 # define is_graph(tr) false argument
75 func_prolog_preempt_disable(struct trace_array *tr, in func_prolog_preempt_disable() argument
92 *data = per_cpu_ptr(tr->trace_buffer.data, cpu); in func_prolog_preempt_disable()
114 struct trace_array *tr = wakeup_trace; in wakeup_tracer_call() local
119 if (!func_prolog_preempt_disable(tr, &data, &pc)) in wakeup_tracer_call()
[all …]
Dtrace_selftest.c70 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 …]
Dtrace.c82 dummy_set_flag(struct trace_array *tr, u32 old_flags, u32 bit, int set) in dummy_set_flag() argument
161 static int tracing_set_tracer(struct trace_array *tr, const char *buf);
276 struct trace_array *tr; in trace_array_get() local
280 list_for_each_entry(tr, &ftrace_trace_arrays, list) { in trace_array_get()
281 if (tr == this_tr) { in trace_array_get()
282 tr->ref++; in trace_array_get()
715 static inline void ftrace_trace_stack(struct trace_array *tr,
726 static inline void ftrace_trace_stack(struct trace_array *tr, in ftrace_trace_stack() argument
760 void tracer_tracing_on(struct trace_array *tr) in tracer_tracing_on() argument
762 if (tr->trace_buffer.buffer) in tracer_tracing_on()
[all …]
Dtrace_events.c61 #define do_for_each_event_file(tr, file) \ argument
62 list_for_each_entry(tr, &ftrace_trace_arrays, list) { \
63 list_for_each_entry(file, &tr->events, list)
65 #define do_for_each_event_file_safe(tr, file) \ argument
66 list_for_each_entry(tr, &ftrace_trace_arrays, list) { \
68 list_for_each_entry_safe(file, ___n, &tr->events, list)
239 struct trace_array *tr = trace_file->tr; in trace_event_ignore_this_pid() local
243 pid_list = rcu_dereference_raw(tr->filtered_pids); in trace_event_ignore_this_pid()
247 data = this_cpu_ptr(tr->trace_buffer.data); in trace_event_ignore_this_pid()
328 struct trace_array *tr; in trace_event_enable_cmd_record() local
[all …]
Dtrace.h178 struct trace_array *tr; member
289 extern int trace_array_get(struct trace_array *tr);
290 extern void trace_array_put(struct trace_array *tr);
292 extern int tracing_set_time_stamp_abs(struct trace_array *tr, bool abs);
293 extern int tracing_set_clock(struct trace_array *tr, const char *clockstr);
295 extern bool trace_clock_in_ns(struct trace_array *tr);
303 struct trace_array *tr; in top_trace_array() local
308 tr = list_entry(ftrace_trace_arrays.prev, in top_trace_array()
309 typeof(*tr), list); in top_trace_array()
310 WARN_ON(!(tr->flags & TRACE_ARRAY_FL_GLOBAL)); in top_trace_array()
[all …]
Dtrace_nop.c37 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
Dtrace_functions_graph.c117 print_graph_duration(struct trace_array *tr, unsigned long long duration,
345 int __trace_graph_entry(struct trace_array *tr, in __trace_graph_entry() argument
352 struct ring_buffer *buffer = tr->trace_buffer.buffer; in __trace_graph_entry()
377 struct trace_array *tr = graph_array; in trace_graph_entry() local
385 if (!ftrace_trace_task(tr)) in trace_graph_entry()
413 data = per_cpu_ptr(tr->trace_buffer.data, cpu); in trace_graph_entry()
417 ret = __trace_graph_entry(tr, trace, flags, pc); in trace_graph_entry()
429 __trace_graph_function(struct trace_array *tr, in __trace_graph_function() argument
444 __trace_graph_entry(tr, &ent, flags, pc); in __trace_graph_function()
445 __trace_graph_return(tr, &ret, flags, pc); in __trace_graph_function()
[all …]
Dtrace_mmiotrace.c30 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 …]
Dtrace_syscalls.c125 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
326 trace_file = rcu_dereference_sched(tr->enter_syscall_files[syscall_nr]); in ftrace_syscall_enter()
342 buffer = tr->trace_buffer.buffer; in ftrace_syscall_enter()
358 struct trace_array *tr = data; in ftrace_syscall_exit() local
373 trace_file = rcu_dereference_sched(tr->exit_syscall_files[syscall_nr]); in ftrace_syscall_exit()
387 buffer = tr->trace_buffer.buffer; in ftrace_syscall_exit()
405 struct trace_array *tr = file->tr; in reg_event_syscall_enter() local
413 if (!tr->sys_refcount_enter) in reg_event_syscall_enter()
[all …]
Dtrace_hwlat.c105 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()
349 static int start_kthread(struct trace_array *tr) in start_kthread() argument
558 static void hwlat_tracer_start(struct trace_array *tr) in hwlat_tracer_start() argument
562 err = start_kthread(tr); in hwlat_tracer_start()
567 static void hwlat_tracer_stop(struct trace_array *tr) in hwlat_tracer_stop() argument
574 static int hwlat_tracer_init(struct trace_array *tr) in hwlat_tracer_init() argument
[all …]
Dftrace.c97 struct trace_array *tr; in ftrace_pids_enabled() local
102 tr = ops->private; in ftrace_pids_enabled()
104 return tr->function_pids != NULL; in ftrace_pids_enabled()
164 struct trace_array *tr = op->private; in ftrace_pid_func() local
166 if (tr && this_cpu_read(tr->trace_buffer.data->ftrace_ignore_pid)) in ftrace_pid_func()
1052 struct trace_array *tr; member
1322 static int ftrace_add_mod(struct trace_array *tr, in ftrace_add_mod() argument
1327 struct list_head *mod_head = enable ? &tr->mod_trace : &tr->mod_notrace; in ftrace_add_mod()
3075 struct trace_array *tr; member
3086 struct trace_array *tr = iter->ops->private; in t_probe_next() local
[all …]
Dtrace_kdb.c25 struct trace_array *tr; in ftrace_dump_buf() local
31 tr = iter.tr; in ftrace_dump_buf()
37 old_userobj = tr->trace_flags; in ftrace_dump_buf()
40 tr->trace_flags &= ~TRACE_ITER_SYM_USEROBJ; in ftrace_dump_buf()
88 tr->trace_flags = old_userobj; in ftrace_dump_buf()
/Linux-v4.19/drivers/media/radio/
Dradio-timb.c53 struct timbradio *tr = video_drvdata(file); in timbradio_vidioc_g_tuner() local
54 return v4l2_subdev_call(tr->sd_tuner, tuner, g_tuner, v); in timbradio_vidioc_g_tuner()
60 struct timbradio *tr = video_drvdata(file); in timbradio_vidioc_s_tuner() local
61 return v4l2_subdev_call(tr->sd_tuner, tuner, s_tuner, v); in timbradio_vidioc_s_tuner()
67 struct timbradio *tr = video_drvdata(file); in timbradio_vidioc_s_frequency() local
68 return v4l2_subdev_call(tr->sd_tuner, tuner, s_frequency, f); in timbradio_vidioc_s_frequency()
74 struct timbradio *tr = video_drvdata(file); in timbradio_vidioc_g_frequency() local
75 return v4l2_subdev_call(tr->sd_tuner, tuner, g_frequency, f); in timbradio_vidioc_g_frequency()
100 struct timbradio *tr; in timbradio_probe() local
109 tr = devm_kzalloc(&pdev->dev, sizeof(*tr), GFP_KERNEL); in timbradio_probe()
[all …]
Dradio-trust.c58 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-v4.19/fs/gfs2/
Dtrans.c34 struct gfs2_trans *tr; in gfs2_trans_begin() local
43 tr = kzalloc(sizeof(struct gfs2_trans), GFP_NOFS); in gfs2_trans_begin()
44 if (!tr) in gfs2_trans_begin()
47 tr->tr_ip = _RET_IP_; in gfs2_trans_begin()
48 tr->tr_blocks = blocks; in gfs2_trans_begin()
49 tr->tr_revokes = revokes; in gfs2_trans_begin()
50 tr->tr_reserved = 1; in gfs2_trans_begin()
51 set_bit(TR_ALLOCED, &tr->tr_flags); in gfs2_trans_begin()
53 tr->tr_reserved += 6 + blocks; in gfs2_trans_begin()
55 tr->tr_reserved += gfs2_struct2blk(sdp, revokes, in gfs2_trans_begin()
[all …]
Dlog.c95 struct gfs2_trans *tr, in gfs2_ail1_start_one() argument
105 list_for_each_entry_safe_reverse(bd, s, &tr->tr_ail1_list, bd_ail_st_list) { in gfs2_ail1_start_one()
108 gfs2_assert(sdp, bd->bd_tr == tr); in gfs2_ail1_start_one()
115 list_move(&bd->bd_ail_st_list, &tr->tr_ail2_list); in gfs2_ail1_start_one()
124 list_move(&bd->bd_ail_st_list, &tr->tr_ail1_list); in gfs2_ail1_start_one()
152 struct gfs2_trans *tr; in gfs2_ail1_flush() local
160 list_for_each_entry_reverse(tr, head, tr_list) { in gfs2_ail1_flush()
163 if (gfs2_ail1_start_one(sdp, wbc, tr, &withdraw)) in gfs2_ail1_flush()
197 static void gfs2_ail1_empty_one(struct gfs2_sbd *sdp, struct gfs2_trans *tr, in gfs2_ail1_empty_one() argument
203 list_for_each_entry_safe_reverse(bd, s, &tr->tr_ail1_list, in gfs2_ail1_empty_one()
[all …]
/Linux-v4.19/drivers/input/touchscreen/
Dtouchright.c49 struct tr { struct
60 struct tr *tr = serio_get_drvdata(serio); in tr_interrupt() local
61 struct input_dev *dev = tr->dev; in tr_interrupt()
63 tr->data[tr->idx] = data; in tr_interrupt()
65 if ((tr->data[0] & TR_FORMAT_STATUS_MASK) == TR_FORMAT_STATUS_BYTE) { in tr_interrupt()
66 if (++tr->idx == TR_LENGTH) { in tr_interrupt()
68 (tr->data[1] << 5) | (tr->data[2] >> 1)); in tr_interrupt()
70 (tr->data[3] << 5) | (tr->data[4] >> 1)); in tr_interrupt()
72 tr->data[0] & TR_FORMAT_TOUCH_BIT); in tr_interrupt()
74 tr->idx = 0; in tr_interrupt()
[all …]
/Linux-v4.19/drivers/mtd/
Dmtd_blkdevs.c76 static blk_status_t do_blktrans_request(struct mtd_blktrans_ops *tr, in do_blktrans_request() argument
83 block = blk_rq_pos(req) << 9 >> tr->blkshift; in do_blktrans_request()
84 nsect = blk_rq_cur_bytes(req) >> tr->blkshift; in do_blktrans_request()
87 if (tr->flush(dev)) in do_blktrans_request()
98 if (tr->discard(dev, block, nsect)) in do_blktrans_request()
103 for (; nsect > 0; nsect--, block++, buf += tr->blksize) { in do_blktrans_request()
104 if (tr->readsect(dev, block, buf)) { in do_blktrans_request()
113 if (!tr->writesect) in do_blktrans_request()
118 for (; nsect > 0; nsect--, block++, buf += tr->blksize) { in do_blktrans_request()
119 if (tr->writesect(dev, block, buf)) { in do_blktrans_request()
[all …]
/Linux-v4.19/drivers/net/ethernet/toshiba/
Dtc35815.c505 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-v4.19/tools/testing/selftests/ftrace/test.d/
Dfunctions51 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
/Linux-v4.19/arch/x86/kernel/cpu/mcheck/
Dmce_amd.c340 struct thresh_restart *tr = _tr; in threshold_restart_bank() local
343 rdmsr(tr->b->address, lo, hi); in threshold_restart_bank()
345 if (tr->b->threshold_limit < (hi & THRESHOLD_MAX)) in threshold_restart_bank()
346 tr->reset = 1; /* limit cannot be lower than err count */ in threshold_restart_bank()
348 if (tr->reset) { /* reset err count and overflow bit */ in threshold_restart_bank()
351 (THRESHOLD_MAX - tr->b->threshold_limit); in threshold_restart_bank()
352 } else if (tr->old_limit) { /* change limit w/o reset */ in threshold_restart_bank()
354 (tr->old_limit - tr->b->threshold_limit); in threshold_restart_bank()
363 if (!tr->b->interrupt_capable) in threshold_restart_bank()
366 if (tr->set_lvt_off) { in threshold_restart_bank()
[all …]
/Linux-v4.19/drivers/gpu/drm/tinydrm/core/
Dtinydrm-helpers.c331 tinydrm_dbg_spi_print(struct spi_device *spi, struct spi_transfer *tr, in tinydrm_dbg_spi_print() argument
334 u32 speed_hz = tr->speed_hz ? tr->speed_hz : spi->max_speed_hz; in tinydrm_dbg_spi_print()
337 hex_dump_to_buffer(buf, tr->len, 16, in tinydrm_dbg_spi_print()
338 DIV_ROUND_UP(tr->bits_per_word, 8), in tinydrm_dbg_spi_print()
344 speed_hz > 1000000 ? "MHz" : "kHz", tr->bits_per_word, tr->len, in tinydrm_dbg_spi_print()
345 tx ? "tx" : "rx", linebuf, tr->len > 16 ? " ..." : ""); in tinydrm_dbg_spi_print()
387 struct spi_transfer tr = { in tinydrm_spi_transfer() local
407 tr.bits_per_word = 8; in tinydrm_spi_transfer()
418 spi_message_add_tail(&tr, &m); in tinydrm_spi_transfer()
423 tr.tx_buf = buf; in tinydrm_spi_transfer()
[all …]
/Linux-v4.19/tools/power/cpupower/utils/
Dversion-gen.sh26 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 ' ')

123456