trace.h (6880c987e45172fdaca0b4c07b0990f5b3c74f70) | trace.h (bce29ac9ce0bb0b0b146b687ab978378c21e9078) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2 3#ifndef _LINUX_KERNEL_TRACE_H 4#define _LINUX_KERNEL_TRACE_H 5 6#include <linux/fs.h> 7#include <linux/atomic.h> 8#include <linux/sched.h> --- 30 unchanged lines hidden (view full) --- 39 TRACE_MMIO_MAP, 40 TRACE_BRANCH, 41 TRACE_GRAPH_RET, 42 TRACE_GRAPH_ENT, 43 TRACE_USER_STACK, 44 TRACE_BLK, 45 TRACE_BPUTS, 46 TRACE_HWLAT, | 1// SPDX-License-Identifier: GPL-2.0 2 3#ifndef _LINUX_KERNEL_TRACE_H 4#define _LINUX_KERNEL_TRACE_H 5 6#include <linux/fs.h> 7#include <linux/atomic.h> 8#include <linux/sched.h> --- 30 unchanged lines hidden (view full) --- 39 TRACE_MMIO_MAP, 40 TRACE_BRANCH, 41 TRACE_GRAPH_RET, 42 TRACE_GRAPH_ENT, 43 TRACE_USER_STACK, 44 TRACE_BLK, 45 TRACE_BPUTS, 46 TRACE_HWLAT, |
47 TRACE_OSNOISE, |
|
47 TRACE_RAW_DATA, 48 TRACE_FUNC_REPEATS, 49 50 __TRACE_LAST_TYPE, 51}; 52 53 54#undef __field --- 237 unchanged lines hidden (view full) --- 292 * The buffers for the max_buffer are set up the same as the array_buffer 293 * When a snapshot is taken, the buffer of the max_buffer is swapped 294 * with the buffer of the array_buffer and the buffers are reset for 295 * the array_buffer so the tracing can continue. 296 */ 297 struct array_buffer max_buffer; 298 bool allocated_snapshot; 299#endif | 48 TRACE_RAW_DATA, 49 TRACE_FUNC_REPEATS, 50 51 __TRACE_LAST_TYPE, 52}; 53 54 55#undef __field --- 237 unchanged lines hidden (view full) --- 293 * The buffers for the max_buffer are set up the same as the array_buffer 294 * When a snapshot is taken, the buffer of the max_buffer is swapped 295 * with the buffer of the array_buffer and the buffers are reset for 296 * the array_buffer so the tracing can continue. 297 */ 298 struct array_buffer max_buffer; 299 bool allocated_snapshot; 300#endif |
300#if defined(CONFIG_TRACER_MAX_TRACE) || defined(CONFIG_HWLAT_TRACER) | 301#if defined(CONFIG_TRACER_MAX_TRACE) || defined(CONFIG_HWLAT_TRACER) \ 302 || defined(CONFIG_OSNOISE_TRACER) |
301 unsigned long max_latency; 302#ifdef CONFIG_FSNOTIFY 303 struct dentry *d_max_latency; 304 struct work_struct fsnotify_work; 305 struct irq_work fsnotify_irqwork; 306#endif 307#endif 308 struct trace_pid_list __rcu *filtered_pids; --- 131 unchanged lines hidden (view full) --- 440 IF_ASSIGN(var, ent, struct ftrace_entry, TRACE_FN); \ 441 IF_ASSIGN(var, ent, struct ctx_switch_entry, 0); \ 442 IF_ASSIGN(var, ent, struct stack_entry, TRACE_STACK); \ 443 IF_ASSIGN(var, ent, struct userstack_entry, TRACE_USER_STACK);\ 444 IF_ASSIGN(var, ent, struct print_entry, TRACE_PRINT); \ 445 IF_ASSIGN(var, ent, struct bprint_entry, TRACE_BPRINT); \ 446 IF_ASSIGN(var, ent, struct bputs_entry, TRACE_BPUTS); \ 447 IF_ASSIGN(var, ent, struct hwlat_entry, TRACE_HWLAT); \ | 303 unsigned long max_latency; 304#ifdef CONFIG_FSNOTIFY 305 struct dentry *d_max_latency; 306 struct work_struct fsnotify_work; 307 struct irq_work fsnotify_irqwork; 308#endif 309#endif 310 struct trace_pid_list __rcu *filtered_pids; --- 131 unchanged lines hidden (view full) --- 442 IF_ASSIGN(var, ent, struct ftrace_entry, TRACE_FN); \ 443 IF_ASSIGN(var, ent, struct ctx_switch_entry, 0); \ 444 IF_ASSIGN(var, ent, struct stack_entry, TRACE_STACK); \ 445 IF_ASSIGN(var, ent, struct userstack_entry, TRACE_USER_STACK);\ 446 IF_ASSIGN(var, ent, struct print_entry, TRACE_PRINT); \ 447 IF_ASSIGN(var, ent, struct bprint_entry, TRACE_BPRINT); \ 448 IF_ASSIGN(var, ent, struct bputs_entry, TRACE_BPUTS); \ 449 IF_ASSIGN(var, ent, struct hwlat_entry, TRACE_HWLAT); \ |
450 IF_ASSIGN(var, ent, struct osnoise_entry, TRACE_OSNOISE);\ |
|
448 IF_ASSIGN(var, ent, struct raw_data_entry, TRACE_RAW_DATA);\ 449 IF_ASSIGN(var, ent, struct trace_mmiotrace_rw, \ 450 TRACE_MMIO_RW); \ 451 IF_ASSIGN(var, ent, struct trace_mmiotrace_map, \ 452 TRACE_MMIO_MAP); \ 453 IF_ASSIGN(var, ent, struct trace_branch, TRACE_BRANCH); \ 454 IF_ASSIGN(var, ent, struct ftrace_graph_ent_entry, \ 455 TRACE_GRAPH_ENT); \ --- 214 unchanged lines hidden (view full) --- 670 671#ifdef CONFIG_TRACER_MAX_TRACE 672void update_max_tr(struct trace_array *tr, struct task_struct *tsk, int cpu, 673 void *cond_data); 674void update_max_tr_single(struct trace_array *tr, 675 struct task_struct *tsk, int cpu); 676#endif /* CONFIG_TRACER_MAX_TRACE */ 677 | 451 IF_ASSIGN(var, ent, struct raw_data_entry, TRACE_RAW_DATA);\ 452 IF_ASSIGN(var, ent, struct trace_mmiotrace_rw, \ 453 TRACE_MMIO_RW); \ 454 IF_ASSIGN(var, ent, struct trace_mmiotrace_map, \ 455 TRACE_MMIO_MAP); \ 456 IF_ASSIGN(var, ent, struct trace_branch, TRACE_BRANCH); \ 457 IF_ASSIGN(var, ent, struct ftrace_graph_ent_entry, \ 458 TRACE_GRAPH_ENT); \ --- 214 unchanged lines hidden (view full) --- 673 674#ifdef CONFIG_TRACER_MAX_TRACE 675void update_max_tr(struct trace_array *tr, struct task_struct *tsk, int cpu, 676 void *cond_data); 677void update_max_tr_single(struct trace_array *tr, 678 struct task_struct *tsk, int cpu); 679#endif /* CONFIG_TRACER_MAX_TRACE */ 680 |
678#if (defined(CONFIG_TRACER_MAX_TRACE) || defined(CONFIG_HWLAT_TRACER)) && \ 679 defined(CONFIG_FSNOTIFY) | 681#if (defined(CONFIG_TRACER_MAX_TRACE) || defined(CONFIG_HWLAT_TRACER) \ 682 || defined(CONFIG_OSNOISE_TRACER)) && defined(CONFIG_FSNOTIFY) |
680#define LATENCY_FS_NOTIFY 681#endif 682 683#ifdef LATENCY_FS_NOTIFY 684void latency_fsnotify(struct trace_array *tr); 685#else 686static inline void latency_fsnotify(struct trace_array *tr) { } 687#endif --- 1286 unchanged lines hidden --- | 683#define LATENCY_FS_NOTIFY 684#endif 685 686#ifdef LATENCY_FS_NOTIFY 687void latency_fsnotify(struct trace_array *tr); 688#else 689static inline void latency_fsnotify(struct trace_array *tr) { } 690#endif --- 1286 unchanged lines hidden --- |