| /linux/kernel/trace/ |
| H A D | trace_snapshot.c | 45 static void tracing_snapshot_instance_cond(struct trace_array *tr, in tracing_snapshot_instance_cond() argument 51 trace_array_puts(tr, "*** SNAPSHOT CALLED FROM NMI CONTEXT ***\n"); in tracing_snapshot_instance_cond() 52 trace_array_puts(tr, "*** snapshot is being ignored ***\n"); in tracing_snapshot_instance_cond() 56 if (!tr->allocated_snapshot) { in tracing_snapshot_instance_cond() 57 trace_array_puts(tr, "*** SNAPSHOT NOT ALLOCATED ***\n"); in tracing_snapshot_instance_cond() 58 trace_array_puts(tr, "*** stopping trace here! ***\n"); in tracing_snapshot_instance_cond() 59 tracer_tracing_off(tr); in tracing_snapshot_instance_cond() 63 if (tr->mapped) { in tracing_snapshot_instance_cond() 64 trace_array_puts(tr, "*** BUFFER MEMORY MAPPED ***\n"); in tracing_snapshot_instance_cond() 65 trace_array_puts(tr, "*** Ca in tracing_snapshot_instance_cond() 81 tracing_snapshot_instance(struct trace_array * tr) tracing_snapshot_instance() argument 99 tracing_snapshot_cond(struct trace_array * tr,void * cond_data) tracing_snapshot_cond() argument 119 tracing_cond_snapshot_data(struct trace_array * tr) tracing_cond_snapshot_data() argument 162 tracing_alloc_snapshot_instance(struct trace_array * tr) tracing_alloc_snapshot_instance() argument 187 free_snapshot(struct trace_array * tr) free_snapshot() argument 201 tracing_arm_snapshot_locked(struct trace_array * tr) tracing_arm_snapshot_locked() argument 226 tracing_arm_snapshot(struct trace_array * tr) tracing_arm_snapshot() argument 232 tracing_disarm_snapshot(struct trace_array * tr) tracing_disarm_snapshot() argument 276 tracing_snapshot_cond_enable(struct trace_array * tr,void * cond_data,cond_update_fn_t update) tracing_snapshot_cond_enable() argument 329 tracing_snapshot_cond_disable(struct trace_array * tr) tracing_snapshot_cond_disable() argument 358 struct trace_array *tr = container_of(work, struct trace_array, latency_fsnotify_workfn() local 365 struct trace_array *tr = container_of(iwork, struct trace_array, latency_fsnotify_workfn_irq() local 383 latency_fsnotify(struct trace_array * tr) latency_fsnotify() argument 398 trace_create_maxlat_file(struct trace_array * tr,struct dentry * d_tracer) trace_create_maxlat_file() argument 417 __update_max_tr(struct trace_array * tr,struct task_struct * tsk,int cpu) __update_max_tr() argument 451 __update_max_tr(struct trace_array * tr,struct task_struct * tsk,int cpu) __update_max_tr() argument 466 update_max_tr(struct trace_array * tr,struct task_struct * tsk,int cpu,void * cond_data) update_max_tr() argument 512 update_max_tr_single(struct trace_array * tr,struct task_struct * tsk,int cpu) update_max_tr_single() argument 589 struct trace_array *tr = inode->i_private; tracing_snapshot_open() local 628 tracing_swap_cpu_buffer(void * tr) tracing_swap_cpu_buffer() argument 639 struct trace_array *tr = iter->tr; tracing_snapshot_write() local 779 struct trace_array *tr = filp->private_data; tracing_max_lat_read() local 788 struct trace_array *tr = filp->private_data; tracing_max_lat_write() local 802 get_snapshot_map(struct trace_array * tr) get_snapshot_map() argument 828 put_snapshot_map(struct trace_array * tr) put_snapshot_map() argument 839 ftrace_snapshot(unsigned long ip,unsigned long parent_ip,struct trace_array * tr,struct ftrace_probe_ops * ops,void * data) ftrace_snapshot() argument 847 ftrace_count_snapshot(unsigned long ip,unsigned long parent_ip,struct trace_array * tr,struct ftrace_probe_ops * ops,void * data) ftrace_count_snapshot() argument 890 ftrace_snapshot_init(struct ftrace_probe_ops * ops,struct trace_array * tr,unsigned long ip,void * init_data,void ** data) ftrace_snapshot_init() argument 906 ftrace_snapshot_free(struct ftrace_probe_ops * ops,struct trace_array * tr,unsigned long ip,void * data) ftrace_snapshot_free() argument 934 ftrace_trace_snapshot_callback(struct trace_array * tr,struct ftrace_hash * hash,char * glob,char * cmd,char * param,int enable) ftrace_trace_snapshot_callback() argument 998 trace_allocate_snapshot(struct trace_array * tr,int size) trace_allocate_snapshot() argument 1057 struct trace_array *tr; ftrace_boot_snapshot() local [all...] |
| 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 109 ftrace_destroy_function_files(struct trace_array * tr) ftrace_destroy_function_files() argument 134 handle_func_repeats(struct trace_array * tr,u32 flags_val) handle_func_repeats() argument 146 function_trace_init(struct trace_array * tr) function_trace_init() argument 173 function_trace_reset(struct trace_array * tr) function_trace_reset() argument 180 function_trace_start(struct trace_array * tr) function_trace_start() argument 211 struct trace_array *tr = op->private; function_trace_call() local 235 struct trace_array *tr = op->private; function_args_trace_call() local 275 struct trace_array *tr = op->private; function_stack_trace_call() local 310 is_repeat_check(struct trace_array * tr,struct trace_func_repeats * last_info,unsigned long ip,unsigned long parent_ip) is_repeat_check() argument 326 process_repeats(struct trace_array * tr,unsigned long ip,unsigned long parent_ip,struct trace_func_repeats * last_info,unsigned int trace_ctx) process_repeats() argument 346 struct trace_array *tr = op->private; function_no_repeats_trace_call() local 387 struct trace_array *tr = op->private; function_stack_no_repeats_trace_call() local 440 tracing_start_function_trace(struct trace_array * tr) tracing_start_function_trace() argument 447 tracing_stop_function_trace(struct trace_array * tr) tracing_stop_function_trace() argument 456 func_set_flag(struct trace_array * tr,u32 old_flags,u32 bit,int set) func_set_flag() argument 505 update_traceon_count(struct ftrace_probe_ops * ops,unsigned long ip,struct trace_array * tr,bool on,void * data) update_traceon_count() argument 566 ftrace_traceon_count(unsigned long ip,unsigned long parent_ip,struct trace_array * tr,struct ftrace_probe_ops * ops,void * data) ftrace_traceon_count() argument 574 ftrace_traceoff_count(unsigned long ip,unsigned long parent_ip,struct trace_array * tr,struct ftrace_probe_ops * ops,void * data) ftrace_traceoff_count() argument 582 ftrace_traceon(unsigned long ip,unsigned long parent_ip,struct trace_array * tr,struct ftrace_probe_ops * ops,void * data) ftrace_traceon() argument 593 ftrace_traceoff(unsigned long ip,unsigned long parent_ip,struct trace_array * tr,struct ftrace_probe_ops * ops,void * data) ftrace_traceoff() argument 624 trace_stack(struct trace_array * tr) trace_stack() argument 631 ftrace_stacktrace(unsigned long ip,unsigned long parent_ip,struct trace_array * tr,struct ftrace_probe_ops * ops,void * data) ftrace_stacktrace() argument 639 ftrace_stacktrace_count(unsigned long ip,unsigned long parent_ip,struct trace_array * tr,struct ftrace_probe_ops * ops,void * data) ftrace_stacktrace_count() argument 699 ftrace_dump_probe(unsigned long ip,unsigned long parent_ip,struct trace_array * tr,struct ftrace_probe_ops * ops,void * data) ftrace_dump_probe() argument 709 ftrace_cpudump_probe(unsigned long ip,unsigned long parent_ip,struct trace_array * tr,struct ftrace_probe_ops * ops,void * data) ftrace_cpudump_probe() argument 775 ftrace_count_init(struct ftrace_probe_ops * ops,struct trace_array * tr,unsigned long ip,void * init_data,void ** data) ftrace_count_init() argument 791 ftrace_count_free(struct ftrace_probe_ops * ops,struct trace_array * tr,unsigned long ip,void * data) ftrace_count_free() argument 853 ftrace_trace_probe_callback(struct trace_array * tr,struct ftrace_probe_ops * ops,struct ftrace_hash * hash,char * glob,char * cmd,char * param,int enable) ftrace_trace_probe_callback() argument 892 ftrace_trace_onoff_callback(struct trace_array * tr,struct ftrace_hash * hash,char * glob,char * cmd,char * param,int enable) ftrace_trace_onoff_callback() argument 911 ftrace_stacktrace_callback(struct trace_array * tr,struct ftrace_hash * hash,char * glob,char * cmd,char * param,int enable) ftrace_stacktrace_callback() argument 926 ftrace_dump_callback(struct trace_array * tr,struct ftrace_hash * hash,char * glob,char * cmd,char * param,int enable) ftrace_dump_callback() argument 942 ftrace_cpudump_callback(struct trace_array * tr,struct ftrace_hash * hash,char * glob,char * cmd,char * param,int enable) ftrace_cpudump_callback() 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.c | 104 * as tr->current_trace_flags must never be NULL. 219 int tracing_set_tracer(struct trace_array *tr, const char *buf); 220 static void ftrace_trace_userstack(struct trace_array *tr, 538 static void update_printk_trace(struct trace_array *tr) in update_printk_trace() argument 540 if (printk_trace == tr) in update_printk_trace() 544 printk_trace = tr; in update_printk_trace() 545 tr->trace_flags |= TRACE_ITER(TRACE_PRINTK); in update_printk_trace() 548 /* Returns true if the status of tr changed */ 549 static bool update_marker_trace(struct trace_array *tr, int enabled) in update_marker_trace() argument 554 if (tr in update_marker_trace() 570 trace_set_ring_buffer_expanded(struct trace_array * tr) trace_set_ring_buffer_expanded() argument 579 struct trace_array *tr = container_of(work, struct trace_array, autoremove_work); trace_array_autoremove() local 586 trace_array_kick_autoremove(struct trace_array * tr) trace_array_kick_autoremove() argument 592 trace_array_cancel_autoremove(struct trace_array * tr) trace_array_cancel_autoremove() argument 602 trace_array_init_autoremove(struct trace_array * tr) trace_array_init_autoremove() argument 632 struct trace_array *tr; trace_array_get() local 675 tracing_check_open_get_tr(struct trace_array * tr) tracing_check_open_get_tr() argument 834 tracer_tracing_on(struct trace_array * tr) tracer_tracing_on() argument 878 struct trace_array *tr = &global_trace; tracing_snapshot() local 896 struct trace_array *tr = &global_trace; tracing_alloc_snapshot() local 918 tracer_tracing_off(struct trace_array * tr) tracer_tracing_off() argument 943 tracer_tracing_disable(struct trace_array * tr) tracer_tracing_disable() argument 958 tracer_tracing_enable(struct trace_array * tr) tracer_tracing_enable() argument 983 struct trace_array *tr = READ_ONCE(printk_trace); disable_trace_on_warning() local 1004 tracer_tracing_is_on(struct trace_array * tr) tracer_tracing_is_on() argument 1089 trace_clock_in_ns(struct trace_array * tr) trace_clock_in_ns() argument 1295 struct trace_array *tr = &global_trace; run_tracer_selftest() local 1446 free_tracers(struct trace_array * tr) free_tracers() argument 1467 struct trace_array *tr; register_tracer() local 1598 struct trace_array *tr; tracing_reset_all_online_cpus_unlocked() local 1624 tracing_start_tr(struct trace_array * tr) tracing_start_tr() argument 1668 tracing_stop_tr(struct trace_array * tr) tracing_stop_tr() argument 1876 struct trace_array *tr = trace_file->tr; trace_event_buffer_lock_reserve() local 2054 trace_buffer_unlock_commit_regs(struct trace_array * tr,struct trace_buffer * buffer,struct ring_buffer_event * event,unsigned int trace_ctx,struct pt_regs * regs) trace_buffer_unlock_commit_regs() argument 2083 trace_function(struct trace_array * tr,unsigned long ip,unsigned long parent_ip,unsigned int trace_ctx,struct ftrace_regs * fregs) trace_function() argument 2132 __ftrace_trace_stack(struct trace_array * tr,struct trace_buffer * buffer,unsigned int trace_ctx,int skip,struct pt_regs * regs) __ftrace_trace_stack() argument 2218 __trace_stack(struct trace_array * tr,unsigned int trace_ctx,int skip) __trace_stack() argument 2267 ftrace_trace_userstack(struct trace_array * tr,struct trace_buffer * buffer,unsigned int trace_ctx) ftrace_trace_userstack() argument 2309 ftrace_trace_userstack(struct trace_array * tr,struct trace_buffer * buffer,unsigned int trace_ctx) ftrace_trace_userstack() argument 2326 trace_last_func_repeats(struct trace_array * tr,struct trace_func_repeats * last_info,unsigned int trace_ctx) trace_last_func_repeats() argument 2767 struct trace_array *tr = iter->tr; s_start() local 2871 trace_total_entries_cpu(struct trace_array * tr,int cpu) trace_total_entries_cpu() argument 2883 trace_total_entries(struct trace_array * tr) trace_total_entries() argument 3004 struct trace_array *tr = iter->tr; test_cpu_buff_start() local 3046 struct trace_array *tr = iter->tr; print_trace_fmt() local 3092 struct trace_array *tr = iter->tr; print_raw_fmt() local 3117 struct trace_array *tr = iter->tr; print_hex_fmt() local 3147 struct trace_array *tr = iter->tr; print_bin_fmt() local 3203 struct trace_array *tr = iter->tr; print_trace_line() local 3254 struct trace_array *tr = iter->tr; trace_latency_header() local 3270 struct trace_array *tr = iter->tr; trace_default_header() local 3380 struct trace_array *tr = inode->i_private; __tracing_open() local 3503 struct trace_array *tr = inode->i_private; tracing_open_generic_tr() local 3564 struct trace_array *tr = inode->i_private; tracing_release() local 3602 struct trace_array *tr = inode->i_private; tracing_release_generic_tr() local 3610 struct trace_array *tr = inode->i_private; tracing_single_release_tr() local 3621 struct trace_array *tr = inode->i_private; tracing_open() local 3667 trace_ok_for_array(struct tracer * t,struct trace_array * tr) trace_ok_for_array() argument 3677 get_tracer_for_array(struct trace_array * tr,struct tracer * t) get_tracer_for_array() argument 3688 struct trace_array *tr = m->private; t_next() local 3701 struct trace_array *tr = m->private; t_start() local 3744 struct trace_array *tr = inode->i_private; show_traces_open() local 3766 struct trace_array *tr = inode->i_private; tracing_seq_release() local 3812 struct trace_array *tr = file_inode(filp)->i_private; tracing_cpumask_read() local 3830 tracing_set_cpumask(struct trace_array * tr,cpumask_var_t tracing_cpumask_new) tracing_set_cpumask() argument 3872 struct trace_array *tr = file_inode(filp)->i_private; tracing_cpumask_write() local 3911 struct trace_array *tr = m->private; tracing_trace_options_show() local 3942 __set_tracer_option(struct trace_array * tr,struct tracer_flags * tracer_flags,struct tracer_opt * opts,int neg) __set_tracer_option() argument 3962 set_tracer_option(struct trace_array * tr,char * cmp,int neg) set_tracer_option() argument 3990 set_tracer_flag(struct trace_array * tr,u64 mask,int enabled) set_tracer_flag() argument 4085 trace_set_options(struct trace_array * tr,char * option) trace_set_options() argument 4149 struct trace_array *tr = m->private; tracing_trace_options_write() local 4172 struct trace_array *tr = inode->i_private; tracing_trace_options_open() local 4697 struct trace_array *tr = filp->private_data; tracing_set_trace_read() local 4708 tracer_init(struct tracer * t,struct trace_array * tr) tracer_init() argument 4732 __tracing_resize_ring_buffer(struct trace_array * tr,unsigned long size,int cpu) __tracing_resize_ring_buffer() argument 4795 tracing_resize_ring_buffer(struct trace_array * tr,unsigned long size,int cpu_id) tracing_resize_ring_buffer() argument 4839 trace_adjust_address(struct trace_array * tr,unsigned long addr) trace_adjust_address() argument 4884 struct trace_array *tr = data; save_mod() local 4913 update_last_data(struct trace_array * tr) update_last_data() argument 4978 tracing_update_buffers(struct trace_array * tr) tracing_update_buffers() argument 4999 tracing_set_nop(struct trace_array * tr) tracing_set_nop() argument 5015 tracing_set_tracer(struct trace_array * tr,const char * buf) tracing_set_tracer() argument 5131 struct trace_array *tr = filp->private_data; tracing_set_trace_write() local 5197 struct trace_array *tr = filp->private_data; tracing_thresh_write() local 5214 open_pipe_on_cpu(struct trace_array * tr,int cpu) open_pipe_on_cpu() argument 5228 close_pipe_on_cpu(struct trace_array * tr,int cpu) close_pipe_on_cpu() argument 5241 struct trace_array *tr = inode->i_private; tracing_open_pipe() local 5308 struct trace_array *tr = inode->i_private; tracing_release_pipe() local 5329 struct trace_array *tr = iter->tr; trace_poll() local 5390 update_last_data_if_empty(struct trace_array * tr) update_last_data_if_empty() argument 5658 struct trace_array *tr = inode->i_private; tracing_syscall_buf_read() local 5672 struct trace_array *tr = inode->i_private; tracing_syscall_buf_write() local 5695 struct trace_array *tr = inode->i_private; tracing_entries_read() local 5743 struct trace_array *tr = inode->i_private; tracing_entries_write() local 5770 struct trace_array *tr = filp->private_data; tracing_total_entries_read() local 5794 struct trace_array *tr = m->private; l_next() local 5828 show_last_boot_header(struct seq_file * m,struct trace_array * tr) show_last_boot_header() argument 5847 struct trace_array *tr = m->private; l_show() local 5868 struct trace_array *tr = inode->i_private; tracing_last_boot_open() local 5890 struct trace_array *tr = inode->i_private; tracing_buffer_meta_open() local 5921 struct trace_array *tr = inode->i_private; tracing_free_buffer_release() local 5936 write_marker_to_buffer(struct trace_array * tr,const char * buf,size_t cnt,unsigned long ip) write_marker_to_buffer() argument 6307 struct trace_array *tr = filp->private_data; tracing_mark_write() local 6349 write_raw_marker_to_buffer(struct trace_array * tr,const char * buf,size_t cnt) write_raw_marker_to_buffer() argument 6388 struct trace_array *tr = filp->private_data; tracing_mark_raw_write() local 6457 struct trace_array *tr = m->private; tracing_clock_show() local 6470 tracing_set_clock(struct trace_array * tr,const char * clockstr) tracing_set_clock() argument 6513 struct trace_array *tr = m->private; tracing_clock_write() local 6539 struct trace_array *tr = inode->i_private; tracing_clock_open() local 6560 struct trace_array *tr = m->private; tracing_time_stamp_mode_show() local 6574 struct trace_array *tr = inode->i_private; tracing_time_stamp_mode_open() local 6818 get_tracing_log_err(struct trace_array * tr,int len) get_tracing_log_err() argument 6895 tracing_log_err(struct trace_array * tr,const char * loc,const char * cmd,const char ** errs,u8 type,u16 pos) tracing_log_err() argument 6924 clear_tracing_err_log(struct trace_array * tr) clear_tracing_err_log() argument 6940 struct trace_array *tr = m->private; tracing_err_log_seq_start() local 6949 struct trace_array *tr = m->private; tracing_err_log_seq_next() local 6998 struct trace_array *tr = inode->i_private; tracing_err_log_open() local 7030 struct trace_array *tr = inode->i_private; tracing_err_log_release() local 7050 struct trace_array *tr = inode->i_private; tracing_buffers_open() local 7492 struct trace_array *tr = inode->i_private; tracing_stats_read() local 7597 tracing_get_dentry(struct trace_array * tr) tracing_get_dentry() argument 7610 tracing_dentry_percpu(struct trace_array * tr,int cpu) tracing_dentry_percpu() argument 7641 tracing_init_tracefs_percpu(struct trace_array * tr,long cpu) tracing_init_tracefs_percpu() argument 7736 tr_option_match(struct trace_array * tr,void * topt) tr_option_match() argument 7761 struct trace_array *tr; trace_array_tracer_options_get() local 7846 struct trace_array *tr; trace_options_core_read() local 7865 struct trace_array *tr; trace_options_core_write() local 7907 struct trace_array *tr; trace_array_options_get() local 7941 struct trace_array *tr; trace_options_release() local 7975 trace_options_init_dentry(struct trace_array * tr) trace_options_init_dentry() argument 7996 create_trace_option_file(struct trace_array * tr,struct trace_option_dentry * topt,struct tracer_flags * flags,struct tracer_opt * opt) create_trace_option_file() argument 8016 create_trace_option_files(struct trace_array * tr,struct tracer * tracer,struct tracer_flags * flags) create_trace_option_files() argument 8073 add_tracer_options(struct trace_array * tr,struct tracers * t) add_tracer_options() argument 8088 add_tracer(struct trace_array * tr,struct tracer * tracer) add_tracer() argument 8150 create_trace_option_core_file(struct trace_array * tr,const char * option,long index) create_trace_option_core_file() argument 8164 create_trace_options_dir(struct trace_array * tr) create_trace_options_dir() argument 8186 struct trace_array *tr = filp->private_data; rb_simple_read() local 8200 struct trace_array *tr = filp->private_data; rb_simple_write() local 8243 struct trace_array *tr = filp->private_data; buffer_percent_read() local 8257 struct trace_array *tr = filp->private_data; buffer_percent_write() local 8286 struct trace_array *tr = filp->private_data; buffer_subbuf_size_read() local 8304 struct trace_array *tr = filp->private_data; buffer_subbuf_size_write() local 8394 struct trace_array *tr = data; make_mod_delta() local 8427 setup_trace_scratch(struct trace_array * tr,struct trace_scratch * tscratch,unsigned int size) setup_trace_scratch() argument 8497 allocate_trace_buffer(struct trace_array * tr,struct array_buffer * buf,int size) allocate_trace_buffer() argument 8554 allocate_trace_buffers(struct trace_array * tr,unsigned long size) allocate_trace_buffers() argument 8569 free_trace_buffers(struct trace_array * tr) free_trace_buffers() argument 8582 init_trace_flags_index(struct trace_array * tr) init_trace_flags_index() argument 8591 __update_tracer(struct trace_array * tr) __update_tracer() argument 8602 __update_tracer_options(struct trace_array * tr) __update_tracer_options() argument 8618 struct trace_array *tr; update_tracer_options() local 8629 struct trace_array *tr, *found = NULL; trace_array_find() local 8643 struct trace_array *tr; trace_array_find_get() local 8653 trace_array_create_dir(struct trace_array * tr) trace_array_create_dir() argument 8682 struct trace_array *tr; trace_array_create_systems() local 8784 struct trace_array *tr; instance_mkdir() local 8850 struct trace_array *tr; trace_array_get_by_name() local 8875 __remove_instance(struct trace_array * tr) __remove_instance() argument 8933 struct trace_array *tr; trace_array_destroy() local 8954 struct trace_array *tr; instance_rmdir() local 8968 struct trace_array *tr; create_trace_instances() local 8989 init_tracer_tracefs(struct trace_array * tr,struct dentry * d_tracer) init_tracer_tracefs() argument 9127 struct trace_array *tr = &global_trace; tracing_init_dentry() local 9263 struct trace_array *tr; trace_module_record() local 9444 trace_init_iter(struct trace_iterator * iter,struct trace_array * tr) trace_init_iter() argument 9474 ftrace_dump_one(struct trace_array * tr,enum ftrace_dump_mode dump_mode) ftrace_dump_one() argument 9566 struct trace_array *tr; ftrace_dump_by_param() local 9732 struct trace_array *tr; enable_instances() local [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.h | 218 struct trace_array *tr; member 266 typedef bool (*cond_update_fn_t)(struct trace_array *tr, void *cond_data); 276 * tracing_snapshot_cond(tr, cond_data), the cond_data passed in is 280 * the trace_array. Because the tr->max_lock is held throughout the 299 * callback function is invoked with the tr->max_lock held. The 493 extern int trace_array_get(struct trace_array *tr); 494 extern int tracing_check_open_get_tr(struct trace_array *tr); 499 extern int tracing_set_clock(struct trace_array *tr, const char *clockstr); 501 extern bool trace_clock_in_ns(struct trace_array *tr); 503 extern unsigned long trace_adjust_address(struct trace_array *tr, unsigne 507 trace_array_is_readonly(struct trace_array * tr) trace_array_is_readonly() argument 519 struct trace_array *tr; top_trace_array() local 613 struct trace_array *tr; global() member 762 tracer_tracing_is_on_cpu(struct trace_array * tr,int cpu) tracer_tracing_is_on_cpu() argument 875 latency_fsnotify(struct trace_array * tr) latency_fsnotify() argument 881 __trace_stack(struct trace_array * tr,unsigned int trace_ctx,int skip) __trace_stack() argument 899 trace_create_maxlat_file(struct trace_array * tr,struct dentry * d_tracer) trace_create_maxlat_file() argument 923 ftrace_init_trace_array(struct trace_array * tr) ftrace_init_trace_array() argument 1234 free_fgraph_ops(struct trace_array * tr) free_fgraph_ops() argument 1236 init_array_fgraph_ops(tr,ops) global() argument 1237 allocate_fgraph_ops(tr,ops) global() argument 1275 ftrace_create_function_files(struct trace_array * tr,struct dentry * parent) ftrace_create_function_files() argument 1280 ftrace_allocate_ftrace_ops(struct trace_array * tr) ftrace_allocate_ftrace_ops() argument 1284 ftrace_free_ftrace_ops(struct trace_array * tr) ftrace_free_ftrace_ops() argument 1285 ftrace_destroy_function_files(struct trace_array * tr) ftrace_destroy_function_files() argument 1287 ftrace_init_global_array_ops(struct trace_array * tr) ftrace_init_global_array_ops() argument 1288 ftrace_reset_array_ops(struct trace_array * tr) ftrace_reset_array_ops() argument 1289 ftrace_init_tracefs(struct trace_array * tr,struct dentry * d) ftrace_init_tracefs() argument 1290 ftrace_init_tracefs_toplevel(struct trace_array * tr,struct dentry * d) ftrace_init_tracefs_toplevel() argument 1291 ftrace_clear_pids(struct trace_array * tr) ftrace_clear_pids() argument 1293 ftrace_pid_follow_fork(struct trace_array * tr,bool enable) ftrace_pid_follow_fork() argument 1295 ftrace_init_array_ops(tr,func) global() argument 1362 clear_ftrace_function_probes(struct trace_array * tr) clear_ftrace_function_probes() argument 1366 ftrace_create_filter_files(struct trace_array * tr,struct dentry * parent) ftrace_create_filter_files() argument 1545 trace_branch_enable(struct trace_array * tr) trace_branch_enable() argument 1557 trace_branch_enable(struct trace_array * tr) trace_branch_enable() argument 1606 struct trace_array *tr; global() member 1618 trace_buffer_unlock_commit(struct trace_array * tr,struct trace_buffer * buffer,struct ring_buffer_event * event,unsigned int trace_ctx) trace_buffer_unlock_commit() argument 2329 trace_allocate_snapshot(struct trace_array * tr,int size) trace_allocate_snapshot() argument 2330 tracing_snapshot_instance(struct trace_array * tr) tracing_snapshot_instance() argument 2331 tracing_alloc_snapshot_instance(struct trace_array * tr) tracing_alloc_snapshot_instance() argument 2335 tracing_arm_snapshot_locked(struct trace_array * tr) tracing_arm_snapshot_locked() argument 2336 tracing_arm_snapshot(struct trace_array * tr) tracing_arm_snapshot() argument 2337 tracing_disarm_snapshot(struct trace_array * tr) tracing_disarm_snapshot() argument 2338 free_snapshot(struct trace_array * tr) free_snapshot() argument 2339 tracing_snapshot_cond(struct trace_array * tr,void * cond_data) tracing_snapshot_cond() argument 2343 tracing_cond_snapshot_data(struct trace_array * tr) tracing_cond_snapshot_data() argument 2347 tracing_snapshot_cond_enable(struct trace_array * tr,void * cond_data,cond_update_fn_t update) tracing_snapshot_cond_enable() argument 2351 tracing_snapshot_cond_disable(struct trace_array * tr) tracing_snapshot_cond_disable() argument 2360 get_snapshot_map(struct trace_array * tr) get_snapshot_map() argument 2361 put_snapshot_map(struct trace_array * tr) put_snapshot_map() argument 2431 ftrace_trace_stack(struct trace_array * tr,struct trace_buffer * buffer,unsigned int trace_ctx,int skip,struct pt_regs * regs) ftrace_trace_stack() argument 2442 __ftrace_trace_stack(struct trace_array * tr,struct trace_buffer * buffer,unsigned int trace_ctx,int skip,struct pt_regs * regs) __ftrace_trace_stack() argument 2448 ftrace_trace_stack(struct trace_array * tr,struct trace_buffer * buffer,unsigned long trace_ctx,int skip,struct pt_regs * regs) ftrace_trace_stack() argument [all...] |
| H A D | trace_events.c | 76 #define do_for_each_event_file(tr, file) \ 77 list_for_each_entry(tr, &ftrace_trace_arrays, list) { \ 78 list_for_each_entry(file, &tr->events, list) argument 80 #define do_for_each_event_file_safe(tr, file) \ 81 list_for_each_entry(tr, &ftrace_trace_arrays, list) { \ 83 list_for_each_entry_safe(file, ___n, &tr->events, list) 670 struct trace_array *tr = trace_file->tr; in trace_event_ignore_this_pid() 674 pid_list = rcu_dereference_raw(tr->filtered_pids); in trace_event_ignore_this_pid() 675 no_pid_list = rcu_dereference_raw(tr in trace_event_ignore_this_pid() 74 do_for_each_event_file(tr,file) global() argument 661 struct trace_array *tr = trace_file->tr; trace_event_ignore_this_pid() local 770 struct trace_array *tr; trace_event_enable_cmd_record() local 792 struct trace_array *tr; trace_event_enable_tgid_record() local 815 struct trace_array *tr = file->tr; __ftrace_event_enable_disable() local 956 clear_mod_events(struct trace_array * tr) clear_mod_events() argument 965 remove_cache_mod(struct trace_array * tr,const char * mod,const char * match,const char * system,const char * event) remove_cache_mod() argument 993 cache_mod(struct trace_array * tr,const char * mod,int set,const char * match,const char * system,const char * event) cache_mod() argument 1043 clear_mod_events(struct trace_array * tr) clear_mod_events() argument 1044 cache_mod(struct trace_array * tr,const char * mod,int set,const char * match,const char * system,const char * event) cache_mod() argument 1051 ftrace_clear_events(struct trace_array * tr) ftrace_clear_events() argument 1067 struct trace_array *tr = data; event_filter_pid_sched_process_exit() local 1083 struct trace_array *tr = data; event_filter_pid_sched_process_fork() local 1093 trace_event_follow_fork(struct trace_array * tr,bool enable) trace_event_follow_fork() argument 1114 struct trace_array *tr = data; event_filter_pid_sched_switch_probe_pre() local 1140 struct trace_array *tr = data; event_filter_pid_sched_switch_probe_post() local 1154 struct trace_array *tr = data; event_filter_pid_sched_wakeup_probe_pre() local 1172 struct trace_array *tr = data; event_filter_pid_sched_wakeup_probe_post() local 1188 unregister_pid_events(struct trace_array * tr) unregister_pid_events() argument 1203 __ftrace_clear_event_pids(struct trace_array * tr,int type) __ftrace_clear_event_pids() argument 1246 ftrace_clear_event_pids(struct trace_array * tr,int type) ftrace_clear_event_pids() argument 1352 __ftrace_set_clr_event_nolock(struct trace_array * tr,const char * match,const char * sub,const char * event,int set,const char * mod) __ftrace_set_clr_event_nolock() argument 1427 __ftrace_set_clr_event(struct trace_array * tr,const char * match,const char * sub,const char * event,int set,const char * mod) __ftrace_set_clr_event() argument 1443 ftrace_set_clr_event(struct trace_array * tr,char * buf,int set) ftrace_set_clr_event() argument 1512 struct trace_array *tr = top_trace_array(); trace_set_clr_event() local 1534 trace_array_set_clr_event(struct trace_array * tr,const char * system,const char * event,bool enable) trace_array_set_clr_event() argument 1556 struct trace_array *tr = m->private; ftrace_event_write() local 1595 struct trace_array *tr = m->private; t_next() local 1616 struct trace_array *tr = m->private; t_start() local 1648 struct trace_array *tr = m->private; s_next() local 1683 struct trace_array *tr = m->private; s_start() local 1838 struct trace_array *tr = m->private; __next() local 1865 struct trace_array *tr = m->private; __start() local 1979 trace_events_enabled(struct trace_array * tr,const char * system) trace_events_enabled() argument 2020 struct trace_array *tr = dir->tr; system_enable_read() local 2357 struct trace_array *tr = NULL, *iter_tr; subsystem_open() local 2406 struct trace_array *tr = inode->i_private; system_tr_open() local 2499 struct trace_array *tr = filp->private_data; show_header_page_file() local 2547 struct trace_array *tr = data; ignore_task_cpu() local 2564 register_pid_events(struct trace_array * tr) register_pid_events() argument 2598 struct trace_array *tr = m->private; event_pid_write() local 2865 struct trace_array *tr = inode->i_private; ftrace_event_release() local 2885 struct trace_array *tr = inode->i_private; ftrace_event_set_open() local 2913 struct trace_array *tr = inode->i_private; ftrace_event_show_filters_open() local 2937 struct trace_array *tr = inode->i_private; ftrace_event_show_triggers_open() local 2954 struct trace_array *tr = inode->i_private; ftrace_event_set_pid_open() local 2975 struct trace_array *tr = inode->i_private; ftrace_event_set_npid_open() local 3040 event_subsystem_dir(struct trace_array * tr,const char * name,struct trace_event_file * file,struct eventfs_inode * parent) event_subsystem_dir() argument 3254 struct trace_array *tr = file->tr; event_create_dir() local 3355 struct trace_array *tr; remove_event_from_tracers() local 3374 struct trace_array *tr; event_remove() local 3779 trace_create_new_event(struct trace_event_call * call,struct trace_array * tr) trace_create_new_event() argument 3858 __trace_add_new_event(struct trace_event_call * call,struct trace_array * tr) __trace_add_new_event() argument 3906 __trace_early_add_new_event(struct trace_event_call * call,struct trace_array * tr) __trace_early_add_new_event() argument 3965 struct trace_array *tr; probe_remove_event_call() local 4028 update_mod_cache(struct trace_array * tr,struct module * mod) update_mod_cache() argument 4045 struct trace_array *tr; update_cache_events() local 4138 __trace_add_event_dirs(struct trace_array * tr) __trace_add_event_dirs() argument 4155 __find_event_file(struct trace_array * tr,const char * system,const char * event) __find_event_file() argument 4178 find_event_file(struct trace_array * tr,const char * system,const char * event) find_event_file() argument 4214 struct trace_array *tr = top_trace_array(); trace_get_event_file() local 4284 event_enable_probe(unsigned long ip,unsigned long parent_ip,struct trace_array * tr,struct ftrace_probe_ops * ops,void * data) event_enable_probe() argument 4301 event_enable_count_probe(unsigned long ip,unsigned long parent_ip,struct trace_array * tr,struct ftrace_probe_ops * ops,void * data) event_enable_count_probe() argument 4358 event_enable_init(struct ftrace_probe_ops * ops,struct trace_array * tr,unsigned long ip,void * init_data,void ** data) event_enable_init() argument 4396 event_enable_free(struct ftrace_probe_ops * ops,struct trace_array * tr,unsigned long ip,void * data) event_enable_free() argument 4449 event_enable_func(struct trace_array * tr,struct ftrace_hash * hash,char * glob,char * cmd,char * param,int enabled) event_enable_func() argument 4579 __trace_early_add_event_dirs(struct trace_array * tr) __trace_early_add_event_dirs() argument 4599 __trace_early_add_events(struct trace_array * tr) __trace_early_add_events() argument 4619 __trace_remove_event_dirs(struct trace_array * tr) __trace_remove_event_dirs() argument 4629 struct trace_array *tr; __add_event_to_tracers() local 4685 create_event_toplevel_files(struct dentry * parent,struct trace_array * tr) create_event_toplevel_files() argument 4756 event_trace_add_tracer(struct dentry * parent,struct trace_array * tr) event_trace_add_tracer() argument 4783 early_event_add_tracer(struct dentry * parent,struct trace_array * tr) early_event_add_tracer() argument 4801 event_trace_del_tracer(struct trace_array * tr) event_trace_del_tracer() argument 4838 __early_set_events(struct trace_array * tr,char * buf,bool enable) __early_set_events() argument 4876 early_enable_events(struct trace_array * tr,char * buf,bool disable_first) early_enable_events() argument 4886 struct trace_array *tr = top_trace_array(); event_trace_enable() local 4934 struct trace_array *tr; event_trace_enable_again() local 4962 struct trace_array *tr; event_trace_init() local 5060 struct trace_array *tr; event_trace_self_tests() local [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_functions_graph.c | 109 static bool tracer_flags_is_set(struct trace_array *tr, u32 flags) in tracer_flags_is_set() 111 return (tr->current_trace_flags->val & flags) == flags; in tracer_flags_is_set() 126 print_graph_duration(struct trace_array *tr, unsigned long long duration, 129 static int __graph_entry(struct trace_array *tr, struct ftrace_graph_ent *trace, in __graph_entry() 133 struct trace_buffer *buffer = tr->array_buffer.buffer; in __graph_entry() 159 int __trace_graph_entry(struct trace_array *tr, in __trace_graph_entry() 163 return __graph_entry(tr, trace, trace_ctx, NULL); in __trace_graph_entry() 167 int __trace_graph_retaddr_entry(struct trace_array *tr, in __trace_graph_retaddr_entry() 174 struct trace_buffer *buffer = tr->array_buffer.buffer; in __trace_graph_retaddr_entry() 201 int __trace_graph_retaddr_entry(struct trace_array *tr, in __trace_graph_retaddr_entry() 108 tracer_flags_is_set(struct trace_array * tr,u32 flags) tracer_flags_is_set() argument 128 __graph_entry(struct trace_array * tr,struct ftrace_graph_ent * trace,unsigned int trace_ctx,struct ftrace_regs * fregs) __graph_entry() argument 158 __trace_graph_entry(struct trace_array * tr,struct ftrace_graph_ent * trace,unsigned int trace_ctx) __trace_graph_entry() argument 166 __trace_graph_retaddr_entry(struct trace_array * tr,struct ftrace_graph_ent * trace,unsigned int trace_ctx,unsigned long retaddr,struct ftrace_regs * fregs) __trace_graph_retaddr_entry() argument 200 __trace_graph_retaddr_entry(struct trace_array * tr,struct ftrace_graph_ent * trace,unsigned int trace_ctx,unsigned long retaddr,struct ftrace_regs * fregs) __trace_graph_retaddr_entry() argument 210 ftrace_graph_ignore_irqs(struct trace_array * tr) ftrace_graph_ignore_irqs() argument 231 struct trace_array *tr = gops->private; graph_entry() local 310 __trace_graph_function(struct trace_array * tr,unsigned long ip,unsigned int trace_ctx) __trace_graph_function() argument 328 trace_graph_function(struct trace_array * tr,unsigned long ip,unsigned long parent_ip,unsigned int trace_ctx) trace_graph_function() argument 335 __trace_graph_return(struct trace_array * tr,struct ftrace_graph_ret * trace,unsigned int trace_ctx,u64 calltime,u64 rettime) __trace_graph_return() argument 355 handle_nosleeptime(struct trace_array * tr,struct ftrace_graph_ret * trace,struct fgraph_times * ftimes,int size) handle_nosleeptime() argument 373 struct trace_array *tr = gops->private; trace_graph_return() local 406 struct trace_array *tr; trace_graph_thresh_return() local 441 allocate_fgraph_ops(struct trace_array * tr,struct ftrace_ops * ops) allocate_fgraph_ops() argument 460 free_fgraph_ops(struct trace_array * tr) free_fgraph_ops() argument 465 init_array_fgraph_ops(struct trace_array * tr,struct ftrace_ops * ops) init_array_fgraph_ops() argument 472 graph_trace_init(struct trace_array * tr) graph_trace_init() argument 505 ftrace_graph_trace_args(struct trace_array * tr,int set) ftrace_graph_trace_args() argument 527 graph_trace_reset(struct trace_array * tr) graph_trace_reset() argument 543 graph_trace_update_thresh(struct trace_array * tr) graph_trace_update_thresh() argument 736 struct trace_array *tr = iter->tr; print_graph_irq() local 816 print_graph_duration(struct trace_array * tr,unsigned long long duration,struct trace_seq * s,u32 flags) print_graph_duration() argument 954 struct trace_array *tr = iter->tr; print_graph_entry_leaf() local 1027 struct trace_array *tr = iter->tr; print_graph_entry_nested() local 1087 struct trace_array *tr = iter->tr; print_graph_prologue() local 1296 struct trace_array *tr = iter->tr; print_graph_return() local 1375 struct trace_array *tr = iter->tr; print_graph_comment() local 1512 struct trace_array *tr = iter->tr; print_graph_function() local 1546 __print_graph_headers_flags(struct trace_array * tr,struct seq_file * s,u32 flags) __print_graph_headers_flags() argument 1590 struct trace_array *tr = iter->tr; print_graph_headers() local 1598 struct trace_array *tr = iter->tr; print_graph_headers_flags() local 1668 func_graph_set_flag(struct trace_array * tr,u32 old_flags,u32 bit,int set) func_graph_set_flag() argument [all...] |
| H A D | trace_boot.c | 26 trace_boot_set_instance_options(struct trace_array *tr, struct xbc_node *node) in trace_boot_set_instance_options() argument 40 if (trace_set_options(tr, buf) < 0) in trace_boot_set_instance_options() 49 tracer_tracing_on(tr); in trace_boot_set_instance_options() 51 tracer_tracing_off(tr); in trace_boot_set_instance_options() 56 if (tracing_set_clock(tr, p) < 0) in trace_boot_set_instance_options() 65 if (trace_array_is_readonly(tr) || in trace_boot_set_instance_options() 66 tracing_resize_ring_buffer(tr, v, RING_BUFFER_ALL_CPUS) < 0) in trace_boot_set_instance_options() 76 tracing_set_cpumask(tr, new_mask) < 0) in trace_boot_set_instance_options() 85 trace_boot_enable_events(struct trace_array *tr, struct xbc_node *node) in trace_boot_enable_events() argument 97 if (ftrace_set_clr_event(tr, bu in trace_boot_enable_events() 551 trace_boot_init_one_event(struct trace_array * tr,struct xbc_node * gnode,struct xbc_node * enode) trace_boot_init_one_event() argument 616 trace_boot_init_events(struct trace_array * tr,struct xbc_node * node) trace_boot_init_events() argument 652 trace_boot_enable_events(tr,node) global() argument 653 trace_boot_init_events(tr,node) global() argument 658 trace_boot_set_ftrace_filter(struct trace_array * tr,struct xbc_node * node) trace_boot_set_ftrace_filter() argument 686 trace_boot_set_ftrace_filter(tr,node) global() argument 690 trace_boot_enable_tracer(struct trace_array * tr,struct xbc_node * node) trace_boot_enable_tracer() argument 710 trace_boot_init_one_instance(struct trace_array * tr,struct xbc_node * node) trace_boot_init_one_instance() argument 722 struct trace_array *tr; trace_boot_init_instances() local 747 struct trace_array *tr; trace_boot_init() local [all...] |
| H A D | trace_mmiotrace.c | 28 static void mmio_reset_data(struct trace_array *tr) in mmio_reset_data() argument 34 tracing_reset_online_cpus(&tr->array_buffer); in mmio_reset_data() 37 static int mmio_trace_init(struct trace_array *tr) in mmio_trace_init() argument 40 mmio_trace_array = tr; in mmio_trace_init() 42 mmio_reset_data(tr); in mmio_trace_init() 47 static void mmio_trace_reset(struct trace_array *tr) in mmio_trace_reset() argument 52 mmio_reset_data(tr); in mmio_trace_reset() 56 static void mmio_trace_start(struct trace_array *tr) in mmio_trace_start() argument 59 mmio_reset_data(tr); in mmio_trace_start() 297 static void __trace_mmiotrace_rw(struct trace_array *tr, in __trace_mmiotrace_rw() argument [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_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 90 struct trace_array *tr; in osnoise_print() 95 tr = inst->tr; in osnoise_print() 97 trace_array_vprintk(tr, _RET_IP_, fmt, ap); in osnoise_print() 111 * osnoise_instance_registered - check if a tr is already registered 113 static int osnoise_instance_registered(struct trace_array *tr) in osnoise_instance_registered() 120 if (inst->tr == tr) in osnoise_instance_registered() 131 * Register a trace_array *tr i 89 struct trace_array *tr; osnoise_print() local 112 osnoise_instance_registered(struct trace_array * tr) osnoise_instance_registered() argument 133 osnoise_register_instance(struct trace_array * tr) osnoise_register_instance() argument 161 osnoise_unregister_instance(struct trace_array * tr) osnoise_unregister_instance() argument 1198 struct trace_array *tr; osnoise_stop_exception() local 1371 struct trace_array *tr; osnoise_stop_tracing() local 1409 struct trace_array *tr; notify_new_max_latency() local 3012 osnoise_tracer_start(struct trace_array * tr) osnoise_tracer_start() argument 3030 osnoise_tracer_stop(struct trace_array * tr) osnoise_tracer_stop() argument 3036 osnoise_tracer_init(struct trace_array * tr) osnoise_tracer_init() argument 3051 osnoise_tracer_reset(struct trace_array * tr) osnoise_tracer_reset() argument 3067 timerlat_tracer_start(struct trace_array * tr) timerlat_tracer_start() argument 3087 timerlat_tracer_stop(struct trace_array * tr) timerlat_tracer_stop() argument 3104 timerlat_tracer_init(struct trace_array * tr) timerlat_tracer_init() argument 3125 timerlat_tracer_reset(struct trace_array * tr) timerlat_tracer_reset() argument [all...] |
| /linux/kernel/bpf/ |
| H A D | trampoline.c | 47 static struct mutex *select_trampoline_lock(struct bpf_trampoline *tr) in select_trampoline_lock() argument 49 return &trampoline_locks[hash_ptr(tr, TRAMPOLINE_LOCKS_BITS)].mutex; in select_trampoline_lock() 52 static void trampoline_lock(struct bpf_trampoline *tr) in trampoline_lock() argument 54 mutex_lock(select_trampoline_lock(tr)); in trampoline_lock() 57 static void trampoline_unlock(struct bpf_trampoline *tr) in trampoline_unlock() argument 59 mutex_unlock(select_trampoline_lock(tr)); in trampoline_unlock() 63 int (*register_fentry)(struct bpf_trampoline *tr, struct bpf_tramp_image *im, void *data); 64 int (*unregister_fentry)(struct bpf_trampoline *tr, u32 orig_flags, void *data); 65 int (*modify_fentry)(struct bpf_trampoline *tr, u32 orig_flags, struct bpf_tramp_image *im, 70 static int bpf_trampoline_update(struct bpf_trampoline *tr, boo 78 struct bpf_trampoline *tr; direct_ops_ip_lookup() local 101 struct bpf_trampoline *tr; bpf_tramp_ftrace_ops_func() local 229 direct_ops_alloc(struct bpf_trampoline * tr) direct_ops_alloc() argument 235 direct_ops_free(struct bpf_trampoline * tr) direct_ops_free() argument 237 hash_from_ip(struct bpf_trampoline * tr,void * ptr) hash_from_ip() argument 257 direct_ops_add(struct bpf_trampoline * tr,void * addr) direct_ops_add() argument 269 direct_ops_del(struct bpf_trampoline * tr,void * addr) direct_ops_del() argument 281 direct_ops_mod(struct bpf_trampoline * tr,void * addr,bool lock_direct_mutex) direct_ops_mod() argument 299 direct_ops_alloc(struct bpf_trampoline * tr) direct_ops_alloc() argument 309 direct_ops_free(struct bpf_trampoline * tr) direct_ops_free() argument 317 direct_ops_add(struct bpf_trampoline * tr,void * ptr) direct_ops_add() argument 332 direct_ops_del(struct bpf_trampoline * tr,void * addr) direct_ops_del() argument 337 direct_ops_mod(struct bpf_trampoline * tr,void * ptr,bool lock_direct_mutex) direct_ops_mod() argument 350 direct_ops_free(struct bpf_trampoline * tr) direct_ops_free() argument 352 direct_ops_alloc(struct bpf_trampoline * tr) direct_ops_alloc() argument 357 direct_ops_add(struct bpf_trampoline * tr,void * addr) direct_ops_add() argument 362 direct_ops_del(struct bpf_trampoline * tr,void * addr) direct_ops_del() argument 367 direct_ops_mod(struct bpf_trampoline * tr,void * ptr,bool lock_direct_mutex) direct_ops_mod() argument 375 struct bpf_trampoline *tr; bpf_trampoline_lookup() local 412 bpf_trampoline_update_fentry(struct bpf_trampoline * tr,u32 orig_flags,void * old_addr,void * new_addr) bpf_trampoline_update_fentry() argument 433 unregister_fentry(struct bpf_trampoline * tr,u32 orig_flags,void * data __maybe_unused) unregister_fentry() argument 451 modify_fentry(struct bpf_trampoline * tr,u32 orig_flags,struct bpf_tramp_image * im,bool lock_direct_mutex,void * data __maybe_unused) modify_fentry() argument 474 register_fentry(struct bpf_trampoline * tr,struct bpf_tramp_image * im,void * data __maybe_unused) register_fentry() argument 509 bpf_trampoline_get_progs(const struct bpf_trampoline * tr,int * total,bool * ip_arg) bpf_trampoline_get_progs() argument 576 struct bpf_trampoline *tr; __bpf_tramp_image_put_deferred() local 712 bpf_trampoline_set_flags(struct bpf_trampoline * tr,u32 flags) bpf_trampoline_set_flags() argument 719 bpf_trampoline_update(struct bpf_trampoline * tr,bool lock_direct_mutex,const struct bpf_trampoline_ops * ops,void * data) bpf_trampoline_update() argument 898 bpf_trampoline_add_prog(struct bpf_trampoline * tr,struct bpf_tramp_node * node,int cnt) bpf_trampoline_add_prog() argument 956 bpf_trampoline_skip_prog(struct bpf_trampoline * tr,struct bpf_prog * prog) bpf_trampoline_skip_prog() argument 975 bpf_trampoline_remove_prog(struct bpf_trampoline * tr,struct bpf_tramp_node * node) bpf_trampoline_remove_prog() argument 996 __bpf_trampoline_link_prog(struct bpf_tramp_node * node,struct bpf_trampoline * tr,struct bpf_prog * tgt_prog,const struct bpf_trampoline_ops * ops,void * data) __bpf_trampoline_link_prog() argument 1044 bpf_trampoline_link_prog(struct bpf_tramp_node * node,struct bpf_trampoline * tr,struct bpf_prog * tgt_prog) bpf_trampoline_link_prog() argument 1056 __bpf_trampoline_unlink_prog(struct bpf_tramp_node * node,struct bpf_trampoline * tr,struct bpf_prog * tgt_prog,const struct bpf_trampoline_ops * ops,void * data) __bpf_trampoline_unlink_prog() argument 1081 bpf_trampoline_unlink_prog(struct bpf_tramp_node * node,struct bpf_trampoline * tr,struct bpf_prog * tgt_prog) bpf_trampoline_unlink_prog() argument 1158 cgroup_shim_find(struct bpf_trampoline * tr,bpf_func_t bpf_func) cgroup_shim_find() argument 1182 struct bpf_trampoline *tr; bpf_trampoline_link_cgroup_shim() local 1244 struct bpf_trampoline *tr; bpf_trampoline_unlink_cgroup_shim() local 1270 struct bpf_trampoline *tr; bpf_trampoline_get() local 1287 bpf_trampoline_put(struct bpf_trampoline * tr) bpf_trampoline_put() argument 1489 __bpf_tramp_enter(struct bpf_tramp_image * tr) __bpf_tramp_enter() argument 1494 __bpf_tramp_exit(struct bpf_tramp_image * tr) __bpf_tramp_exit() argument 1628 register_fentry_multi(struct bpf_trampoline * tr,struct bpf_tramp_image * im,void * ptr) register_fentry_multi() argument 1643 unregister_fentry_multi(struct bpf_trampoline * tr,u32 orig_flags,void * ptr) unregister_fentry_multi() argument 1657 modify_fentry_multi(struct bpf_trampoline * tr,u32 orig_flags,struct bpf_tramp_image * im,bool lock_direct_mutex,void * ptr) modify_fentry_multi() argument 1678 bpf_trampoline_multi_attach_init(struct bpf_trampoline * tr) bpf_trampoline_multi_attach_init() argument 1684 bpf_trampoline_multi_attach_free(struct bpf_trampoline * tr) bpf_trampoline_multi_attach_free() argument 1703 bpf_trampoline_multi_attach_rollback(struct bpf_trampoline * tr) bpf_trampoline_multi_attach_rollback() argument 1727 struct bpf_trampoline *tr; bpf_trampoline_multi_attach() local [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 | 46 static blk_status_t do_blktrans_request(struct mtd_blktrans_ops *tr, in do_blktrans_request() 55 block = blk_rq_pos(req) << 9 >> tr->blkshift; in do_blktrans_request() 56 nsect = blk_rq_cur_bytes(req) >> tr->blkshift; in do_blktrans_request() 60 if (tr->flush(dev)) in do_blktrans_request() 64 if (tr->discard(dev, block, nsect)) in do_blktrans_request() 69 for (; nsect > 0; nsect--, block++, buf += tr->blksize) { in do_blktrans_request() 70 if (tr->readsect(dev, block, buf)) { in do_blktrans_request() 81 if (!tr->writesect) in do_blktrans_request() 88 for (; nsect > 0; nsect--, block++, buf += tr->blksize) { in do_blktrans_request() 89 if (tr in do_blktrans_request() 45 do_blktrans_request(struct mtd_blktrans_ops * tr,struct mtd_blktrans_dev * dev,struct request * req) do_blktrans_request() argument 124 struct mtd_blktrans_ops *tr = dev->tr; mtd_blktrans_work() local 278 struct mtd_blktrans_ops *tr = new->tr; add_mtd_blktrans_dev() local 447 struct mtd_blktrans_ops *tr; blktrans_notify_remove() local 458 struct mtd_blktrans_ops *tr; blktrans_notify_add() local 472 register_mtd_blktrans(struct mtd_blktrans_ops * tr) register_mtd_blktrans() argument 506 deregister_mtd_blktrans(struct mtd_blktrans_ops * tr) deregister_mtd_blktrans() argument [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/gfs2/ |
| H A D | log.c | 88 * @tr: The transaction to start I/O on 94 struct gfs2_trans *tr, struct blk_plug *plug) in gfs2_ail1_start_one() argument 104 list_for_each_entry_safe_reverse(bd, s, &tr->tr_ail1_list, bd_ail_st_list) { in gfs2_ail1_start_one() 107 gfs2_assert(sdp, bd->bd_tr == tr); in gfs2_ail1_start_one() 112 &tr->tr_ail2_list); in gfs2_ail1_start_one() 128 list_move(&bd->bd_ail_st_list, &tr->tr_ail1_list); in gfs2_ail1_start_one() 157 struct gfs2_trans *tr; in dump_ail_list() local 161 list_for_each_entry_reverse(tr, &sdp->sd_ail1_list, tr_list) { in dump_ail_list() 162 list_for_each_entry_reverse(bd, &tr->tr_ail1_list, in dump_ail_list() 199 struct gfs2_trans *tr; in gfs2_ail1_flush() local 255 struct gfs2_trans *tr; gfs2_log_update_flush_tail() local 278 gfs2_ail_empty_tr(struct gfs2_sbd * sdp,struct gfs2_trans * tr,struct list_head * head) gfs2_ail_empty_tr() argument 300 gfs2_ail1_empty_one(struct gfs2_sbd * sdp,struct gfs2_trans * tr,int * max_revokes) gfs2_ail1_empty_one() argument 354 struct gfs2_trans *tr, *s; gfs2_ail1_empty() local 374 struct gfs2_trans *tr; gfs2_ail1_wait() local 394 __ail2_empty(struct gfs2_sbd * sdp,struct gfs2_trans * tr) __ail2_empty() argument 407 struct gfs2_trans *tr, *safe; ail2_empty() local 559 gfs2_log_try_reserve(struct gfs2_sbd * sdp,struct gfs2_trans * tr,unsigned int * extra_revokes) gfs2_log_try_reserve() argument 590 gfs2_log_reserve(struct gfs2_sbd * sdp,struct gfs2_trans * tr,unsigned int * extra_revokes) gfs2_log_reserve() argument 655 struct gfs2_trans *tr = sdp->sd_log_tr; calc_reserved() local 933 struct gfs2_trans *tr; gfs2_ail_drain() local 1013 gfs2_trans_drain(struct gfs2_sbd * sdp,struct gfs2_trans * tr) gfs2_trans_drain() argument 1026 struct gfs2_trans *tr = current->journal_info; gfs2_remove_from_journal() local 1072 struct gfs2_trans *tr = NULL; __gfs2_log_flush() local 1248 log_refund(struct gfs2_sbd * sdp,struct gfs2_trans * tr) log_refund() argument 1305 gfs2_log_commit(struct gfs2_sbd * sdp,struct gfs2_trans * tr) gfs2_log_commit() argument [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/fs/xfs/ |
| H A D | xfs_discard.c | 461 struct xfs_trim_rtdev *tr) 465 list_for_each_entry_safe(busyp, n, &tr->extent_list, list) { 479 struct xfs_trim_rtdev *tr) in xfs_discard_rtdev_extents() 489 list_for_each_entry(busyp, &tr->extent_list, list) { in xfs_discard_rtdev_extents() 501 xfs_discard_free_rtdev_extents(tr); in xfs_discard_rtdev_extents() 527 struct xfs_trim_rtdev *tr = priv; in xfs_trim_gather_rtextent() 531 if (rec->ar_startext > tr->stop_rtx) { in xfs_trim_gather_rtextent() 537 tr->restart_rtx = rec->ar_startext; in xfs_trim_gather_rtextent() 545 if (rlen < tr->minlen_fsb) { in xfs_trim_gather_rtextent() 557 list_add_tail(&busyp->list, &tr in xfs_trim_rtextents() 451 xfs_discard_free_rtdev_extents(struct xfs_trim_rtdev * tr) xfs_discard_free_rtdev_extents() argument 469 xfs_discard_rtdev_extents(struct xfs_mount * mp,struct xfs_trim_rtdev * tr) xfs_discard_rtdev_extents() argument 517 struct xfs_trim_rtdev *tr = priv; xfs_trim_gather_rtextent() local 562 struct xfs_trim_rtdev tr = { xfs_trim_rtextents() local 630 struct xfs_trim_rtgroup *tr = priv; xfs_trim_gather_rtgroup_extent() local 679 struct xfs_trim_rtgroup tr = { xfs_trim_rtgroup_extents() local [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() 747 zcrypt_rsa_crt(struct ap_perms * perms,struct zcrypt_track * tr,struct ica_rsa_modexpo_crt * crt) zcrypt_rsa_crt() argument 853 _zcrypt_send_cprb(u32 xflags,struct ap_perms * perms,struct zcrypt_track * tr,struct ica_xcRB * xcrb) _zcrypt_send_cprb() argument 992 struct zcrypt_track tr; zcrypt_send_cprb() local 1043 _zcrypt_send_ep11_cprb(u32 xflags,struct ap_perms * perms,struct zcrypt_track * tr,struct ep11_urb * xcrb) _zcrypt_send_ep11_cprb() argument 1203 struct zcrypt_track tr; zcrypt_send_ep11_cprb() local 1498 struct zcrypt_track tr; icarsamodexpo_ioctl() local 1527 struct zcrypt_track tr; icarsacrt_ioctl() local 1557 struct zcrypt_track tr; zsecsendcprb_ioctl() local 1588 struct zcrypt_track tr; zsendep11cprb_ioctl() local [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 rdmsrq(tr->b->address, val.q); in threshold_restart_block() 447 if (val.h & MASK_OVERFLOW_HI || tr->set_lvt_off) { in threshold_restart_block() 449 val.h |= 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, val.l, val.h)) { in threshold_restart_block() [all …]
|