#ifdef DEBUG
#define dbg_printk(fmt, args...) \
- printk(KERN_DEBUG "[debug bytecode in %s:%s@%u] " fmt, \
+ printk(KERN_DEBUG "LTTng: [debug bytecode in %s:%s@%u] " fmt, \
__FILE__, __func__, __LINE__, ## args)
#else
#define dbg_printk(fmt, args...) \
do { \
/* do nothing but check printf format */ \
if (0) \
- printk(KERN_DEBUG "[debug bytecode in %s:%s@%u] " fmt, \
+ printk(KERN_DEBUG "LTTng: [debug bytecode in %s:%s@%u] " fmt, \
__FILE__, __func__, __LINE__, ## args); \
} while (0)
#endif
int vstack_push(struct vstack *stack)
{
if (stack->top >= FILTER_STACK_LEN - 1) {
- printk(KERN_WARNING "Stack full\n");
+ printk(KERN_WARNING "LTTng: filter: Stack full\n");
return -EINVAL;
}
++stack->top;
int vstack_pop(struct vstack *stack)
{
if (unlikely(stack->top < 0)) {
- printk(KERN_WARNING "Stack empty\n");
+ printk(KERN_WARNING "LTTng: filter: Stack empty\n");
return -EINVAL;
}
stack->top--;
const char *lttng_filter_print_op(enum filter_op op);
int lttng_filter_validate_bytecode(struct bytecode_runtime *bytecode);
-int lttng_filter_specialize_bytecode(struct lttng_event *event,
+int lttng_filter_specialize_bytecode(const struct lttng_event_desc *event_desc,
struct bytecode_runtime *bytecode);
uint64_t lttng_filter_false(void *filter_data,