trace.h (da537f0aef1372c5204356a7df06be8769467b7b) | trace.h (91edde2e6ae1dd5e33812f076f3fe4cb7ccbfdd0) |
---|---|
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> 9#include <linux/clocksource.h> 10#include <linux/ring_buffer.h> 11#include <linux/mmiotrace.h> 12#include <linux/tracepoint.h> 13#include <linux/ftrace.h> 14#include <linux/hw_breakpoint.h> 15#include <linux/trace_seq.h> 16#include <linux/trace_events.h> 17#include <linux/compiler.h> 18#include <linux/glob.h> | 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> 9#include <linux/clocksource.h> 10#include <linux/ring_buffer.h> 11#include <linux/mmiotrace.h> 12#include <linux/tracepoint.h> 13#include <linux/ftrace.h> 14#include <linux/hw_breakpoint.h> 15#include <linux/trace_seq.h> 16#include <linux/trace_events.h> 17#include <linux/compiler.h> 18#include <linux/glob.h> |
19#include <linux/irq_work.h> 20#include <linux/workqueue.h> |
|
19 20#ifdef CONFIG_FTRACE_SYSCALLS 21#include <asm/unistd.h> /* For NR_SYSCALLS */ 22#include <asm/syscall.h> /* some archs define it here */ 23#endif 24 25enum trace_type { 26 __TRACE_FIRST_TYPE = 0, --- 232 unchanged lines hidden (view full) --- 259 * with the buffer of the trace_buffer and the buffers are reset for 260 * the trace_buffer so the tracing can continue. 261 */ 262 struct trace_buffer max_buffer; 263 bool allocated_snapshot; 264#endif 265#if defined(CONFIG_TRACER_MAX_TRACE) || defined(CONFIG_HWLAT_TRACER) 266 unsigned long max_latency; | 21 22#ifdef CONFIG_FTRACE_SYSCALLS 23#include <asm/unistd.h> /* For NR_SYSCALLS */ 24#include <asm/syscall.h> /* some archs define it here */ 25#endif 26 27enum trace_type { 28 __TRACE_FIRST_TYPE = 0, --- 232 unchanged lines hidden (view full) --- 261 * with the buffer of the trace_buffer and the buffers are reset for 262 * the trace_buffer so the tracing can continue. 263 */ 264 struct trace_buffer max_buffer; 265 bool allocated_snapshot; 266#endif 267#if defined(CONFIG_TRACER_MAX_TRACE) || defined(CONFIG_HWLAT_TRACER) 268 unsigned long max_latency; |
269#ifdef CONFIG_FSNOTIFY 270 struct dentry *d_max_latency; 271 struct work_struct fsnotify_work; 272 struct irq_work fsnotify_irqwork; |
|
267#endif | 273#endif |
274#endif |
|
268 struct trace_pid_list __rcu *filtered_pids; 269 /* 270 * max_lock is used to protect the swapping of buffers 271 * when taking a max snapshot. The buffers themselves are 272 * protected by per_cpu spinlocks. But the action of the swap 273 * needs its own lock. 274 * 275 * This is defined as a arch_spinlock_t in order to help --- 505 unchanged lines hidden (view full) --- 781 782#ifdef CONFIG_TRACER_MAX_TRACE 783void update_max_tr(struct trace_array *tr, struct task_struct *tsk, int cpu, 784 void *cond_data); 785void update_max_tr_single(struct trace_array *tr, 786 struct task_struct *tsk, int cpu); 787#endif /* CONFIG_TRACER_MAX_TRACE */ 788 | 275 struct trace_pid_list __rcu *filtered_pids; 276 /* 277 * max_lock is used to protect the swapping of buffers 278 * when taking a max snapshot. The buffers themselves are 279 * protected by per_cpu spinlocks. But the action of the swap 280 * needs its own lock. 281 * 282 * This is defined as a arch_spinlock_t in order to help --- 505 unchanged lines hidden (view full) --- 788 789#ifdef CONFIG_TRACER_MAX_TRACE 790void update_max_tr(struct trace_array *tr, struct task_struct *tsk, int cpu, 791 void *cond_data); 792void update_max_tr_single(struct trace_array *tr, 793 struct task_struct *tsk, int cpu); 794#endif /* CONFIG_TRACER_MAX_TRACE */ 795 |
796#if (defined(CONFIG_TRACER_MAX_TRACE) || defined(CONFIG_HWLAT_TRACER)) && \ 797 defined(CONFIG_FSNOTIFY) 798 799void latency_fsnotify(struct trace_array *tr); 800 801#else 802 803static void latency_fsnotify(struct trace_array *tr) { } 804 805#endif 806 |
|
789#ifdef CONFIG_STACKTRACE 790void __trace_stack(struct trace_array *tr, unsigned long flags, int skip, 791 int pc); 792#else 793static inline void __trace_stack(struct trace_array *tr, unsigned long flags, 794 int skip, int pc) 795{ 796} --- 1194 unchanged lines hidden --- | 807#ifdef CONFIG_STACKTRACE 808void __trace_stack(struct trace_array *tr, unsigned long flags, int skip, 809 int pc); 810#else 811static inline void __trace_stack(struct trace_array *tr, unsigned long flags, 812 int skip, int pc) 813{ 814} --- 1194 unchanged lines hidden --- |