Home
last modified time | relevance | path

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

12345678910>>...13

/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
42 * tr->mutex is already locked. in bpf_tramp_ftrace_ops_func()
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()
64 * tr->mutex => direct_mutex (ftrace.c) => ftrace_lock (ftrace.c) in bpf_tramp_ftrace_ops_func()
72 * mutex_trylock(&tr in bpf_tramp_ftrace_ops_func()
140 struct bpf_trampoline *tr; bpf_trampoline_lookup() local
178 unregister_fentry(struct bpf_trampoline * tr,void * old_addr) unregister_fentry() argument
191 modify_fentry(struct bpf_trampoline * tr,void * old_addr,void * new_addr,bool lock_direct_mutex) modify_fentry() argument
209 register_fentry(struct bpf_trampoline * tr,void * new_addr) register_fentry() argument
233 bpf_trampoline_get_progs(const struct bpf_trampoline * tr,int * total,bool * ip_arg) bpf_trampoline_get_progs() argument
398 bpf_trampoline_update(struct bpf_trampoline * tr,bool lock_direct_mutex) bpf_trampoline_update() argument
550 __bpf_trampoline_link_prog(struct bpf_tramp_link * link,struct bpf_trampoline * tr,struct bpf_prog * tgt_prog) __bpf_trampoline_link_prog() argument
602 bpf_trampoline_link_prog(struct bpf_tramp_link * link,struct bpf_trampoline * tr,struct bpf_prog * tgt_prog) bpf_trampoline_link_prog() argument
614 __bpf_trampoline_unlink_prog(struct bpf_tramp_link * link,struct bpf_trampoline * tr,struct bpf_prog * tgt_prog) __bpf_trampoline_unlink_prog() argument
637 bpf_trampoline_unlink_prog(struct bpf_tramp_link * link,struct bpf_trampoline * tr,struct bpf_prog * tgt_prog) bpf_trampoline_unlink_prog() argument
711 cgroup_shim_find(struct bpf_trampoline * tr,bpf_func_t bpf_func) cgroup_shim_find() argument
735 struct bpf_trampoline *tr; bpf_trampoline_link_cgroup_shim() local
799 struct bpf_trampoline *tr; bpf_trampoline_unlink_cgroup_shim() local
825 struct bpf_trampoline *tr; bpf_trampoline_get() local
842 bpf_trampoline_put(struct bpf_trampoline * tr) bpf_trampoline_put() argument
1055 __bpf_tramp_enter(struct bpf_tramp_image * tr) __bpf_tramp_enter() argument
1060 __bpf_tramp_exit(struct bpf_tramp_image * tr) __bpf_tramp_exit() argument
[all...]
/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);
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_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.c102 dummy_set_flag(struct trace_array *tr, u32 old_flags, u32 bit, int set) in dummy_set_flag() argument
218 int tracing_set_tracer(struct trace_array *tr, const char *buf);
219 static void ftrace_trace_userstack(struct trace_array *tr,
545 static __always_inline bool printk_binsafe(struct trace_array *tr) in printk_binsafe() argument
553 return !(tr->flags & TRACE_ARRAY_FL_BOOT); in printk_binsafe()
556 static void update_printk_trace(struct trace_array *tr) in update_printk_trace() argument
558 if (printk_trace == tr) in update_printk_trace()
562 printk_trace = tr; in update_printk_trace()
563 tr->trace_flags |= TRACE_ITER_TRACE_PRINTK; in update_printk_trace()
566 /* Returns true if the status of tr changed */
[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.h212 struct trace_array *tr; member
259 typedef bool (*cond_update_fn_t)(struct trace_array *tr, void *cond_data);
268 * tracing_snapshot_cond(tr, cond_data), the cond_data passed in is
272 * the trace_array. Because the tr->max_lock is held throughout the
291 * callback function is invoked with the tr->max_lock held. The
466 extern int trace_array_get(struct trace_array *tr);
467 extern int tracing_check_open_get_tr(struct trace_array *tr);
472 extern int tracing_set_filter_buffering(struct trace_array *tr, bool set);
473 extern int tracing_set_clock(struct trace_array *tr, const char *clockstr);
475 extern bool trace_clock_in_ns(struct trace_array *tr);
[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_functions_graph.c121 print_graph_duration(struct trace_array *tr, unsigned long long duration,
124 static int __graph_entry(struct trace_array *tr, struct ftrace_graph_ent *trace, in __graph_entry() argument
128 struct trace_buffer *buffer = tr->array_buffer.buffer; in __graph_entry()
154 int __trace_graph_entry(struct trace_array *tr, in __trace_graph_entry() argument
158 return __graph_entry(tr, trace, trace_ctx, NULL); in __trace_graph_entry()
162 int __trace_graph_retaddr_entry(struct trace_array *tr, in __trace_graph_retaddr_entry() argument
168 struct trace_buffer *buffer = tr->array_buffer.buffer; in __trace_graph_retaddr_entry()
184 int __trace_graph_retaddr_entry(struct trace_array *tr, in __trace_graph_retaddr_entry() argument
211 struct trace_array *tr = gops->private; in graph_entry() local
235 if (!ftrace_trace_task(tr)) in graph_entry()
[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_syscalls.c130 struct trace_array *tr = iter->tr; in print_syscall_enter() local
160 if (tr && tr->trace_flags & TRACE_ITER_VERBOSE) in print_syscall_enter()
299 struct trace_array *tr = data; in ftrace_syscall_enter() local
319 trace_file = READ_ONCE(tr->enter_syscall_files[syscall_nr]); in ftrace_syscall_enter()
346 struct trace_array *tr = data; in ftrace_syscall_exit() local
364 trace_file = READ_ONCE(tr->exit_syscall_files[syscall_nr]); in ftrace_syscall_exit()
389 struct trace_array *tr = file->tr; in reg_event_syscall_enter() local
397 if (!tr->sys_refcount_enter) in reg_event_syscall_enter()
398 ret = register_trace_sys_enter(ftrace_syscall_enter, tr); in reg_event_syscall_enter()
400 WRITE_ONCE(tr->enter_syscall_files[num], file); in reg_event_syscall_enter()
[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_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); \
202 struct trace_array *tr = hwlat_trace; in get_sample() local
300 if (latency > tr->max_latency) { in get_sample()
301 tr->max_latency = latency; in get_sample()
302 latency_fsnotify(tr); in get_sample()
315 struct trace_array *tr = hwlat_trace; in move_to_next_cpu() local
327 cpumask_and(current_mask, cpu_online_mask, tr->tracing_cpumask); in move_to_next_cpu()
[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_kdb.c25 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()
80 tr->trace_flags = old_userobj; in ftrace_dump_buf()
120 tracer_tracing_disable(iter.tr); in kdb_ftdump()
133 tracer_tracing_enable(iter.tr); in kdb_ftdump()
/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(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/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.c643 struct zcrypt_track *tr, in zcrypt_rsa_modexpo() argument
694 cpen = (tr && tr->again_counter && tr->last_qid && in zcrypt_rsa_modexpo()
695 AP_QID_CARD(tr->last_qid) == zc->card->id) ? in zcrypt_rsa_modexpo()
709 qpen = (tr && tr->again_counter && tr->last_qid && in zcrypt_rsa_modexpo()
710 tr->last_qid == zq->queue->qid) ? in zcrypt_rsa_modexpo()
738 if (tr) { in zcrypt_rsa_modexpo()
739 tr->last_rc = rc; in zcrypt_rsa_modexpo()
740 tr->last_qid = qid; in zcrypt_rsa_modexpo()
748 struct zcrypt_track *tr, in zcrypt_rsa_crt() argument
799 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.c464 struct xfs_trim_rtdev *tr) in xfs_discard_free_rtdev_extents() argument
468 list_for_each_entry_safe(busyp, n, &tr->extent_list, list) { in xfs_discard_free_rtdev_extents()
482 struct xfs_trim_rtdev *tr) in xfs_discard_rtdev_extents() argument
492 list_for_each_entry(busyp, &tr->extent_list, list) { in xfs_discard_rtdev_extents()
506 xfs_discard_free_rtdev_extents(tr); in xfs_discard_rtdev_extents()
532 struct xfs_trim_rtdev *tr = priv; in xfs_trim_gather_rtextent() local
536 if (rec->ar_startext > tr->stop_rtx) { in xfs_trim_gather_rtextent()
542 tr->restart_rtx = rec->ar_startext; in xfs_trim_gather_rtextent()
550 if (rlen < tr->minlen_fsb) { in xfs_trim_gather_rtextent()
562 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/drivers/android/binder/
H A Dtransaction.rs57 tr: &BinderTransactionDataSg, in new()
60 let trd = &tr.transaction_data; in new()
67 tr, in new()
118 tr: &BinderTransactionDataSg, in new_reply()
122 let trd = &tr.transaction_data; in new_reply()
123 let mut alloc = match from.copy_transaction_data(to.clone(), tr, debug_id, allow_fds, None) in new_reply()
367 let tr = tr_sec.tr_data(); in do_work() localVariable
370 tr.target.ptr = ptr as _; in do_work()
371 tr.cookie = cookie as _; in do_work()
373 tr.code = self.code; in do_work()
[all …]

12345678910>>...13