Blame view
kernel/trace/trace_output.h
1.61 KB
f0868d1e2 ftrace: set up tr... |
1 2 |
#ifndef __TRACE_EVENTS_H #define __TRACE_EVENTS_H |
9504504cb tracing: make tra... |
3 |
#include <linux/trace_seq.h> |
f0868d1e2 ftrace: set up tr... |
4 |
#include "trace.h" |
5ef841f6f tracing: make pri... |
5 6 7 8 |
extern enum print_line_t trace_print_bprintk_msg_only(struct trace_iterator *iter); extern enum print_line_t trace_print_printk_msg_only(struct trace_iterator *iter); |
769b0441f tracing/core: dro... |
9 |
extern int |
f0868d1e2 ftrace: set up tr... |
10 11 |
seq_print_ip_sym(struct trace_seq *s, unsigned long ip, unsigned long sym_flags); |
f285901bb tracing: add miss... |
12 13 14 15 |
extern int seq_print_userip_objs(const struct userstack_entry *entry, struct trace_seq *s, unsigned long sym_flags); extern int seq_print_user_ip(struct trace_seq *s, struct mm_struct *mm, unsigned long ip, unsigned long sym_flags); |
f0868d1e2 ftrace: set up tr... |
16 |
|
f285901bb tracing: add miss... |
17 18 |
extern int trace_print_context(struct trace_iterator *iter); extern int trace_print_lat_context(struct trace_iterator *iter); |
c4a8e8be2 trace: better man... |
19 |
|
4f5359685 tracing: add trac... |
20 21 |
extern void trace_event_read_lock(void); extern void trace_event_read_unlock(void); |
f285901bb tracing: add miss... |
22 |
extern struct trace_event *ftrace_find_event(int type); |
f0868d1e2 ftrace: set up tr... |
23 |
|
f285901bb tracing: add miss... |
24 |
extern enum print_line_t trace_nop_print(struct trace_iterator *iter, |
a9a577638 tracing: Allow ev... |
25 |
int flags, struct trace_event *event); |
f81c972d2 tracing: consolid... |
26 27 |
extern int trace_print_lat_fmt(struct trace_seq *s, struct trace_entry *entry); |
f633cef02 ftrace: change tr... |
28 |
|
110bf2b76 tracing: add prot... |
29 30 31 |
/* used by module unregistering */ extern int __unregister_ftrace_event(struct trace_event *event); extern struct rw_semaphore trace_event_mutex; |
f0868d1e2 ftrace: set up tr... |
32 33 |
#define MAX_MEMHEX_BYTES 8 #define HEX_CHARS (MAX_MEMHEX_BYTES*2 + 1) |
f633cef02 ftrace: change tr... |
34 35 36 |
#define SEQ_PUT_FIELD_RET(s, x) \ do { \ if (!trace_seq_putmem(s, &(x), sizeof(x))) \ |
6c1a99afb ftrace: fix trace... |
37 |
return TRACE_TYPE_PARTIAL_LINE; \ |
f633cef02 ftrace: change tr... |
38 39 40 41 42 43 |
} while (0) #define SEQ_PUT_HEX_FIELD_RET(s, x) \ do { \ BUILD_BUG_ON(sizeof(x) > MAX_MEMHEX_BYTES); \ if (!trace_seq_putmem_hex(s, &(x), sizeof(x))) \ |
6c1a99afb ftrace: fix trace... |
44 |
return TRACE_TYPE_PARTIAL_LINE; \ |
f633cef02 ftrace: change tr... |
45 |
} while (0) |
f0868d1e2 ftrace: set up tr... |
46 |
#endif |