trace.h (16419098e8b301417173d8d2cbfa94a56ac9900b) | trace.h (5790b1fb3d672d9a1fe3881a7181dfdbe741568f) |
---|---|
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> --- 367 unchanged lines hidden (view full) --- 376 unsigned int trace_flags; 377 unsigned char trace_flags_index[TRACE_FLAGS_MAX_SIZE]; 378 unsigned int flags; 379 raw_spinlock_t start_lock; 380 struct list_head err_log; 381 struct dentry *dir; 382 struct dentry *options; 383 struct dentry *percpu_dir; | 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> --- 367 unchanged lines hidden (view full) --- 376 unsigned int trace_flags; 377 unsigned char trace_flags_index[TRACE_FLAGS_MAX_SIZE]; 378 unsigned int flags; 379 raw_spinlock_t start_lock; 380 struct list_head err_log; 381 struct dentry *dir; 382 struct dentry *options; 383 struct dentry *percpu_dir; |
384 struct dentry *event_dir; | 384 struct eventfs_inode *event_dir; |
385 struct trace_options *topts; 386 struct list_head systems; 387 struct list_head events; 388 struct trace_event_file *trace_marker_file; 389 cpumask_var_t tracing_cpumask; /* only trace on set CPUs */ 390 /* one per_cpu trace_pipe can be opened by only one user */ 391 cpumask_var_t pipe_cpumask; 392 int ref; --- 12 unchanged lines hidden (view full) --- 405 int function_enabled; 406#endif 407 int no_filter_buffering_ref; 408 struct list_head hist_vars; 409#ifdef CONFIG_TRACER_SNAPSHOT 410 struct cond_snapshot *cond_snapshot; 411#endif 412 struct trace_func_repeats __percpu *last_func_repeats; | 385 struct trace_options *topts; 386 struct list_head systems; 387 struct list_head events; 388 struct trace_event_file *trace_marker_file; 389 cpumask_var_t tracing_cpumask; /* only trace on set CPUs */ 390 /* one per_cpu trace_pipe can be opened by only one user */ 391 cpumask_var_t pipe_cpumask; 392 int ref; --- 12 unchanged lines hidden (view full) --- 405 int function_enabled; 406#endif 407 int no_filter_buffering_ref; 408 struct list_head hist_vars; 409#ifdef CONFIG_TRACER_SNAPSHOT 410 struct cond_snapshot *cond_snapshot; 411#endif 412 struct trace_func_repeats __percpu *last_func_repeats; |
413 /* 414 * On boot up, the ring buffer is set to the minimum size, so that 415 * we do not waste memory on systems that are not using tracing. 416 */ 417 bool ring_buffer_expanded; |
|
413}; 414 415enum { 416 TRACE_ARRAY_FL_GLOBAL = (1 << 0) 417}; 418 419extern struct list_head ftrace_trace_arrays; 420 --- 335 unchanged lines hidden (view full) --- 756#else 757static inline void ftrace_init_trace_array(struct trace_array *tr) { } 758#endif 759#define DYN_FTRACE_TEST_NAME trace_selftest_dynamic_test_func 760extern int DYN_FTRACE_TEST_NAME(void); 761#define DYN_FTRACE_TEST_NAME2 trace_selftest_dynamic_test_func2 762extern int DYN_FTRACE_TEST_NAME2(void); 763 | 418}; 419 420enum { 421 TRACE_ARRAY_FL_GLOBAL = (1 << 0) 422}; 423 424extern struct list_head ftrace_trace_arrays; 425 --- 335 unchanged lines hidden (view full) --- 761#else 762static inline void ftrace_init_trace_array(struct trace_array *tr) { } 763#endif 764#define DYN_FTRACE_TEST_NAME trace_selftest_dynamic_test_func 765extern int DYN_FTRACE_TEST_NAME(void); 766#define DYN_FTRACE_TEST_NAME2 trace_selftest_dynamic_test_func2 767extern int DYN_FTRACE_TEST_NAME2(void); 768 |
764extern bool ring_buffer_expanded; | 769extern void trace_set_ring_buffer_expanded(struct trace_array *tr); |
765extern bool tracing_selftest_disabled; 766 767#ifdef CONFIG_FTRACE_STARTUP_TEST 768extern void __init disable_tracing_selftest(const char *reason); 769 770extern int trace_selftest_startup_function(struct tracer *trace, 771 struct trace_array *tr); 772extern int trace_selftest_startup_function_graph(struct tracer *trace, --- 527 unchanged lines hidden (view full) --- 1300 return 0; 1301} 1302static inline void trace_branch_disable(void) 1303{ 1304} 1305#endif /* CONFIG_BRANCH_TRACER */ 1306 1307/* set ring buffers to default size if not already done so */ | 770extern bool tracing_selftest_disabled; 771 772#ifdef CONFIG_FTRACE_STARTUP_TEST 773extern void __init disable_tracing_selftest(const char *reason); 774 775extern int trace_selftest_startup_function(struct tracer *trace, 776 struct trace_array *tr); 777extern int trace_selftest_startup_function_graph(struct tracer *trace, --- 527 unchanged lines hidden (view full) --- 1305 return 0; 1306} 1307static inline void trace_branch_disable(void) 1308{ 1309} 1310#endif /* CONFIG_BRANCH_TRACER */ 1311 1312/* set ring buffers to default size if not already done so */ |
1308int tracing_update_buffers(void); | 1313int tracing_update_buffers(struct trace_array *tr); |
1309 1310union trace_synth_field { 1311 u8 as_u8; 1312 u16 as_u16; 1313 u32 as_u32; 1314 u64 as_u64; 1315 struct trace_dynamic_info as_dynamic; 1316}; --- 22 unchanged lines hidden (view full) --- 1339 struct event_filter *filter; 1340 int ref_count; 1341}; 1342 1343struct trace_subsystem_dir { 1344 struct list_head list; 1345 struct event_subsystem *subsystem; 1346 struct trace_array *tr; | 1314 1315union trace_synth_field { 1316 u8 as_u8; 1317 u16 as_u16; 1318 u32 as_u32; 1319 u64 as_u64; 1320 struct trace_dynamic_info as_dynamic; 1321}; --- 22 unchanged lines hidden (view full) --- 1344 struct event_filter *filter; 1345 int ref_count; 1346}; 1347 1348struct trace_subsystem_dir { 1349 struct list_head list; 1350 struct event_subsystem *subsystem; 1351 struct trace_array *tr; |
1347 struct eventfs_file *ef; | 1352 struct eventfs_inode *ei; |
1348 int ref_count; 1349 int nr_events; 1350}; 1351 1352extern int call_filter_check_discard(struct trace_event_call *call, void *rec, 1353 struct trace_buffer *buffer, 1354 struct ring_buffer_event *event); 1355 --- 704 unchanged lines hidden --- | 1353 int ref_count; 1354 int nr_events; 1355}; 1356 1357extern int call_filter_check_discard(struct trace_event_call *call, void *rec, 1358 struct trace_buffer *buffer, 1359 struct ring_buffer_event *event); 1360 --- 704 unchanged lines hidden --- |