trace_output.h (1ac731c529cd4d6adbce134754b51ff7d822b145) | trace_output.h (533c20b062d7c25cbcbadb31e3ecb95a08ddb877) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2#ifndef __TRACE_EVENTS_H 3#define __TRACE_EVENTS_H 4 5#include <linux/trace_seq.h> 6#include "trace.h" 7 8extern enum print_line_t --- 27 unchanged lines hidden (view full) --- 36extern struct rw_semaphore trace_event_sem; 37 38#define SEQ_PUT_FIELD(s, x) \ 39 trace_seq_putmem(s, &(x), sizeof(x)) 40 41#define SEQ_PUT_HEX_FIELD(s, x) \ 42 trace_seq_putmem_hex(s, &(x), sizeof(x)) 43 | 1// SPDX-License-Identifier: GPL-2.0 2#ifndef __TRACE_EVENTS_H 3#define __TRACE_EVENTS_H 4 5#include <linux/trace_seq.h> 6#include "trace.h" 7 8extern enum print_line_t --- 27 unchanged lines hidden (view full) --- 36extern struct rw_semaphore trace_event_sem; 37 38#define SEQ_PUT_FIELD(s, x) \ 39 trace_seq_putmem(s, &(x), sizeof(x)) 40 41#define SEQ_PUT_HEX_FIELD(s, x) \ 42 trace_seq_putmem_hex(s, &(x), sizeof(x)) 43 |
44#ifdef CONFIG_FUNCTION_TRACE_ARGS 45void print_function_args(struct trace_seq *s, unsigned long *args, 46 unsigned long func); 47#else 48static inline void print_function_args(struct trace_seq *s, unsigned long *args, 49 unsigned long func) { 50 trace_seq_puts(s, "()"); 51} |
|
44#endif | 52#endif |
53#endif |
|
45 | 54 |