/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 ... 38 Trace 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 [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/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 5 overhead. Trace agent has the following functions: 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 [all …]
|
/openbmc/linux/tools/perf/ |
H A D | builtin-trace.c | 2 * builtin-trace.c 4 * Builtin 'trace' command: 6 * Display a continuously updated trace of any workload, CPU, specific PID, 12 * Initially based on the 'trace' prototype by Thomas Gleixner: 14 * http://lwn.net/Articles/415728/ ("Announcing a new utility: 'trace'") 57 #include "trace/beauty/beauty.h" 58 #include "trace-event.h" 128 struct trace { struct 293 * The evsel->priv as used by 'perf trace' 729 #include "trace/beauty/generated/fsconfig_arrays.c" [all …]
|
/openbmc/linux/tools/verification/rv/src/ |
H A D | trace.c | 3 * trace helpers. 16 #include <trace.h> 20 * create_instance - create a trace instance with *instance_name 28 * destroy_instance - remove a trace instance and free the data 42 * Returns 0 if the event was collected, 1 if the tool should stop collecting trace. 48 struct trace_instance *trace = context; in collect_registered_events() local 49 struct trace_seq *s = trace->seq; in collect_registered_events() 63 * trace_instance_destroy - destroy and free a rv trace instance 65 void trace_instance_destroy(struct trace_instance *trace) in trace_instance_destroy() argument 67 if (trace->inst) { in trace_instance_destroy() [all …]
|
/openbmc/u-boot/doc/ |
H A D | README.trace | 16 The trace feature uses GCC's instrument-functions feature to trace all 22 which extracts useful information from it. The resulting trace output 48 Run sandbox, wait for a bit of trace information to appear, and then capture 49 a trace: 57 trace: enabled 63 =>trace stats 71 =>trace stats 79 =>trace calls 0 e00000 91 =>host save host 0 trace 0 ${profoffset} 96 Then run proftool to convert the trace information to ftrace format. [all …]
|
/openbmc/linux/drivers/hwtracing/intel_th/ |
H A D | Kconfig | 3 tristate "Intel(R) Trace Hub controller" 6 Intel(R) Trace Hub (TH) is a set of hardware blocks (subdevices) that 7 produce, switch and output trace data from multiple hardware and 8 software sources over several types of trace output ports encoded 9 in System Trace Protocol (MIPI STPv2) and is intended to perform 16 Say Y here to enable Intel(R) Trace Hub controller support. 21 tristate "Intel(R) Trace Hub PCI controller" 24 Intel(R) Trace Hub may exist as a PCI device. This option enables 30 tristate "Intel(R) Trace Hub ACPI controller" 33 Intel(R) Trace Hub may exist as an ACPI device. This option enables [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/mips/kernel/ |
H A D | stacktrace.c | 3 * Stack trace management functions 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() [all …]
|
/openbmc/linux/kernel/ |
H A D | stacktrace.c | 5 * Stack trace management functions 19 * stack_trace_print - Print the entries in the stack trace 38 * stack_trace_snprint - Print the entries in the stack trace into a buffer 105 * stack_trace_save - Save a stack trace into a storage array 108 * @skipnr: Number of entries to skip at the start of the stack trace 110 * Return: Number of trace entries stored. 128 * stack_trace_save_tsk - Save a task stack trace into a storage array 132 * @skipnr: Number of entries to skip at the start of the stack trace 134 * Return: Number of trace entries stored. 156 * stack_trace_save_regs - Save a stack trace based on pt_regs into a storage array [all …]
|
/openbmc/linux/arch/openrisc/kernel/ |
H A D | stacktrace.c | 2 * Stack trace utility for OpenRISC 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() [all …]
|
/openbmc/linux/Documentation/trace/coresight/ |
H A D | coresight-etm4x-reference.rst | 23 :Trace Registers: {CONFIGR + others} 25 Bit select trace features. See ‘mode’ section below. Bits 26 in this will cause equivalent programming of trace config and 32 bitfield up to 32 bits setting trace features. 40 :Trace Registers: All 42 Reset all programming to trace nothing / no logic programmed. 50 :Trace Registers: PRGCTLR, All hardware regs. 53 and enables trace. 55 - = 0 : disable trace hardware. 63 :Trace Registers: None. [all …]
|
/openbmc/linux/Documentation/trace/ |
H A D | intel_th.rst | 4 Intel(R) Trace Hub (TH) 10 Intel(R) Trace Hub (TH) is a set of hardware blocks that produce, 11 switch and output trace data from multiple hardware and software 12 sources over several types of trace output ports encoded in System 13 Trace Protocol (MIPI STPv2) and is intended to perform full system 14 debugging. For more information on the hardware, see Intel(R) Trace 17 It consists of trace sources, trace destinations (outputs) and a 18 switch (Global Trace Hub, GTH). These devices are placed on a bus of 23 - Software Trace Hub (STH), trace source, which is a System Trace 25 - Memory Storage Unit (MSU), trace output, which allows storing [all …]
|
/openbmc/linux/arch/sh/kernel/ |
H A D | stacktrace.c | 5 * Stack trace management functions 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() [all …]
|
/openbmc/linux/drivers/hwtracing/coresight/ |
H A D | coresight-trace-id.h | 11 * Coresight trace ID allocation API 13 * With multi cpu systems, and more additional trace sources a scalable 14 * trace ID reservation system is required. 25 * Trace ID maps will be created and initialised to prevent architecturally 29 * different sets of cpus trace into different independent sinks. 50 * Trace ID map. 55 * @pend_rel_ids: CPU IDs that have been released by the trace source but not 64 /* Allocate and release IDs for a single default trace ID map */ 67 * Read and optionally allocate a CoreSight trace ID and associate with a CPU. 69 * Function will read the current trace ID for the associated CPU, [all …]
|
H A D | Kconfig | 14 and trace drivers to register themselves with. It's intended to build 17 trace source gets enabled. 27 responsible for transporting and collecting the trace data 28 respectively. Link and sinks are dynamically aggregated with a trace 29 entity at run time to form a complete trace path. 39 This enables support for the Trace Memory Controller driver. 41 trace router - ETR) or sink (embedded trace FIFO). The driver 54 lookup. CATU helps TMC ETR to use a large physically non-contiguous trace 66 This enables support for the Trace Port Interface Unit driver, 68 components and a trace for bridging the gap between the on-chip [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/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/tools/tracing/rtla/src/ |
H A D | trace.c | 10 #include "trace.h" 51 * create_instance - create a trace instance with *instance_name 59 * destroy_instance - remove a trace instance and free the data 68 * save_trace_to_file - save the trace output of the instance to the file 72 const char *file = "trace"; in save_trace_to_file() 80 err_msg("Failed to open trace file\n"); in save_trace_to_file() 118 struct trace_instance *trace = context; in collect_registered_events() local 119 struct trace_seq *s = trace->seq; in collect_registered_events() 130 * trace_instance_destroy - destroy and free a rtla trace instance 132 void trace_instance_destroy(struct trace_instance *trace) in trace_instance_destroy() argument [all …]
|
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->seq, "\n"); in timerlat_print_summary() 317 trace_seq_printf(trace->seq, "min: "); in timerlat_print_summary() [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 7 echo "No trace-printk sample module - please make CONFIG_SAMPLE_TRACE_PRINTK=m" 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 [all …]
|
/openbmc/u-boot/test/trace/ |
H A D | test-trace.sh | 14 echo "Run trace" 16 trace stats 18 trace pause 19 trace stats 21 trace stats 22 trace resume 24 trace pause 25 trace stats 38 # 4 sets of results (output of 'trace stats') 40 fail "trace output error" [all …]
|
/openbmc/linux/drivers/s390/scsi/ |
H A D | zfcp_dbf.h | 28 * struct zfcp_dbf_rec_trigger - trace record for triggered recovery action 42 * struct zfcp_dbf_rec_running - trace record for running recovery 58 * enum zfcp_dbf_rec_id - recovery trace record id 68 * struct zfcp_dbf_rec - trace record for error recovery actions 97 * enum zfcp_dbf_san_id - SAN trace record identifier 98 * @ZFCP_DBF_SAN_REQ: request trace record id 99 * @ZFCP_DBF_SAN_RES: response trace record id 108 /** struct zfcp_dbf_san - trace record for SAN requests and responses 126 * struct zfcp_dbf_hba_res - trace record for hba responses 146 * struct zfcp_dbf_hba_uss - trace record for unsolicited status [all …]
|
/openbmc/openbmc-tools/tracing/ |
H A D | README.md | 1 # trace chapter 5 The trace script automates the process of enabling named sets of tracepoints and 6 dumping the trace file over the SSH connection, then cleaning up after itself. 13 Usage: ./trace [USER@]HOST EVENTSET [EVENTSET...] 18 To stop the trace output and disable the tracepoints, hit `Return`. 23 $ ./trace root@my-bmc sched 34 + eval 'trace=\${EVENT_${elem}}' 35 ++ trace='${EVENT_sched}' 38 + for event in '$(eval echo ${trace})' 40 + for event in '$(eval echo ${trace})' [all …]
|
/openbmc/qemu/scripts/ |
H A D | simpletrace.py | 3 # Pretty-printer for simple trace backend binary trace files 21 # This is the binary format that the QEMU "simple" trace backend 23 # not guaranteed to be stable. Trace files must be parsed with the 24 # same trace-events-all file and the same simpletrace.py file that 41 '''Read a trace record header''' 56 """Deserialize a trace record from a file into a tuple (event_num, timestamp, pid, args).""" 62 """Read and verify trace file header""" 65 … raise ValueError(f'Not a valid trace file, header id {_header_event_id} != {header_event_id}') 67 raise ValueError(f'Not a valid trace file, header magic {_header_magic} != {header_magic}') 75 …"""Deserialize trace records from a file, yielding record tuples (event, event_num, timestamp, pid… [all …]
|