int ltt_probes_init(void);
void ltt_probes_exit(void);
+#ifdef CONFIG_KPROBES
int lttng_kprobes_register(const char *name,
const char *symbol_name,
uint64_t offset,
uint64_t addr,
struct ltt_event *event);
void lttng_kprobes_unregister(struct ltt_event *event);
+#else
+static inline
+int lttng_kprobes_register(const char *name,
+ const char *symbol_name,
+ uint64_t offset,
+ uint64_t addr,
+ struct ltt_event *event)
+{
+ return -ENOSYS;
+}
+
+void lttng_kprobes_unregister(struct ltt_event *event)
+{
+}
+#endif
#ifdef CONFIG_DYNAMIC_FTRACE
int lttng_ftrace_register(const char *name,
const char *symbol_name,
struct ltt_event *event)
{
- return 0;
+ return -ENOSYS;
}
static inline
obj-m += lttng-probe-block.o
obj-m += lttng-probe-syscalls.o
+ifneq ($(CONFIG_KPROBES),)
obj-m += lttng-kprobes.o
+endif
ifneq ($(CONFIG_DYNAMIC_FTRACE),)
obj-m += lttng-ftrace.o