trace_output.h (27eb2c4b3d3e13f376a359e293c212a2e9407af5) trace_output.h (12306276fabcb746a14979e96f43a13c724dec49)
1#ifndef __TRACE_EVENTS_H
2#define __TRACE_EVENTS_H
3
4#include <linux/trace_seq.h>
5#include "trace.h"
6
7extern enum print_line_t
8trace_print_bputs_msg_only(struct trace_iterator *iter);

--- 21 unchanged lines hidden (view full) ---

30 int flags, struct trace_event *event);
31extern int
32trace_print_lat_fmt(struct trace_seq *s, struct trace_entry *entry);
33
34/* used by module unregistering */
35extern int __unregister_ftrace_event(struct trace_event *event);
36extern struct rw_semaphore trace_event_sem;
37
1#ifndef __TRACE_EVENTS_H
2#define __TRACE_EVENTS_H
3
4#include <linux/trace_seq.h>
5#include "trace.h"
6
7extern enum print_line_t
8trace_print_bputs_msg_only(struct trace_iterator *iter);

--- 21 unchanged lines hidden (view full) ---

30 int flags, struct trace_event *event);
31extern int
32trace_print_lat_fmt(struct trace_seq *s, struct trace_entry *entry);
33
34/* used by module unregistering */
35extern int __unregister_ftrace_event(struct trace_event *event);
36extern struct rw_semaphore trace_event_sem;
37
38#define MAX_MEMHEX_BYTES 8
39#define HEX_CHARS (MAX_MEMHEX_BYTES*2 + 1)
40
41#define SEQ_PUT_FIELD_RET(s, x) \
42do { \
43 if (!trace_seq_putmem(s, &(x), sizeof(x))) \
44 return TRACE_TYPE_PARTIAL_LINE; \
45} while (0)
46
47#define SEQ_PUT_HEX_FIELD_RET(s, x) \
48do { \
49 BUILD_BUG_ON(sizeof(x) > MAX_MEMHEX_BYTES); \
50 if (!trace_seq_putmem_hex(s, &(x), sizeof(x))) \
51 return TRACE_TYPE_PARTIAL_LINE; \
52} while (0)
53
54#endif
55
38#define SEQ_PUT_FIELD_RET(s, x) \
39do { \
40 if (!trace_seq_putmem(s, &(x), sizeof(x))) \
41 return TRACE_TYPE_PARTIAL_LINE; \
42} while (0)
43
44#define SEQ_PUT_HEX_FIELD_RET(s, x) \
45do { \
46 BUILD_BUG_ON(sizeof(x) > MAX_MEMHEX_BYTES); \
47 if (!trace_seq_putmem_hex(s, &(x), sizeof(x))) \
48 return TRACE_TYPE_PARTIAL_LINE; \
49} while (0)
50
51#endif
52