X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=ltt-tracer.h;h=91a868dc277cd88ff7361248cea10a1e6abddfcc;hb=3da843ea85c6dd4aef5703fa24ca8bb29d172b57;hp=c40fa6746ab74db8f872056644dc1aef143fe858;hpb=6af0c092e6e2dd7f3441934fad44faac61fa2ef9;p=lttng-modules.git diff --git a/ltt-tracer.h b/ltt-tracer.h index c40fa674..91a868dc 100644 --- a/ltt-tracer.h +++ b/ltt-tracer.h @@ -35,27 +35,6 @@ /* Number of bytes to log with a read/write event */ #define LTT_LOG_RW_SIZE 32L - -/* - * Hardcoded event headers - * - * event header for a trace with active heartbeat : 27 bits timestamps - * - * headers are 32-bits aligned. In order to insure such alignment, a dynamic per - * trace alignment value must be done. - * - * Remember that the C compiler does align each member on the boundary - * equivalent to their own size. - * - * As relay subbuffers are aligned on pages, we are sure that they are 4 and 8 - * bytes aligned, so the buffer header and trace header are aligned. - * - * Event headers are aligned depending on the trace alignment option. - * - * Note using C structure bitfields for cross-endianness and portability - * concerns. - */ - #define LTT_MAX_SMALL_SIZE 0xFFFFU #ifdef RING_BUFFER_ALIGN @@ -76,53 +55,7 @@ */ #define LTTNG_METADATA_TIMEOUT_MSEC 10000 -/* - * Size reserved for high priority events (interrupts, NMI, BH) at the end of a - * nearly full buffer. User space won't use this last amount of space when in - * blocking mode. This space also includes the event header that would be - * written by this user space event. - */ -#define LTT_RESERVE_CRITICAL 4096 - #define LTT_RFLAG_EXTENDED RING_BUFFER_RFLAG_END #define LTT_RFLAG_END (LTT_RFLAG_EXTENDED << 1) -/* Register and unregister function pointers */ - -enum ltt_module_function { - LTT_FUNCTION_RUN_FILTER, - LTT_FUNCTION_FILTER_CONTROL, - LTT_FUNCTION_STATEDUMP -}; - -extern int ltt_module_register(enum ltt_module_function name, void *function, - struct module *owner); -extern void ltt_module_unregister(enum ltt_module_function name); - -/* Exported control function */ - -void ltt_core_register(int (*function)(u8, void *)); - -void ltt_core_unregister(void); - -extern -void ltt_statedump_register_kprobes_dump(void (*callback)(void *call_data)); -extern -void ltt_statedump_unregister_kprobes_dump(void (*callback)(void *call_data)); - -extern void ltt_dump_softirq_vec(void *call_data); - -#ifdef CONFIG_HAVE_LTT_DUMP_TABLES -extern void ltt_dump_sys_call_table(void *call_data); -extern void ltt_dump_idt_table(void *call_data); -#else -static inline void ltt_dump_sys_call_table(void *call_data) -{ -} - -static inline void ltt_dump_idt_table(void *call_data) -{ -} -#endif - #endif /* _LTT_TRACER_H */