Home
last modified time | relevance | path

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

12345678910

/linux/kernel/trace/
H A Dtrace_irqsoff.c40 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 …]
H A Dtrace_functions.c22 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 …]
H A Dtrace_sched_wakeup.c36 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 …]
H A Dtrace.c97 dummy_set_flag(struct trace_array *tr, u32 old_flags, u32 bit, int set) in dummy_set_flag() argument
179 int tracing_set_tracer(struct trace_array *tr, const char *buf);
180 static void ftrace_trace_userstack(struct trace_array *tr,
505 static __always_inline bool printk_binsafe(struct trace_array *tr) in printk_binsafe() argument
513 return !(tr->flags & TRACE_ARRAY_FL_BOOT); in printk_binsafe()
516 static void update_printk_trace(struct trace_array *tr) in update_printk_trace() argument
518 if (printk_trace == tr) in update_printk_trace()
522 printk_trace = tr; in update_printk_trace()
523 tr->trace_flags |= TRACE_ITER_TRACE_PRINTK; in update_printk_trace()
526 void trace_set_ring_buffer_expanded(struct trace_array *tr) in trace_set_ring_buffer_expanded() argument
[all …]
H A Dtrace.h211 struct trace_array *tr; member
258 typedef bool (*cond_update_fn_t)(struct trace_array *tr, void *cond_data);
440 extern int trace_array_get(struct trace_array *tr);
441 extern int tracing_check_open_get_tr(struct trace_array *tr);
446 extern int tracing_set_filter_buffering(struct trace_array *tr, bool set);
447 extern int tracing_set_clock(struct trace_array *tr, const char *clockstr);
449 extern bool trace_clock_in_ns(struct trace_array *tr);
457 struct trace_array *tr; in top_trace_array() local
462 tr = list_entry(ftrace_trace_arrays.prev, in top_trace_array()
463 typeof(*tr), list); in top_trace_array()
[all …]
H A Dtrace_events.c72 #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)
478 struct trace_array *tr = trace_file->tr; in trace_event_ignore_this_pid() local
483 pid_list = rcu_dereference_raw(tr->filtered_pids); in trace_event_ignore_this_pid()
484 no_pid_list = rcu_dereference_raw(tr->filtered_no_pids); in trace_event_ignore_this_pid()
489 data = this_cpu_ptr(tr->array_buffer.data); in trace_event_ignore_this_pid()
[all …]
H A 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()
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 …]
H A Dtrace_functions_graph.c98 print_graph_duration(struct trace_array *tr, unsigned long long duration,
101 int __trace_graph_entry(struct trace_array *tr, in __trace_graph_entry() argument
107 struct trace_buffer *buffer = tr->array_buffer.buffer; in __trace_graph_entry()
134 struct trace_array *tr = gops->private; in trace_graph_entry() local
161 if (!ftrace_trace_task(tr)) in trace_graph_entry()
179 data = per_cpu_ptr(tr->array_buffer.data, cpu); in trace_graph_entry()
183 ret = __trace_graph_entry(tr, trace, trace_ctx); in trace_graph_entry()
195 __trace_graph_function(struct trace_array *tr, in __trace_graph_function() argument
210 __trace_graph_entry(tr, &ent, trace_ctx); in __trace_graph_function()
211 __trace_graph_return(tr, &ret, trace_ctx); in __trace_graph_function()
[all …]
H A Dtrace_boot.c25 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 …]
H A Dtrace_hwlat.c132 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 in move_to_next_cpu()
421 start_single_kthread(struct trace_array * tr) start_single_kthread() argument
513 struct trace_array *tr = hwlat_trace; hwlat_hotplug_workfn() local
579 start_per_cpu_kthreads(struct trace_array * tr) start_per_cpu_kthreads() argument
683 struct trace_array *tr = hwlat_trace; hwlat_mode_write() local
810 hwlat_tracer_start(struct trace_array * tr) hwlat_tracer_start() argument
822 hwlat_tracer_stop(struct trace_array * tr) hwlat_tracer_stop() argument
830 hwlat_tracer_init(struct trace_array * tr) hwlat_tracer_init() argument
854 hwlat_tracer_reset(struct trace_array * tr) hwlat_tracer_reset() argument
[all...]
H A Dtrace_mmiotrace.c28 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 …]
H A 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
H A Dtrace_syscalls.c130 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/kernel/bpf/
H A Dtrampoline.c33 static int bpf_trampoline_update(struct bpf_trampoline *tr, bool lock_direct_mutex);
37 struct bpf_trampoline *tr = ops->private; in bpf_tramp_ftrace_ops_func() local
44 lockdep_assert_held_once(&tr->mutex); in bpf_tramp_ftrace_ops_func()
51 if ((tr->flags & BPF_TRAMP_F_CALL_ORIG) && in bpf_tramp_ftrace_ops_func()
52 !(tr->flags & BPF_TRAMP_F_ORIG_STACK)) { in bpf_tramp_ftrace_ops_func()
53 if (WARN_ON_ONCE(tr->flags & BPF_TRAMP_F_SHARE_IPMODIFY)) in bpf_tramp_ftrace_ops_func()
56 tr->flags |= BPF_TRAMP_F_SHARE_IPMODIFY; in bpf_tramp_ftrace_ops_func()
75 if (!mutex_trylock(&tr->mutex)) { in bpf_tramp_ftrace_ops_func()
85 tr->flags |= BPF_TRAMP_F_SHARE_IPMODIFY; in bpf_tramp_ftrace_ops_func()
87 if ((tr->flags & BPF_TRAMP_F_CALL_ORIG) && in bpf_tramp_ftrace_ops_func()
[all …]
/linux/fs/gfs2/
H A Dtrans.c28 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 …]
H A Dlog.c93 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()
154 struct gfs2_trans *tr; in dump_ail_list() local
158 list_for_each_entry_reverse(tr, &sdp->sd_ail1_list, tr_list) { in dump_ail_list()
159 list_for_each_entry_reverse(bd, &tr->tr_ail1_list, in dump_ail_list()
196 struct gfs2_trans *tr; in gfs2_ail1_flush() local
212 list_for_each_entry_reverse(tr, head, tr_list) { in gfs2_ail1_flush()
[all …]
/linux/drivers/media/radio/
H A Dradio-timb.c43 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 …]
H A 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/drivers/input/touchscreen/
H A Dtouchright.c45 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/drivers/mtd/
H A Dmtd_blkdevs.c45 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/drivers/s390/crypto/
H A Dzcrypt_api.c638 struct zcrypt_track *tr, in zcrypt_rsa_modexpo() argument
688 cpen = (tr && tr->again_counter && tr->last_qid && in zcrypt_rsa_modexpo()
689 AP_QID_CARD(tr->last_qid) == zc->card->id) ? in zcrypt_rsa_modexpo()
703 qpen = (tr && tr->again_counter && tr->last_qid && in zcrypt_rsa_modexpo()
704 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()
742 struct zcrypt_track *tr, in zcrypt_rsa_crt() argument
792 cpen = (tr && tr->again_counter && tr->last_qid && in zcrypt_rsa_crt()
[all …]
/linux/include/linux/
H A Dtrace.h41 #define trace_array_puts(tr, str) \ argument
43 str ? __trace_array_puts(tr, _THIS_IP_, str, strlen(str)) : -1; \
45 int __trace_array_puts(struct trace_array *tr, unsigned long ip,
50 int trace_array_printk(struct trace_array *tr, unsigned long ip,
52 int trace_array_init_printk(struct trace_array *tr);
53 void trace_array_put(struct trace_array *tr);
55 int trace_array_destroy(struct trace_array *tr);
75 static inline int trace_array_printk(struct trace_array *tr, unsigned long ip, in trace_array_printk() argument
80 static inline int trace_array_init_printk(struct trace_array *tr) in trace_array_init_printk() argument
84 static inline void trace_array_put(struct trace_array *tr) in trace_array_put() argument
[all …]
/linux/samples/ftrace/
H A Dsample-trace-array.c20 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", "sched,timer,kprobes"); 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/drivers/net/ethernet/toshiba/
H A 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/tools/bootconfig/scripts/
H A Dftrace.sh55 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

12345678910