/openbmc/linux/tools/perf/ |
H A D | builtin-trace.c | 128 struct trace { struct 1436 struct trace *trace) in thread__fd_path() argument 1440 if (ttrace == NULL || trace->fd_path_disabled) in thread__fd_path() 1447 if (!trace->live) in thread__fd_path() 1449 ++trace->stats.proc_getname; in thread__fd_path() 1461 const char *path = thread__fd_path(arg->thread, fd, arg->trace); in syscall_arg__scnprintf_fd() 1469 size_t pid__scnprintf_fd(struct trace *trace, pid_t pid, int fd, char *bf, size_t size) in pid__scnprintf_fd() argument 1472 struct thread *thread = machine__find_thread(trace->host, pid, pid); in pid__scnprintf_fd() 1475 const char *path = thread__fd_path(thread, fd, trace); in pid__scnprintf_fd() 1532 if (!arg->trace->vfs_getname) in syscall_arg__scnprintf_filename() [all …]
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-kernel/trace-cmd/files/ |
H A D | 0002-Drop-using-_LARGEFILE64_SOURCE.patch | 8 Upstream-Status: Submitted [https://lore.kernel.org/linux-trace-devel/20230109225315.1284538-2-raj.… 11 lib/trace-cmd/trace-input.c | 1 - 12 lib/trace-cmd/trace-output.c | 1 - 13 lib/trace-cmd/trace-recorder.c | 1 - 14 tracecmd/trace-hist.c | 1 - 15 tracecmd/trace-listen.c | 1 - 16 tracecmd/trace-mem.c | 1 - 17 tracecmd/trace-profile.c | 1 - 18 tracecmd/trace-read.c | 1 - 19 tracecmd/trace-restore.c | 1 - [all …]
|
/openbmc/linux/tools/verification/rv/src/ |
H A D | trace.c | 48 struct trace_instance *trace = context; in collect_registered_events() local 49 struct trace_seq *s = trace->seq; in collect_registered_events() 65 void trace_instance_destroy(struct trace_instance *trace) in trace_instance_destroy() argument 67 if (trace->inst) { in trace_instance_destroy() 68 destroy_instance(trace->inst); in trace_instance_destroy() 69 trace->inst = NULL; in trace_instance_destroy() 72 if (trace->seq) { in trace_instance_destroy() 73 free(trace->seq); in trace_instance_destroy() 74 trace->seq = NULL; in trace_instance_destroy() 77 if (trace->tep) { in trace_instance_destroy() [all …]
|
/openbmc/linux/arch/openrisc/kernel/ |
H A D | stacktrace.c | 28 struct stack_trace *trace = data; in save_stack_address() local 33 if (trace->skip > 0) { in save_stack_address() 34 trace->skip--; in save_stack_address() 38 if (trace->nr_entries < trace->max_entries) in save_stack_address() 39 trace->entries[trace->nr_entries++] = addr; in save_stack_address() 42 void save_stack_trace(struct stack_trace *trace) in save_stack_trace() argument 44 unwind_stack(trace, (unsigned long *) &trace, save_stack_address); in save_stack_trace() 51 struct stack_trace *trace = (struct stack_trace *)data; in save_stack_address_nosched() local 59 if (trace->skip > 0) { in save_stack_address_nosched() 60 trace->skip--; in save_stack_address_nosched() [all …]
|
/openbmc/linux/arch/mips/kernel/ |
H A D | stacktrace.c | 17 static void save_raw_context_stack(struct stack_trace *trace, in save_raw_context_stack() argument 27 if (trace->skip > 0) in save_raw_context_stack() 28 trace->skip--; in save_raw_context_stack() 30 trace->entries[trace->nr_entries++] = addr; in save_raw_context_stack() 31 if (trace->nr_entries >= trace->max_entries) in save_raw_context_stack() 37 static void save_context_stack(struct stack_trace *trace, in save_context_stack() argument 50 save_raw_context_stack(trace, sp, savesched); in save_context_stack() 55 if (trace->skip > 0) in save_context_stack() 56 trace->skip--; in save_context_stack() 58 trace->entries[trace->nr_entries++] = pc; in save_context_stack() [all …]
|
/openbmc/linux/Documentation/networking/device_drivers/ethernet/mellanox/mlx5/ |
H A D | tracepoints.rst | 11 kernel tracepoints interfaces (refer to Documentation/trace/ftrace.rst). 17 - mlx5e_configure_flower: trace flower filter actions and cookies offloaded to mlx5:: 20 $ cat /sys/kernel/tracing/trace 24 - mlx5e_delete_flower: trace flower filter actions and cookies deleted from mlx5:: 27 $ cat /sys/kernel/tracing/trace 31 - mlx5e_stats_flower: trace flower stats request:: 34 $ cat /sys/kernel/tracing/trace 38 - mlx5e_tc_update_neigh_used_value: trace tunnel rule neigh update value offloaded to mlx5:: 41 $ cat /sys/kernel/tracing/trace 45 - mlx5e_rep_neigh_update: trace neigh update tasks scheduled due to neigh state change events:: [all …]
|
/openbmc/linux/arch/sh/kernel/ |
H A D | stacktrace.c | 23 struct stack_trace *trace = data; in save_stack_address() local 28 if (trace->skip > 0) { in save_stack_address() 29 trace->skip--; in save_stack_address() 33 if (trace->nr_entries < trace->max_entries) in save_stack_address() 34 trace->entries[trace->nr_entries++] = addr; in save_stack_address() 41 void save_stack_trace(struct stack_trace *trace) in save_stack_trace() argument 45 unwind_stack(current, NULL, sp, &save_stack_ops, trace); in save_stack_trace() 52 struct stack_trace *trace = (struct stack_trace *)data; in save_stack_address_nosched() local 60 if (trace->skip > 0) { in save_stack_address_nosched() 61 trace->skip--; in save_stack_address_nosched() [all …]
|
/openbmc/qemu/docs/devel/ |
H A D | tracing.rst | 19 $ qemu --trace "memory_region_ops_*" ... 24 This output comes from the "log" trace backend that is enabled by default when 25 ``./configure --enable-trace-backends=BACKENDS`` was not explicitly specified. 27 Multiple patterns can be specified by repeating the ``--trace`` option:: 29 $ qemu --trace "kvm_*" --trace "virtio_*" ... 36 $ qemu --trace events=/tmp/events ... 44 Each directory in the source tree can declare a set of trace events in a local 45 "trace-events" file. All directories which contain "trace-events" files must be 47 file. During build, the "trace-events" file in each listed subdirectory will be 48 processed by the "tracetool" script to generate code for the trace events. [all …]
|
/openbmc/linux/tools/virtio/virtio-trace/ |
H A D | README | 1 Trace Agent for virtio-trace 4 Trace agent is a user tool for sending trace data of a guest to a Host in low 8 - write trace data to stdout by using -o option 11 The trace agent operates as follows: 16 4) After the controller of the trace agent receives a start order from a host, 18 5) The read/write threads start to read trace data from ring-buffers and 21 stop to read trace data. 28 Makefile: Makefile of trace agent for virtio-trace 29 trace-agent.c: includes main function, sets up for operating trace agent 30 trace-agent.h: includes all structures and some macros [all …]
|
/openbmc/linux/tools/testing/selftests/ftrace/test.d/kprobe/ |
H A D | kprobe_ftrace.tc | 13 echo > trace 15 grep testprobe trace 16 ! grep "$FUNCTION_FORK <-" trace 20 echo > trace 22 grep testprobe trace 23 grep "$FUNCTION_FORK <-" trace 27 echo > trace 29 ! grep testprobe trace 30 grep "$FUNCTION_FORK <-" trace 35 echo > trace [all …]
|
/openbmc/hiomapd/ |
H A D | protocol.c | 176 struct blk_io_trace *trace = &context->trace; in blktrace_flush_start() local 187 trace->magic = BLK_IO_TRACE_MAGIC | BLK_IO_TRACE_VERSION; in blktrace_flush_start() 188 trace->sequence++; in blktrace_flush_start() 189 trace->time = blktrace_gettime() - context->blktrace_start; in blktrace_flush_start() 190 trace->sector = context->current->flash_offset / 512; in blktrace_flush_start() 191 trace->bytes = context->current->size; in blktrace_flush_start() 193 trace->action = BLK_TA_QUEUE | BLK_TC_ACT(BLK_TC_WRITE); in blktrace_flush_start() 195 trace->action = BLK_TA_QUEUE | BLK_TC_ACT(BLK_TC_READ); in blktrace_flush_start() 196 trace->pid = 0; in blktrace_flush_start() 197 trace->device = 0; in blktrace_flush_start() [all …]
|
/openbmc/linux/arch/sparc/kernel/ |
H A D | stacktrace.c | 14 struct stack_trace *trace, in __save_stack_trace() argument 55 if (trace->skip > 0) in __save_stack_trace() 56 trace->skip--; in __save_stack_trace() 58 trace->entries[trace->nr_entries++] = pc; in __save_stack_trace() 66 if (trace->nr_entries < in __save_stack_trace() 67 trace->max_entries) in __save_stack_trace() 68 trace->entries[trace->nr_entries++] = pc; in __save_stack_trace() 74 } while (trace->nr_entries < trace->max_entries); in __save_stack_trace() 77 void save_stack_trace(struct stack_trace *trace) in save_stack_trace() argument 79 __save_stack_trace(current_thread_info(), trace, false); in save_stack_trace() [all …]
|
/openbmc/linux/tools/tracing/rtla/src/ |
H A D | timerlat_hist.c | 216 struct trace_instance *trace = data; in timerlat_hist_handler() local 221 tool = container_of(trace, struct osnoise_tool, trace); in timerlat_hist_handler() 238 struct trace_seq *s = tool->trace.seq; in timerlat_hist_header() 284 struct trace_instance *trace, in timerlat_print_summary() argument 293 trace_seq_printf(trace->seq, "count:"); in timerlat_print_summary() 303 trace_seq_printf(trace->seq, "%9llu ", in timerlat_print_summary() 307 trace_seq_printf(trace->seq, "%9llu ", in timerlat_print_summary() 311 trace_seq_printf(trace->seq, "%9llu ", in timerlat_print_summary() 314 trace_seq_printf(trace in timerlat_print_summary() 434 struct trace_instance *trace = &tool->trace; timerlat_print_stats() local 988 struct trace_instance *trace; timerlat_hist_main() local [all...] |
H A D | osnoise_hist.c | 161 tracefs_hist_pause(tool->trace.inst, data->trace_hist); in osnoise_destroy_trace_hist() 162 tracefs_hist_destroy(tool->trace.inst, data->trace_hist); in osnoise_destroy_trace_hist() 182 data->trace_hist = tracefs_hist_alloc(tool->trace.tep, "osnoise", "sample_threshold", in osnoise_init_trace_hist() 191 retval = tracefs_hist_start(tool->trace.inst, data->trace_hist); in osnoise_init_trace_hist() 211 tracefs_hist_pause(tool->trace.inst, data->trace_hist); in osnoise_read_trace_hist() 213 content = tracefs_event_file_read(tool->trace.inst, "osnoise", in osnoise_read_trace_hist() 257 struct trace_seq *s = tool->trace.seq; in osnoise_hist_header() 295 struct trace_instance *trace, in osnoise_print_summary() argument 304 trace_seq_printf(trace->seq, "count:"); in osnoise_print_summary() 313 trace_seq_printf(trace->seq, "%9d ", data->hist[cpu].count); in osnoise_print_summary() [all …]
|
H A D | trace.c | 118 struct trace_instance *trace = context; in collect_registered_events() local 119 struct trace_seq *s = trace->seq; in collect_registered_events() 132 void trace_instance_destroy(struct trace_instance *trace) in trace_instance_destroy() argument 134 if (trace->inst) { in trace_instance_destroy() 135 disable_tracer(trace->inst); in trace_instance_destroy() 136 destroy_instance(trace->inst); in trace_instance_destroy() 137 trace->inst = NULL; in trace_instance_destroy() 140 if (trace->seq) { in trace_instance_destroy() 141 free(trace->seq); in trace_instance_destroy() 142 trace->seq = NULL; in trace_instance_destroy() [all …]
|
/openbmc/linux/tools/testing/selftests/ftrace/test.d/event/ |
H A D | trace_printk.tc | 5 rmmod trace-printk ||: 6 if ! modprobe trace-printk ; then 14 grep -q ": This .* trace_bputs" trace 15 grep -q ": This .* trace_puts" trace 16 grep -q ": This .* trace_bprintk" trace 17 grep -q ": This .* trace_printk" trace 19 grep -q ": (irq) .* trace_bputs" trace 20 grep -q ": (irq) .* trace_puts" trace 21 grep -q ": (irq) .* trace_bprintk" trace 22 grep -q ": (irq) .* trace_printk" trace [all …]
|
/openbmc/openpower-hw-diags/attn/ |
H A D | attn_handler.cpp | 87 trace::inf("Attention handler started"); in attnHandler() 104 trace::inf("pib path or target not found"); in attnHandler() 118 trace::inf("fsi path or target not found"); in attnHandler() 123 trace::inf("proc: %u", proc); in attnHandler() 131 trace::err("cfam read 0x1007 FAILED"); in attnHandler() 137 trace::err("cfam read 0x1007 INVALID"); in attnHandler() 143 trace::inf("cfam 0x1007 = 0x%08x", isr_val); in attnHandler() 151 trace::err("cfam read 0x100d FAILED"); in attnHandler() 157 trace::err("cfam read 0x100d INVALID"); in attnHandler() 163 trace::inf("cfam 0x100d = 0x%08x", isr_mask); in attnHandler() [all …]
|
H A D | attn_common.cpp | 39 trace::err("cfam read error: 0x%08x", l_cfamAddr); in addHbStatusRegs() 46 trace::err("scom read error: 0x%016" PRIx64 "", l_scomAddr1); in addHbStatusRegs() 52 trace::err("scom read error: 0x%016" PRIx64 "", l_scomAddr2); in addHbStatusRegs() 60 trace::inf("HostBoot Reg:%08x Data:%08x Proc:00000000", l_cfamAddr, in addHbStatusRegs() 62 trace::inf("HostBoot Reg:%08" PRIx64 " Data:%016" PRIx64 in addHbStatusRegs() 65 trace::inf("HostBoot Reg:%08" PRIx64 " Data:%016" PRIx64 in addHbStatusRegs() 82 trace::err("error getting scratch register target"); in addPrdScratchRegs() 92 trace::err("error reading scratch register 9"); in addPrdScratchRegs() 99 trace::err("error reading scratch register 10"); in addPrdScratchRegs() 107 trace::inf("PRD scratch Proc0, Chip ID: %08x, Signature ID: %08x", in addPrdScratchRegs() [all …]
|
/openbmc/qemu/scripts/oss-fuzz/ |
H A D | reorder_fuzzer_qtest_trace.py | 81 trace = f.readlines() 84 trace[:] = [x.strip() for x in trace if "[R +" in x 87 for i in range(len(trace)): 88 if i+1 < len(trace): 89 if "[DMA]" in trace[i+1]: 90 if "[DOUBLE-FETCH]" in trace[i+1]: 95 trace[i], trace[i+1] = trace[i+1], trace[i] 96 for line in trace:
|
/openbmc/openpower-hw-diags/analyzer/ |
H A D | analyzer_main.cpp | 67 trace::err("Unsupported attention type: %u", i_type); in __attn() 90 trace::err("Unsupported analysis type: %u", i_type); in __analysisType() 104 trace::err("Hardware error analysis is not supported on this system"); in analyzeHardware() 108 trace::inf(">>> enter analyzeHardware(%s)", __analysisType(i_type)); in analyzeHardware() 111 trace::inf("Initializing the isolator..."); in analyzeHardware() 116 trace::inf("Isolating errors: # of chips=%u", chips.size()); in analyzeHardware() 123 trace::inf("Signature: %s 0x%0" PRIx32 " %s", in analyzeHardware() 138 trace::err("Exception caught during root cause filtering"); in analyzeHardware() 139 trace::err(e.what()); in analyzeHardware() 149 trace::inf("Root cause attention: %s 0x%0" PRIx32 " %s", in analyzeHardware() [all …]
|
/openbmc/phosphor-misc/http-redirect/ |
H A D | http-redirect.awk | 46 trace("extend header >"header"< with content >"$0"<") 74 trace("found header >"header"< with content >"headers[header]"<") 82 trace("end of request headers") 95 trace("Unparsed header line : >" $0 "<") 110 trace("version >"version"<") 111 trace("uri >"request_uri"<") 112 trace("method >"method"<") 124 trace(dump_split_url(split_uri)) 137 trace("initial host is >" host "<") 144 trace("prioritized host is >" host "<") [all …]
|
/openbmc/linux/arch/arc/kernel/ |
H A D | stacktrace.c | 188 struct stack_trace *trace = arg; in __collect_all() local 190 if (trace->skip > 0) in __collect_all() 191 trace->skip--; in __collect_all() 193 trace->entries[trace->nr_entries++] = address; in __collect_all() 195 if (trace->nr_entries >= trace->max_entries) in __collect_all() 203 struct stack_trace *trace = arg; in __collect_all_but_sched() local 208 if (trace->skip > 0) in __collect_all_but_sched() 209 trace->skip--; in __collect_all_but_sched() 211 trace->entries[trace->nr_entries++] = address; in __collect_all_but_sched() 213 if (trace->nr_entries >= trace->max_entries) in __collect_all_but_sched() [all …]
|
/openbmc/linux/arch/x86/mm/ |
H A D | mmio-mod.c | 135 struct remap_trace *trace = p->private; in pre() local 147 my_trace->phys = addr - trace->probe.addr + trace->phys; in pre() 148 my_trace->map_id = trace->id; in pre() 223 struct remap_trace *trace = kmalloc(sizeof(*trace), GFP_KERNEL); in ioremap_trace_core() local 232 if (!trace) { in ioremap_trace_core() 237 *trace = (struct remap_trace) { in ioremap_trace_core() 243 .private = trace in ioremap_trace_core() 248 map.map_id = trace->id; in ioremap_trace_core() 252 kfree(trace); in ioremap_trace_core() 257 list_add_tail(&trace->list, &trace_list); in ioremap_trace_core() [all …]
|
/openbmc/qemu/trace/ |
H A D | meson.build | 1 system_ss.add(files('trace-hmp-cmds.c')) 11 trace_events_file = meson.project_source_root() / item / 'trace-events' 18 trace_h = custom_target(fmt.format('trace', 'h'), 19 output: fmt.format('trace', 'h'), 24 trace_c = custom_target(fmt.format('trace', 'c'), 25 output: fmt.format('trace', 'c'), 30 trace_ust_h = custom_target(fmt.format('trace-ust', 'h'), 31 output: fmt.format('trace-ust', 'h'), 40 trace_dtrace = custom_target(fmt.format('trace-dtrace', 'dtrace'), 41 output: fmt.format('trace-dtrace', 'dtrace'), [all …]
|
/openbmc/linux/arch/microblaze/kernel/ |
H A D | unwind.c | 157 struct stack_trace *trace, 165 unsigned long fp, struct stack_trace *trace, in unwind_trap() argument 185 struct stack_trace *trace, in microblaze_unwind_inner() argument 216 if (!trace) in microblaze_unwind_inner() 218 unwind_trap(task, pc, fp, trace, loglvl); in microblaze_unwind_inner() 224 if (trace) { in microblaze_unwind_inner() 226 if (trace->skip > 0) in microblaze_unwind_inner() 227 trace->skip--; in microblaze_unwind_inner() 229 trace->entries[trace->nr_entries++] = pc; in microblaze_unwind_inner() 231 if (trace->nr_entries >= trace->max_entries) in microblaze_unwind_inner() [all …]
|