From 0f9c99095c8a1de40f47c50d1c29184771ed23bc Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Sat, 16 Jul 2011 13:23:08 -0400 Subject: [PATCH] Remove ltt-core.c (unused) Signed-off-by: Mathieu Desnoyers --- Makefile | 2 +- ltt-core.c | 42 ------------------------------------------ ltt-tracer-core.h | 9 --------- ltt-tracer.h | 38 -------------------------------------- 4 files changed, 1 insertion(+), 90 deletions(-) delete mode 100644 ltt-core.c diff --git a/Makefile b/Makefile index 584ca6b1..e93792c8 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,7 @@ obj-m += ltt-ring-buffer-metadata-mmap-client.o obj-m += ltt-relay.o ltt-relay-objs := ltt-events.o ltt-debugfs-abi.o \ - ltt-probes.o ltt-core.o ltt-context.o \ + ltt-probes.o ltt-context.o \ lttng-context-pid.o lttng-context-comm.o \ lttng-context-prio.o lttng-context-nice.o \ lttng-context-vpid.o lttng-context-tid.o \ diff --git a/ltt-core.c b/ltt-core.c deleted file mode 100644 index fc55bdff..00000000 --- a/ltt-core.c +++ /dev/null @@ -1,42 +0,0 @@ -/* - * LTT core in-kernel infrastructure. - * - * Copyright 2006 - Mathieu Desnoyers mathieu.desnoyers@polymtl.ca - * - * Dual LGPL v2.1/GPL v2 license. - */ - -#include -#include -#include -#include -#include - -#include "ltt-tracer-core.h" - -int ltt_run_filter_default(struct ltt_session *session, - struct ltt_channel *chan, - struct ltt_event *event) -{ - return 1; -} - -/* This function pointer is protected by a trace activation check */ -ltt_run_filter_functor ltt_run_filter = ltt_run_filter_default; -EXPORT_SYMBOL_GPL(ltt_run_filter); - -void ltt_filter_register(ltt_run_filter_functor func) -{ - ltt_run_filter = func; -} -EXPORT_SYMBOL_GPL(ltt_filter_register); - -void ltt_filter_unregister(void) -{ - ltt_run_filter = ltt_run_filter_default; -} -EXPORT_SYMBOL_GPL(ltt_filter_unregister); - -MODULE_LICENSE("GPL and additional rights"); -MODULE_AUTHOR("Mathieu Desnoyers"); -MODULE_DESCRIPTION("Linux Trace Toolkit Next Generation Tracer Core"); diff --git a/ltt-tracer-core.h b/ltt-tracer-core.h index d464877d..5abc432d 100644 --- a/ltt-tracer-core.h +++ b/ltt-tracer-core.h @@ -25,13 +25,4 @@ struct ltt_session; struct ltt_channel; struct ltt_event; -typedef int (*ltt_run_filter_functor)(struct ltt_session *session, - struct ltt_channel *chan, - struct ltt_event *event); - -extern ltt_run_filter_functor ltt_run_filter; - -extern void ltt_filter_register(ltt_run_filter_functor func); -extern void ltt_filter_unregister(void); - #endif /* LTT_TRACER_CORE_H */ diff --git a/ltt-tracer.h b/ltt-tracer.h index 2fbe1bc8..91a868dc 100644 --- a/ltt-tracer.h +++ b/ltt-tracer.h @@ -58,42 +58,4 @@ #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 */ -- 2.34.1