| /linux/kernel/trace/ |
| A D | trace_irqsoff.c | 66 # define is_graph(tr) ((tr)->trace_flags & TRACE_ITER_DISPLAY_GRAPH) argument 172 tr->max_latency = 0; in irqsoff_display_graph() 234 if (is_graph(iter->tr)) in irqsoff_trace_open() 267 if (is_graph(tr)) in irqsoff_print_header() 278 if (is_graph(tr)) in __trace_function() 497 register_irqsoff_function(tr, is_graph(tr), 1); in irqsoff_function_set() 499 unregister_irqsoff_function(tr, is_graph(tr)); in irqsoff_function_set() 565 tr->max_latency = 0; in __irqsoff_tracer_init() 566 irqsoff_trace = tr; in __irqsoff_tracer_init() 573 if (start_irqsoff_tracer(tr, (tr->flags & TRACE_ARRAY_FL_GLOBAL && in __irqsoff_tracer_init() [all …]
|
| A D | trace_functions.c | 68 tr->ops = ops; in ftrace_allocate_ftrace_ops() 76 kfree(tr->ops); in ftrace_free_ftrace_ops() 77 tr->ops = NULL; in ftrace_free_ftrace_ops() 91 if (!tr->ops) in ftrace_create_function_files() 94 ret = allocate_fgraph_ops(tr, tr->ops); in ftrace_create_function_files() 96 kfree(tr->ops); in ftrace_create_function_files() 148 if (!tr->ops) in function_trace_init() 854 if (!tr) in ftrace_trace_onoff_callback() 873 if (!tr) in ftrace_stacktrace_callback() 888 if (!tr) in ftrace_dump_callback() [all …]
|
| A D | trace_sched_wakeup.c | 44 # define is_graph(tr) ((tr)->trace_flags & TRACE_ITER_DISPLAY_GRAPH) argument 110 tr->max_latency = 0; in wakeup_display_graph() 272 register_wakeup_function(tr, is_graph(tr), 1); in wakeup_function_set() 274 unregister_wakeup_function(tr, is_graph(tr)); in wakeup_function_set() 309 if (is_graph(tr)) in __trace_function() 636 wakeup_reset(tr); in start_wakeup_tracer() 647 if (start_func_tracer(tr, is_graph(tr))) in start_wakeup_tracer() 662 stop_func_tracer(tr, is_graph(tr)); in stop_wakeup_tracer() 680 wakeup_trace = tr; in __wakeup_tracer_init() 725 wakeup_reset(tr); in wakeup_tracer_reset() [all …]
|
| A D | trace.c | 590 if (tr && trace_array_get(tr) < 0) in tracing_check_open_get_tr() 4760 iter->tr = tr; in __tracing_open() 6224 tr->current_trace->reset(tr); in tracing_set_nop() 6311 tr->current_trace->reset(tr); in tracing_set_tracer() 6543 iter->tr = tr; in tracing_open_pipe() 7410 iter->tr = tr; in tracing_snapshot_open() 8060 info->iter.tr = tr; in tracing_buffers_open() 9087 topt->tr = tr; in create_trace_option_file() 9398 buf->tr = tr; in allocate_trace_buffer() 9742 if (tr->ref > 1 || (tr->current_trace && tr->trace_ref)) in __remove_instance() [all …]
|
| A D | trace.h | 211 struct trace_array *tr; member 457 struct trace_array *tr; in top_trace_array() local 463 typeof(*tr), list); in top_trace_array() 465 return tr; in top_trace_array() 549 struct trace_array *tr; member 801 struct trace_array *tr); 803 struct trace_array *tr); 1150 struct trace_array *tr, 1154 struct trace_array *tr, 1158 struct trace_array *tr, [all …]
|
| A D | trace_events.c | 478 struct trace_array *tr = trace_file->tr; in trace_event_ignore_this_pid() local 613 struct trace_array *tr = file->tr; in __ftrace_event_enable_disable() local 1092 if (!tr) in ftrace_set_clr_event() 1143 if (!tr) in trace_set_clr_event() 1168 if (!tr) in trace_array_set_clr_event() 1457 struct trace_array *tr = dir->tr; in system_enable_read() local 1828 dir->tr = tr; in system_tr_open() 2430 dir->tr = tr; in event_subsystem_dir() 2574 struct trace_array *tr = file->tr; in event_create_dir() local 3001 file->tr = tr; in trace_create_new_event() [all …]
|
| A D | trace_selftest.c | 424 trace->reset(tr); in trace_selftest_startup_dynamic_tracing() 432 trace->reset(tr); in trace_selftest_startup_dynamic_tracing() 726 trace->reset(tr); in trace_selftest_startup_function() 1218 trace->stop(tr); in trace_selftest_startup_irqsoff() 1225 trace->reset(tr); in trace_selftest_startup_irqsoff() 1280 trace->stop(tr); in trace_selftest_startup_preemptoff() 1287 trace->reset(tr); in trace_selftest_startup_preemptoff() 1346 trace->stop(tr); in trace_selftest_startup_preemptirqsoff() 1367 trace->start(tr); in trace_selftest_startup_preemptirqsoff() 1376 trace->stop(tr); in trace_selftest_startup_preemptirqsoff() [all …]
|
| A D | trace_functions_graph.c | 304 tr->gops = gops; in allocate_fgraph_ops() 305 gops->private = tr; in allocate_fgraph_ops() 314 kfree(tr->gops); in free_fgraph_ops() 354 graph_trace_reset(tr); in graph_trace_update_thresh() 543 struct trace_array *tr = iter->tr; in print_graph_irq() local 711 struct trace_array *tr = iter->tr; in print_graph_entry_leaf() local 773 struct trace_array *tr = iter->tr; in print_graph_entry_nested() local 817 struct trace_array *tr = iter->tr; in print_graph_prologue() local 1002 struct trace_array *tr = iter->tr; in print_graph_return() local 1080 struct trace_array *tr = iter->tr; in print_graph_comment() local [all …]
|
| A D | trace_boot.c | 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() 615 trace_boot_init_events(tr, node); in trace_boot_init_one_instance() 624 struct trace_array *tr; in trace_boot_init_instances() local 637 if (!tr) { in trace_boot_init_instances() 642 trace_array_put(tr); in trace_boot_init_instances() 649 struct trace_array *tr; in trace_boot_init() local 655 tr = top_trace_array(); in trace_boot_init() [all …]
|
| A D | trace_hwlat.c | 302 if (latency > tr->max_latency) { in get_sample() 303 tr->max_latency = latency; in get_sample() 304 latency_fsnotify(tr); in get_sample() 708 hwlat_tracer_stop(tr); in hwlat_mode_write() 722 hwlat_tracer_start(tr); in hwlat_mode_write() 819 err = start_single_kthread(tr); in hwlat_tracer_start() 838 hwlat_trace = tr; in hwlat_tracer_init() 841 tr->max_latency = 0; in hwlat_tracer_init() 848 if (tracer_tracing_is_on(tr)) in hwlat_tracer_init() 849 hwlat_tracer_start(tr); in hwlat_tracer_init() [all …]
|
| 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
|
| 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() 51 mmio_reset_data(tr); in mmio_trace_reset() 58 mmio_reset_data(tr); in mmio_trace_start() 319 struct trace_array *tr = mmio_trace_array; in mmio_trace_rw() local 321 __trace_mmiotrace_rw(tr, data, rw); in mmio_trace_rw() 350 struct trace_array *tr = mmio_trace_array; in mmio_trace_mapping() local [all …]
|
| A D | trace_syscalls.c | 130 struct trace_array *tr = iter->tr; in print_syscall_enter() local 157 if (tr && tr->trace_flags & TRACE_ITER_VERBOSE) in print_syscall_enter() 371 struct trace_array *tr = file->tr; in reg_event_syscall_enter() local 383 tr->sys_refcount_enter++; in reg_event_syscall_enter() 392 struct trace_array *tr = file->tr; in unreg_event_syscall_enter() local 399 tr->sys_refcount_enter--; in unreg_event_syscall_enter() 409 struct trace_array *tr = file->tr; in reg_event_syscall_exit() local 417 if (!tr->sys_refcount_exit) in reg_event_syscall_exit() 421 tr->sys_refcount_exit++; in reg_event_syscall_exit() 430 struct trace_array *tr = file->tr; in unreg_event_syscall_exit() local [all …]
|
| /linux/kernel/bpf/ |
| A D | trampoline.c | 148 tr = kzalloc(sizeof(*tr), GFP_KERNEL); in bpf_trampoline_lookup() 149 if (!tr) in bpf_trampoline_lookup() 154 kfree(tr); in bpf_trampoline_lookup() 155 tr = NULL; in bpf_trampoline_lookup() 158 tr->fops->private = tr; in bpf_trampoline_lookup() 171 return tr; in bpf_trampoline_lookup() 406 err = unregister_fentry(tr, tr->cur_image->image); in bpf_trampoline_update() 454 &tr->func.model, tr->flags, tlinks, in bpf_trampoline_update() 713 if (!tr) in bpf_trampoline_link_cgroup_shim() 790 if (!tr) in bpf_trampoline_get() [all …]
|
| /linux/fs/gfs2/ |
| A D | trans.c | 32 tr->tr_blocks, tr->tr_revokes, tr->tr_reserved, 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() 55 tr->tr_ip = ip; in __gfs2_trans_begin() 56 tr->tr_blocks = blocks; in __gfs2_trans_begin() 116 if (!tr) in gfs2_trans_begin() 141 gfs2_log_release_revokes(sdp, tr->tr_revokes - tr->tr_num_revoke); in gfs2_trans_end() 143 nbuf = tr->tr_num_buf_new + tr->tr_num_databuf_new; in gfs2_trans_end() 148 gfs2_assert_withdraw(sdp, tr->tr_num_revoke <= tr->tr_revokes)) in gfs2_trans_end() [all …]
|
| A D | log.c | 395 gfs2_ail_empty_tr(sdp, tr, &tr->tr_ail2_list); in __ail2_empty() 655 if (tr) { in calc_reserved() 656 blocks = tr->tr_num_buf_new - tr->tr_num_buf_rm; in calc_reserved() 946 gfs2_ail_empty_tr(sdp, tr, &tr->tr_ail1_list); in gfs2_ail_drain() 947 gfs2_ail_empty_tr(sdp, tr, &tr->tr_ail2_list); in gfs2_ail_drain() 954 gfs2_ail_empty_tr(sdp, tr, &tr->tr_ail2_list); in gfs2_ail_drain() 1003 if (!tr) in trans_drain() 1065 if (tr) { in gfs2_log_flush() 1121 if (tr && !list_empty(&tr->tr_ail1_list)) { in gfs2_log_flush() 1168 if (tr && list_empty(&tr->tr_list)) in gfs2_log_flush() [all …]
|
| /linux/drivers/media/radio/ |
| A D | radio-timb.c | 99 tr = devm_kzalloc(&pdev->dev, sizeof(*tr), GFP_KERNEL); in timbradio_probe() 100 if (!tr) { in timbradio_probe() 105 tr->pdata = *pdata; in timbradio_probe() 114 tr->video_dev.lock = &tr->lock; in timbradio_probe() 117 strscpy(tr->v4l2_dev.name, DRIVER_NAME, sizeof(tr->v4l2_dev.name)); in timbradio_probe() 122 tr->video_dev.v4l2_dev = &tr->v4l2_dev; in timbradio_probe() 124 tr->sd_tuner = v4l2_i2c_new_subdev_board(&tr->v4l2_dev, in timbradio_probe() 126 tr->sd_dsp = v4l2_i2c_new_subdev_board(&tr->v4l2_dev, in timbradio_probe() 128 if (tr->sd_tuner == NULL || tr->sd_dsp == NULL) { in timbradio_probe() 133 tr->v4l2_dev.ctrl_handler = tr->sd_dsp->ctrl_handler; in timbradio_probe() [all …]
|
| A D | radio-trust.c | 58 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) 123 tr->ioval = (tr->ioval & 0xf7) | (mute << 3); in trust_s_mute_volume() 124 outb(tr->ioval, isa->io); in trust_s_mute_volume() 133 tr->ioval = (tr->ioval & 0xfb) | (!stereo << 2); in trust_s_stereo() [all …]
|
| /linux/drivers/input/touchscreen/ |
| A D | touchright.c | 45 struct tr { struct 56 struct tr *tr = serio_get_drvdata(serio); in tr_interrupt() argument 59 tr->data[tr->idx] = data; 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() 70 tr->idx = 0; in tr_interrupt() 83 struct tr *tr = serio_get_drvdata(serio); in tr_disconnect() local 90 kfree(tr); in tr_disconnect() 101 struct tr *tr; in tr_connect() local 105 tr = kzalloc(sizeof(*tr), GFP_KERNEL); in tr_connect() [all …]
|
| /linux/drivers/mtd/ |
| A D | mtd_blkdevs.c | 124 struct mtd_blktrans_ops *tr = dev->tr; in mtd_blktrans_work() local 259 ret = dev->tr->getgeo ? dev->tr->getgeo(dev, geo) : -ENOTTY; in blktrans_getgeo() 278 struct mtd_blktrans_ops *tr = new->tr; in add_mtd_blktrans_dev() local 337 if (tr->discard) in add_mtd_blktrans_dev() 339 if (tr->flush) in add_mtd_blktrans_dev() 463 tr->add_mtd(tr, mtd); in blktrans_notify_add() 482 ret = register_blkdev(tr->major, tr->name); in register_mtd_blktrans() 485 tr->name, tr->major, ret); in register_mtd_blktrans() 492 tr->blkshift = ffs(tr->blksize) - 1; in register_mtd_blktrans() 500 tr->add_mtd(tr, mtd); in register_mtd_blktrans() [all …]
|
| /linux/include/linux/ |
| A D | trace.h | 41 #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/ |
| 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() 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/s390/crypto/ |
| A D | zcrypt_api.c | 688 cpen = (tr && tr->again_counter && tr->last_qid && in zcrypt_rsa_modexpo() 703 qpen = (tr && tr->again_counter && tr->last_qid && in zcrypt_rsa_modexpo() 792 cpen = (tr && tr->again_counter && tr->last_qid && in zcrypt_rsa_crt() 807 qpen = (tr && tr->again_counter && tr->last_qid && in zcrypt_rsa_crt() 911 cpen = (tr && tr->again_counter && tr->last_qid && in _zcrypt_send_cprb() 928 qpen = (tr && tr->again_counter && tr->last_qid && in _zcrypt_send_cprb() 980 memset(&tr, 0, sizeof(tr)); in zcrypt_send_cprb() 1107 cpen = (tr && tr->again_counter && tr->last_qid && in _zcrypt_send_ep11_cprb() 1125 qpen = (tr && tr->again_counter && tr->last_qid && in _zcrypt_send_ep11_cprb() 1182 memset(&tr, 0, sizeof(tr)); in zcrypt_send_ep11_cprb() [all …]
|
| /linux/drivers/net/ethernet/toshiba/ |
| A D | tc35815.c | 528 &tr->MD_CA); in tc_mdio_write() 575 &tr->Tx_Ctl); in tc_handle_link_change() 1189 tc_writel(0, &tr->Int_En); in tc35815_schedule_restart() 1190 tc_writel(tc_readl(&tr->DMA_Ctl) | DMA_IntMask, &tr->DMA_Ctl); in tc35815_schedule_restart() 1639 &tr->Int_Src); in tc35815_poll() 1652 tc_writel(tc_readl(&tr->DMA_Ctl) & ~DMA_IntMask, &tr->DMA_Ctl); in tc35815_poll() 2034 tc_writel(0, &tr->MAC_Ctl); in tc35815_chip_reset() 2041 tc_writel(0, &tr->Int_En); in tc35815_chip_reset() 2046 tc_writel(0, &tr->Tx_Ctl); in tc35815_chip_reset() 2047 tc_writel(0, &tr->Rx_Ctl); in tc35815_chip_reset() [all …]
|
| /linux/tools/bootconfig/scripts/ |
| A D | ftrace.sh | 55 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
|