trace.h (f0868d1e23a8efec33beb3aa688aab7fdb1ae093) | trace.h (dbd0b4b33074aa6b7832a9d9a5bd985eca5c1aa2) |
---|---|
1#ifndef _LINUX_KERNEL_TRACE_H 2#define _LINUX_KERNEL_TRACE_H 3 4#include <linux/fs.h> 5#include <asm/atomic.h> 6#include <linux/sched.h> 7#include <linux/clocksource.h> 8#include <linux/ring_buffer.h> --- 322 unchanged lines hidden (view full) --- 331#endif 332 void (*print_header)(struct seq_file *m); 333 enum print_line_t (*print_line)(struct trace_iterator *iter); 334 /* If you handled the flag setting, return 0 */ 335 int (*set_flag)(u32 old_flags, u32 bit, int set); 336 struct tracer *next; 337 int print_max; 338 struct tracer_flags *flags; | 1#ifndef _LINUX_KERNEL_TRACE_H 2#define _LINUX_KERNEL_TRACE_H 3 4#include <linux/fs.h> 5#include <asm/atomic.h> 6#include <linux/sched.h> 7#include <linux/clocksource.h> 8#include <linux/ring_buffer.h> --- 322 unchanged lines hidden (view full) --- 331#endif 332 void (*print_header)(struct seq_file *m); 333 enum print_line_t (*print_line)(struct trace_iterator *iter); 334 /* If you handled the flag setting, return 0 */ 335 int (*set_flag)(u32 old_flags, u32 bit, int set); 336 struct tracer *next; 337 int print_max; 338 struct tracer_flags *flags; |
339 340 /* 341 * If you change one of the following on tracing runtime, recall 342 * init_tracer_stat() 343 */ 344 345 /* Iteration over statistic entries */ 346 void *(*stat_start)(void); 347 void *(*stat_next)(void *prev, int idx); 348 /* Compare two entries for sorting (optional) for stats */ 349 int (*stat_cmp)(void *p1, void *p2); 350 /* Print a stat entry */ 351 int (*stat_show)(struct seq_file *s, void *p); 352 /* Print the headers of your stat entries */ 353 int (*stat_headers)(struct seq_file *s); |
|
339}; 340 341struct trace_seq { 342 unsigned char buffer[PAGE_SIZE]; 343 unsigned int len; 344 unsigned int readpos; 345}; 346 --- 69 unchanged lines hidden (view full) --- 416void tracing_start_cmdline_record(void); 417void tracing_stop_cmdline_record(void); 418void tracing_sched_switch_assign_trace(struct trace_array *tr); 419void tracing_stop_sched_switch_record(void); 420void tracing_start_sched_switch_record(void); 421int register_tracer(struct tracer *type); 422void unregister_tracer(struct tracer *type); 423 | 354}; 355 356struct trace_seq { 357 unsigned char buffer[PAGE_SIZE]; 358 unsigned int len; 359 unsigned int readpos; 360}; 361 --- 69 unchanged lines hidden (view full) --- 431void tracing_start_cmdline_record(void); 432void tracing_stop_cmdline_record(void); 433void tracing_sched_switch_assign_trace(struct trace_array *tr); 434void tracing_stop_sched_switch_record(void); 435void tracing_start_sched_switch_record(void); 436int register_tracer(struct tracer *type); 437void unregister_tracer(struct tracer *type); 438 |
439void init_tracer_stat(struct tracer *trace); 440 |
|
424extern unsigned long nsecs_to_usecs(unsigned long nsecs); 425 426extern unsigned long tracing_max_latency; 427extern unsigned long tracing_thresh; 428 429void update_max_tr(struct trace_array *tr, struct task_struct *tsk, int cpu); 430void update_max_tr_single(struct trace_array *tr, 431 struct task_struct *tsk, int cpu); --- 223 unchanged lines hidden --- | 441extern unsigned long nsecs_to_usecs(unsigned long nsecs); 442 443extern unsigned long tracing_max_latency; 444extern unsigned long tracing_thresh; 445 446void update_max_tr(struct trace_array *tr, struct task_struct *tsk, int cpu); 447void update_max_tr_single(struct trace_array *tr, 448 struct task_struct *tsk, int cpu); --- 223 unchanged lines hidden --- |