| /linux/kernel/bpf/ |
| H A D | trampoline.c | 34 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() 74 lockdep_assert_held_once(&tr->mutex); in bpf_tramp_ftrace_ops_func() [all …]
|
| /linux/kernel/trace/ |
| H A 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); 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 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->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 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->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 D | trace.c | 213 int tracing_set_tracer(struct trace_array *tr, const char *buf); 214 static void ftrace_trace_userstack(struct trace_array *tr, 532 static void update_printk_trace(struct trace_array *tr) in update_printk_trace() argument 534 if (printk_trace == tr) in update_printk_trace() 538 printk_trace = tr; in update_printk_trace() 539 tr->trace_flags |= TRACE_ITER(TRACE_PRINTK); in update_printk_trace() 543 static bool update_marker_trace(struct trace_array *tr, int enabled) in update_marker_trace() argument 548 if (tr->trace_flags & TRACE_ITER(COPY_MARKER)) in update_marker_trace() 551 list_add_rcu(&tr->marker_list, &marker_copies); in update_marker_trace() 552 tr->trace_flags |= TRACE_ITER(COPY_MARKER); in update_marker_trace() [all …]
|
| H A D | trace_events.c | 72 #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 D | trace_functions_graph.c | 107 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 D | trace_selftest.c | 71 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 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
|
| H A D | trace_mmiotrace.c | 28 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 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() 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()
|
| H A D | trace_osnoise.c | 81 struct trace_array *tr; member 96 static int osnoise_instance_registered(struct trace_array *tr) in osnoise_instance_registered() argument 103 if (inst->tr == tr) in osnoise_instance_registered() 117 static int osnoise_register_instance(struct trace_array *tr) in osnoise_register_instance() argument 132 inst->tr = tr; in osnoise_register_instance() 144 static void osnoise_unregister_instance(struct trace_array *tr) in osnoise_unregister_instance() argument 155 if (inst->tr == tr) { in osnoise_unregister_instance() 479 buffer = inst->tr->array_buffer.buffer; \ 524 buffer = inst->tr->array_buffer.buffer; in record_osnoise_sample() 598 buffer = inst->tr->array_buffer.buffer; in record_timerlat_sample() [all …]
|
| H A D | synth_event_gen_test.c | 104 ret = trace_array_set_clr_event(gen_synth_test->tr, in test_gen_synth_cmd() 209 ret = trace_array_set_clr_event(empty_synth_test->tr, in test_empty_synth_event() 281 ret = trace_array_set_clr_event(create_synth_test->tr, in test_create_synth_event() 448 WARN_ON(trace_array_set_clr_event(gen_synth_test->tr, in synth_event_gen_test_init() 458 WARN_ON(trace_array_set_clr_event(gen_synth_test->tr, in synth_event_gen_test_init() 464 WARN_ON(trace_array_set_clr_event(empty_synth_test->tr, in synth_event_gen_test_init() 482 trace_array_set_clr_event(gen_synth_test->tr, in synth_event_gen_test_init() 485 trace_array_set_clr_event(empty_synth_test->tr, in synth_event_gen_test_init() 488 trace_array_set_clr_event(create_synth_test->tr, in synth_event_gen_test_init() 498 WARN_ON(trace_array_set_clr_event(gen_synth_test->tr, in synth_event_gen_test_exit() [all …]
|
| H A D | ftrace.c | 104 struct trace_array *tr; in ftrace_pids_enabled() local 109 tr = ops->private; in ftrace_pids_enabled() 111 return tr->function_pids != NULL || tr->function_no_pids != NULL; in ftrace_pids_enabled() 175 struct trace_array *tr = op->private; in ftrace_pid_func() local 178 if (tr) { in ftrace_pid_func() 179 pid = this_cpu_read(tr->array_buffer.data->ftrace_ignore_pid); in ftrace_pid_func() 536 struct trace_array *tr = trace_get_global_array(); in function_stat_show() local 558 if (tr->trace_flags & TRACE_ITER(PROF_TEXT_OFFSET)) { in function_stat_show() 1073 struct trace_array *tr; member 1356 static int ftrace_add_mod(struct trace_array *tr, in ftrace_add_mod() argument [all …]
|
| /linux/drivers/input/touchscreen/ |
| H A D | touchright.c | 45 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 D | mtd_blkdevs.c | 45 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/media/radio/ |
| H A D | radio-trust.c | 58 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/fs/xfs/ |
| H A D | xfs_discard.c | 451 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/samples/ftrace/ |
| H A D | sample-trace-array.c | 20 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() 115 trace_array_init_printk(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() [all …]
|
| /linux/drivers/s390/crypto/ |
| H A D | zcrypt_api.c | 641 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/drivers/net/ethernet/toshiba/ |
| H A D | tc35815.c | 505 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 D | ftrace.sh | 56 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/arch/x86/kernel/cpu/mce/ |
| H A D | amd.c | 434 struct thresh_restart *tr = _tr; in threshold_restart_block() local 438 if (!this_cpu_read(threshold_banks) && !tr->set_lvt_off) in threshold_restart_block() 441 rdmsr(tr->b->address, lo, hi); in threshold_restart_block() 447 if (hi & MASK_OVERFLOW_HI || tr->set_lvt_off) { in threshold_restart_block() 449 hi |= THRESHOLD_MAX - tr->b->threshold_limit; in threshold_restart_block() 450 } else if (tr->old_limit) { /* change limit w/o reset */ in threshold_restart_block() 452 (tr->old_limit - tr->b->threshold_limit); in threshold_restart_block() 461 if (!tr->b->interrupt_capable) in threshold_restart_block() 464 if (tr->set_lvt_off) { in threshold_restart_block() 465 if (lvt_off_valid(tr->b, tr->lvt_off, lo, hi)) { in threshold_restart_block() [all …]
|
| /linux/tools/power/cpupower/utils/ |
| H A 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 ' ')
|
| /linux/drivers/android/binder/ |
| H A D | transaction.rs | 402 let tr = tr_sec.tr_data(); in do_work() localVariable 405 tr.target.ptr = ptr as _; in do_work() 406 tr.cookie = cookie as _; in do_work() 408 tr.code = self.code; in do_work() 409 tr.flags = self.flags; in do_work() 410 tr.data_size = self.data_size as _; in do_work() 411 tr.data.ptr.buffer = self.data_address as _; in do_work() 412 tr.offsets_size = self.offsets_size as _; in do_work() 413 if tr.offsets_size > 0 { in do_work() 414 tr.data.ptr.offsets = (self.data_address + ptr_align(self.data_size).unwrap()) as _; in do_work() [all …]
|