Problems
========
- There is a typo in the struct name of the parameters of stub version
of the lttng_uprobes_add_callsite function,
- We are building the lttng-uprobes.o object file even when
CONFIG_UPROBES is absent.
Both of these are causing build errors.
Fixes
=====
- Replace struct lttng_kernel_callsite_uprobe by struct
lttng_kernel_event_callsite,
- Only add the lttng-uprobes.o object file to the needed artefacts if
CONFIG_UPROBES is present.
Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
lttng-filter-specialize.o \
lttng-filter-validator.o \
probes/lttng-probe-user.o \
- lttng-tp-mempool.o \
- probes/lttng-uprobes.o
+ lttng-tp-mempool.o
ifneq ($(CONFIG_HAVE_SYSCALL_TRACEPOINTS),)
lttng-tracer-objs += lttng-syscalls.o
int lttng_event_add_callsite(struct lttng_event *event,
struct lttng_kernel_event_callsite *callsite);
+
#ifdef CONFIG_UPROBES
int lttng_uprobes_register(const char *name,
int fd, struct lttng_event *event);
static inline
int lttng_uprobes_add_callsite(struct lttng_event *event,
- struct lttng_kernel_callsite_uprobe *callsite)
+ struct lttng_kernel_event_callsite *callsite)
{
return -ENOSYS;
}
obj-$(CONFIG_LTTNG) += lttng-kprobes.o
endif # CONFIG_KPROBES
+ifneq ($(CONFIG_UPROBES),)
+ obj-$(CONFIG_LTTNG) += lttng-uprobes.o
+endif # CONFIG_UPROBES
+
ifneq ($(CONFIG_KRETPROBES),)
obj-$(CONFIG_LTTNG) += lttng-kretprobes.o
endif # CONFIG_KRETPROBES