Home
last modified time | relevance | path

Searched full:tr (Results 1 – 25 of 341) sorted by relevance

12345678910>>...14

/linux/kernel/bpf/
H A Dtrampoline.c34 static int bpf_trampoline_update(struct bpf_trampoline *tr, bool lock_direct_mutex);
40 struct bpf_trampoline *tr; in direct_ops_ip_lookup() local
44 hlist_for_each_entry(tr, head_ip, hlist_ip) { in direct_ops_ip_lookup()
45 if (tr->ip == ip) in direct_ops_ip_lookup()
48 tr = NULL; in direct_ops_ip_lookup()
51 return tr; in direct_ops_ip_lookup()
63 struct bpf_trampoline *tr; in bpf_tramp_ftrace_ops_func() local
66 tr = direct_ops_ip_lookup(ops, ip); in bpf_tramp_ftrace_ops_func()
67 if (!tr) in bpf_tramp_ftrace_ops_func()
72 * tr->mutex is already locked. in bpf_tramp_ftrace_ops_func()
[all …]
/linux/kernel/trace/
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);
56 int ftrace_allocate_ftrace_ops(struct trace_array *tr) in ftrace_allocate_ftrace_ops() argument
61 if (tr->flags & TRACE_ARRAY_FL_GLOBAL) in ftrace_allocate_ftrace_ops()
72 tr->ops = ops; in ftrace_allocate_ftrace_ops()
73 ops->private = tr; in ftrace_allocate_ftrace_ops()
78 void ftrace_free_ftrace_ops(struct trace_array *tr) in ftrace_free_ftrace_ops() argument
80 kfree(tr->ops); in ftrace_free_ftrace_ops()
81 tr->ops = NULL; in ftrace_free_ftrace_ops()
84 int ftrace_create_function_files(struct trace_array *tr, in ftrace_create_function_files() argument
[all …]
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_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.c214 int tracing_set_tracer(struct trace_array *tr, const char *buf);
215 static void ftrace_trace_userstack(struct trace_array *tr,
542 static void update_printk_trace(struct trace_array *tr) in update_printk_trace() argument
544 if (printk_trace == tr) in update_printk_trace()
548 printk_trace = tr; in update_printk_trace()
549 tr->trace_flags |= TRACE_ITER(TRACE_PRINTK); in update_printk_trace()
552 /* Returns true if the status of tr changed */
553 static bool update_marker_trace(struct trace_array *tr, int enabled) in update_marker_trace() argument
558 if (tr->trace_flags & TRACE_ITER(COPY_MARKER)) in update_marker_trace()
561 list_add_rcu(&tr->marker_list, &marker_copies); in update_marker_trace()
[all …]
H A Dtrace_functions_graph.c107 static bool tracer_flags_is_set(struct trace_array *tr, u32 flags) in tracer_flags_is_set() argument
109 return (tr->current_trace_flags->val & flags) == flags; in tracer_flags_is_set()
124 print_graph_duration(struct trace_array *tr, unsigned long long duration,
127 static int __graph_entry(struct trace_array *tr, struct ftrace_graph_ent *trace, in __graph_entry() argument
131 struct trace_buffer *buffer = tr->array_buffer.buffer; in __graph_entry()
157 int __trace_graph_entry(struct trace_array *tr, in __trace_graph_entry() argument
161 return __graph_entry(tr, trace, trace_ctx, NULL); in __trace_graph_entry()
165 int __trace_graph_retaddr_entry(struct trace_array *tr, in __trace_graph_retaddr_entry() argument
172 struct trace_buffer *buffer = tr->array_buffer.buffer; in __trace_graph_retaddr_entry()
199 int __trace_graph_retaddr_entry(struct trace_array *tr, in __trace_graph_retaddr_entry() argument
[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)
634 struct trace_array *tr = trace_file->tr; in trace_event_ignore_this_pid() local
638 pid_list = rcu_dereference_raw(tr->filtered_pids); in trace_event_ignore_this_pid()
639 no_pid_list = rcu_dereference_raw(tr->filtered_no_pids); in trace_event_ignore_this_pid()
648 return this_cpu_read(tr->array_buffer.data->ignore_pid) != 0; in trace_event_ignore_this_pid()
[all …]
H A Dtrace_selftest.c71 arch_spin_lock(&buf->tr->max_lock); in trace_test_buffer()
89 arch_spin_unlock(&buf->tr->max_lock); in trace_test_buffer()
183 static int trace_selftest_ops(struct trace_array *tr, int cnt) in trace_selftest_ops() argument
220 ftrace_init_array_ops(tr, trace_selftest_test_global_func); in trace_selftest_ops()
221 register_ftrace_function(tr->ops); in trace_selftest_ops()
336 unregister_ftrace_function(tr->ops); in trace_selftest_ops()
337 ftrace_reset_array_ops(tr); in trace_selftest_ops()
358 struct trace_array *tr, in trace_selftest_startup_dynamic_tracing() argument
387 ret = tracer_init(trace, tr); in trace_selftest_startup_dynamic_tracing()
397 ret = trace_test_buffer(&tr->array_buffer, &count); in trace_selftest_startup_dynamic_tracing()
[all …]
H A Dtrace.h218 struct trace_array *tr; member
265 typedef bool (*cond_update_fn_t)(struct trace_array *tr, void *cond_data);
274 * tracing_snapshot_cond(tr, cond_data), the cond_data passed in is
278 * the trace_array. Because the tr->max_lock is held throughout the
297 * callback function is invoked with the tr->max_lock held. The
480 extern int trace_array_get(struct trace_array *tr);
481 extern int tracing_check_open_get_tr(struct trace_array *tr);
486 extern int tracing_set_clock(struct trace_array *tr, const char *clockstr);
488 extern bool trace_clock_in_ns(struct trace_array *tr);
490 extern unsigned long trace_adjust_address(struct trace_array *tr, unsigned long addr);
[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_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_printk.c379 static __always_inline bool printk_binsafe(struct trace_array *tr) in printk_binsafe() argument
387 return !(tr->flags & TRACE_ARRAY_FL_BOOT); in printk_binsafe()
390 int __trace_array_puts(struct trace_array *tr, unsigned long ip, in __trace_array_puts() argument
399 if (!(tr->trace_flags & TRACE_ITER(PRINTK))) in __trace_array_puts()
403 (tr->flags & TRACE_ARRAY_FL_GLOBAL))) in __trace_array_puts()
412 buffer = tr->array_buffer.buffer; in __trace_array_puts()
432 ftrace_trace_stack(tr, buffer, trace_ctx, 4, NULL); in __trace_array_puts()
455 struct trace_array *tr = READ_ONCE(printk_trace); in __trace_bputs() local
462 if (!printk_binsafe(tr)) in __trace_bputs()
465 if (!(tr->trace_flags & TRACE_ITER(PRINTK))) in __trace_bputs()
[all …]
H A Dtrace_hwlat.c132 struct trace_array *tr = hwlat_trace; in trace_hwlat_sample() local
133 struct trace_buffer *buffer = tr->array_buffer.buffer; in trace_hwlat_sample()
187 struct trace_array *tr = hwlat_trace; \
189 trace_array_printk_buf(tr->array_buffer.buffer, _THIS_IP_, msg); \
201 struct trace_array *tr = hwlat_trace; in get_sample()
299 if (latency > tr->max_latency) { in get_sample()
300 tr->max_latency = latency; in get_sample()
301 latency_fsnotify(tr); in get_sample()
314 struct trace_array *tr = hwlat_trace; in move_to_next_cpu()
326 cpumask_and(current_mask, cpu_online_mask, tr in move_to_next_cpu()
202 struct trace_array *tr = hwlat_trace; get_sample() local
315 struct trace_array *tr = hwlat_trace; move_to_next_cpu() local
416 start_single_kthread(struct trace_array * tr) start_single_kthread() argument
508 struct trace_array *tr = hwlat_trace; hwlat_hotplug_workfn() local
576 start_per_cpu_kthreads(struct trace_array * tr) start_per_cpu_kthreads() argument
680 struct trace_array *tr = hwlat_trace; hwlat_mode_write() local
807 hwlat_tracer_start(struct trace_array * tr) hwlat_tracer_start() argument
819 hwlat_tracer_stop(struct trace_array * tr) hwlat_tracer_stop() argument
827 hwlat_tracer_init(struct trace_array * tr) hwlat_tracer_init() argument
851 hwlat_tracer_reset(struct trace_array * tr) hwlat_tracer_reset() 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
/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/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/media/radio/
H A Dradio-trust.c58 struct trust *tr = kzalloc_obj(*tr); 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/include/linux/dma/
H A Dti-cppi5.h191 * @desc_hdr: packet descriptor/TR header
206 * @desc_hdr: packet/TR descriptor header
208 * Returns Error Flags from Packet/TR Descriptor
218 * @desc_hdr: packet/TR descriptor header
222 * Returns Packet and Flow ids from packet/TR descriptor
235 * @desc_hdr: packet/TR descriptor header
252 * @desc_hdr: packet/TR descriptor header
270 * @desc_hdr: packet/TR descriptor header
274 * Returns Packet Src/Dst Tags from packet/TR descriptor
290 * @desc_hdr: packet/TR descriptor header
[all …]
/linux/tools/testing/selftests/bpf/
H A Dtest_ftrace.sh4 TR=/sys/kernel/tracing/
6 TR=/sys/kernel/debug/tracing/
10 echo > $TR/trace
14 echo 0 > $TR/tracing_on
18 echo 1 > $TR/tracing_on
22 echo nop > $TR/current_tracer
28 echo "" > $TR/set_ftrace_filter
29 echo '*printk* *console* *wake* *serial* *lock*' > $TR/set_ftrace_notrace
31 echo "bpf_prog_test*" > $TR/set_graph_function
32 echo "" > $TR/set_graph_notrace
[all …]
/linux/drivers/s390/crypto/
H A Dzcrypt_api.c641 struct zcrypt_track *tr, in zcrypt_rsa_modexpo() argument
692 cpen = (tr && tr->again_counter && tr->last_qid && in zcrypt_rsa_modexpo()
693 AP_QID_CARD(tr->last_qid) == zc->card->id) ? in zcrypt_rsa_modexpo()
707 qpen = (tr && tr->again_counter && tr->last_qid && in zcrypt_rsa_modexpo()
708 tr->last_qid == zq->queue->qid) ? in zcrypt_rsa_modexpo()
736 if (tr) { in zcrypt_rsa_modexpo()
737 tr->last_rc = rc; in zcrypt_rsa_modexpo()
738 tr->last_qid = qid; in zcrypt_rsa_modexpo()
747 struct zcrypt_track *tr, in zcrypt_rsa_crt() argument
798 cpen = (tr && tr->again_counter && tr->last_qid && in zcrypt_rsa_crt()
[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()
90 * the trace array - "tr". We are done using the trace array, hence in simple_thread()
94 trace_array_put(tr); in simple_thread()
106 * associated with the trace array - "tr". in sample_trace_array_init()
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()
115 trace_array_init_printk(tr); in sample_trace_array_init()
[all …]
/linux/fs/xfs/
H A Dxfs_discard.c451 struct xfs_trim_rtdev *tr) in xfs_discard_free_rtdev_extents() argument
455 list_for_each_entry_safe(busyp, n, &tr->extent_list, list) { in xfs_discard_free_rtdev_extents()
469 struct xfs_trim_rtdev *tr) in xfs_discard_rtdev_extents() argument
479 list_for_each_entry(busyp, &tr->extent_list, list) { in xfs_discard_rtdev_extents()
491 xfs_discard_free_rtdev_extents(tr); in xfs_discard_rtdev_extents()
517 struct xfs_trim_rtdev *tr = priv; in xfs_trim_gather_rtextent() local
521 if (rec->ar_startext > tr->stop_rtx) { in xfs_trim_gather_rtextent()
527 tr->restart_rtx = rec->ar_startext; in xfs_trim_gather_rtextent()
535 if (rlen < tr->minlen_fsb) { in xfs_trim_gather_rtextent()
547 list_add_tail(&busyp->list, &tr->extent_list); in xfs_trim_gather_rtextent()
[all …]
/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.sh56 tr=`echo $t | cut -d: -f2`
57 if [ "$tr" = "" ]; then
64 if [ $tr = "enable_event" -o $tr = "disable_event" ]; then
65 tr=`echo $t | cut -d: -f2-4`
68 tr=`echo $t | cut -d: -f2`
72 tr="$tr:$limit"
74 echo "!$name:$tr" > set_ftrace_filter
/linux/io_uring/
H A Dtimeout.c448 struct io_timeout_rem *tr = io_kiocb_to_cmd(req, struct io_timeout_rem); in io_timeout_remove_prep() local
455 tr->ltimeout = false; in io_timeout_remove_prep()
456 tr->addr = READ_ONCE(sqe->addr); in io_timeout_remove_prep()
457 tr->flags = READ_ONCE(sqe->timeout_flags); in io_timeout_remove_prep()
458 if (tr->flags & IORING_TIMEOUT_UPDATE_MASK) { in io_timeout_remove_prep()
459 if (hweight32(tr->flags & IORING_TIMEOUT_CLOCK_MASK) > 1) in io_timeout_remove_prep()
461 if (tr->flags & IORING_LINK_TIMEOUT_UPDATE) in io_timeout_remove_prep()
462 tr->ltimeout = true; in io_timeout_remove_prep()
463 if (tr->flags & ~(IORING_TIMEOUT_UPDATE_MASK|IORING_TIMEOUT_ABS)) in io_timeout_remove_prep()
465 if (get_timespec64(&tr->ts, u64_to_user_ptr(READ_ONCE(sqe->addr2)))) in io_timeout_remove_prep()
[all …]

12345678910>>...14