#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--;
* trigger recursive page faults.
*/
printk_once(KERN_WARNING "LTTng: vmalloc_sync_mappings symbol lookup failed.\n");
- printk_once(KERN_WARNING "Page fault handler and NMI tracing might trigger faults.\n");
+ printk_once(KERN_WARNING "LTTng: Page fault handler and NMI tracing might trigger faults.\n");
#endif
}
}
* trigger recursive page faults.
*/
printk_once(KERN_WARNING "LTTng: vmalloc_sync_all symbol lookup failed.\n");
- printk_once(KERN_WARNING "Page fault handler and NMI tracing might trigger faults.\n");
+ printk_once(KERN_WARNING "LTTng: Page fault handler and NMI tracing might trigger faults.\n");
#endif
}
}
void print_vmalloc_node_range_warning(void)
{
printk_once(KERN_WARNING "LTTng: __vmalloc_node_range symbol lookup failed.\n");
- printk_once(KERN_WARNING "Tracer performance will be degraded on NUMA systems.\n");
- printk_once(KERN_WARNING "Please rebuild your kernel with CONFIG_KALLSYMS enabled.\n");
+ printk_once(KERN_WARNING "LTTng: Tracer performance will be degraded on NUMA systems.\n");
+ printk_once(KERN_WARNING "LTTng: Please rebuild your kernel with CONFIG_KALLSYMS enabled.\n");
}
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,0,0))
ret = lib_ring_buffer_create(buf, chanb, cpu);
if (ret) {
printk(KERN_ERR
- "ring_buffer_cpu_hp_callback: cpu %d "
+ "LTTng: ring_buffer_cpu_hp_callback: cpu %d "
"buffer creation failed\n", cpu);
return ret;
}
ret = lib_ring_buffer_create(buf, chanb, cpu);
if (ret) {
printk(KERN_ERR
- "ring_buffer_cpu_hp_callback: cpu %d "
+ "LTTng: ring_buffer_cpu_hp_callback: cpu %d "
"buffer creation failed\n", cpu);
return NOTIFY_BAD;
}
if (subbuf_offset(commit_count, chan) != 0)
printk(KERN_WARNING
- "ring buffer %s, cpu %d: "
+ "LTTng: ring buffer %s, cpu %d: "
"commit count in subbuffer %lu,\n"
"expecting multiples of %lu bytes\n"
" [ %lu bytes committed, %lu bytes reader-visible ]\n",
chan->backend.subbuf_size,
commit_count, commit_count_sb);
- printk(KERN_DEBUG "ring buffer: %s, cpu %d: %lu bytes committed\n",
+ printk(KERN_DEBUG "LTTng: ring buffer: %s, cpu %d: %lu bytes committed\n",
chan->backend.name, cpu, commit_count);
}
cons_offset = atomic_long_read(&buf->consumed);
if (write_offset != cons_offset)
printk(KERN_DEBUG
- "ring buffer %s, cpu %d: "
+ "LTTng: ring buffer %s, cpu %d: "
"non-consumed data\n"
" [ %lu bytes written, %lu bytes read ]\n",
chan->backend.name, cpu, write_offset, cons_offset);
const struct lib_ring_buffer_config *config = &chan->backend.config;
if (!strcmp(chan->backend.name, "relay-metadata")) {
- printk(KERN_DEBUG "ring buffer %s: %lu records written, "
+ printk(KERN_DEBUG "LTTng: ring buffer %s: %lu records written, "
"%lu records overrun\n",
chan->backend.name,
v_read(config, &buf->records_count),
v_read(config, &buf->records_overrun));
} else {
- printk(KERN_DEBUG "ring buffer %s, cpu %d: %lu records written, "
+ printk(KERN_DEBUG "LTTng: ring buffer %s, cpu %d: %lu records written, "
"%lu records overrun\n",
chan->backend.name, cpu,
v_read(config, &buf->records_count),
|| v_read(config, &buf->records_lost_wrap)
|| v_read(config, &buf->records_lost_big))
printk(KERN_WARNING
- "ring buffer %s, cpu %d: records were lost. Caused by:\n"
+ "LTTng: ring buffer %s, cpu %d: records were lost. Caused by:\n"
" [ %lu buffer full, %lu nest buffer wrap-around, "
"%lu event too big ]\n",
chan->backend.name, cpu,
*/
if (chan->iter.last_timestamp
> (buf->iter.timestamp + MAX_CLOCK_DELTA)) {
- printk(KERN_WARNING "ring_buffer: timestamps going "
+ printk(KERN_WARNING "LTTng: ring_buffer: timestamps going "
"backward. Last time %llu ns, cpu %d, "
"current time %llu ns, cpu %d, "
"delta %llu ns.\n",
#include <ringbuffer/frontend.h>
#include <ringbuffer/vfs.h>
-#if 0
+#ifdef DEBUG
#define printk_dbg(fmt, args...) printk(fmt, args)
#else
-#define printk_dbg(fmt, args...)
+#define printk_dbg(fmt, args...) \
+do { \
+ /* do nothing but check printf format */ \
+ if (0) \
+ printk(fmt, ## args); \
+} while (0)
#endif
loff_t vfs_lib_ring_buffer_no_llseek(struct file *file, loff_t offset,
nr_pages = min_t(unsigned int, subbuf_pages, PIPE_DEF_BUFFERS);
roffset = consumed_old & PAGE_MASK;
poff = consumed_old & ~PAGE_MASK;
- printk_dbg(KERN_DEBUG "SPLICE actor len %zu pos %zd write_pos %ld\n",
+ printk_dbg(KERN_DEBUG "LTTng: SPLICE actor len %zu pos %zd write_pos %ld\n",
len, (ssize_t)*ppos, lib_ring_buffer_get_offset(config, buf));
for (; spd.nr_pages < nr_pages; spd.nr_pages++) {
if (!len)
break;
- printk_dbg(KERN_DEBUG "SPLICE actor loop len %zu roffset %ld\n",
+ printk_dbg(KERN_DEBUG "LTTng: SPLICE actor loop len %zu roffset %ld\n",
len, roffset);
/*
ret = 0;
spliced = 0;
- printk_dbg(KERN_DEBUG "SPLICE read len %zu pos %zd\n", len,
+ printk_dbg(KERN_DEBUG "LTTng: SPLICE read len %zu pos %zd\n", len,
(ssize_t)*ppos);
while (len && !spliced) {
ret = subbuf_splice_actor(in, ppos, pipe, len, flags, buf);
- printk_dbg(KERN_DEBUG "SPLICE read loop ret %d\n", ret);
+ printk_dbg(KERN_DEBUG "LTTng: SPLICE read loop ret %d\n", ret);
if (ret < 0)
break;
else if (!ret) {
* session, we need to keep our own reference on the transport.
*/
if (!try_module_get(stream->transport->owner)) {
- printk(KERN_WARNING "LTT : Can't lock transport module.\n");
+ printk(KERN_WARNING "LTTng: Can't lock transport module.\n");
return -EBUSY;
}
return lib_ring_buffer_open(inode, file, buf);
* session, we need to keep our own reference on the transport.
*/
if (!try_module_get(metadata_stream->transport->owner)) {
- printk(KERN_WARNING "LTT : Can't lock transport module.\n");
+ printk(KERN_WARNING "LTTng: Can't lock transport module.\n");
ret = -EINVAL;
goto notransport;
}
<tng_proc_ops, NULL);
if (!lttng_proc_dentry) {
- printk(KERN_ERR "Error creating LTTng control file\n");
+ printk(KERN_ERR "LTTng: Error creating control file\n");
ret = -ENOMEM;
goto error;
}
ret = try_module_get(lttng_trace_clock_mod);
if (!ret) {
- printk(KERN_ERR "LTTng-clock cannot get clock plugin module\n");
+ printk(KERN_ERR "LTTng: LTTng-clock cannot get clock plugin module\n");
WRITE_ONCE(lttng_trace_clock, NULL);
lttng_trace_clock_mod = NULL;
}
ret = lttng_add_hostname_to_ctx(<tng_static_ctx);
if (ret) {
- printk(KERN_WARNING "Cannot add context lttng_add_hostname_to_ctx");
+ printk(KERN_WARNING "LTTng: Cannot add context lttng_add_hostname_to_ctx");
}
ret = lttng_add_nice_to_ctx(<tng_static_ctx);
if (ret) {
- printk(KERN_WARNING "Cannot add context lttng_add_nice_to_ctx");
+ printk(KERN_WARNING "LTTng: Cannot add context lttng_add_nice_to_ctx");
}
ret = lttng_add_pid_to_ctx(<tng_static_ctx);
if (ret) {
- printk(KERN_WARNING "Cannot add context lttng_add_pid_to_ctx");
+ printk(KERN_WARNING "LTTng: Cannot add context lttng_add_pid_to_ctx");
}
ret = lttng_add_ppid_to_ctx(<tng_static_ctx);
if (ret) {
- printk(KERN_WARNING "Cannot add context lttng_add_ppid_to_ctx");
+ printk(KERN_WARNING "LTTng: Cannot add context lttng_add_ppid_to_ctx");
}
ret = lttng_add_prio_to_ctx(<tng_static_ctx);
if (ret) {
- printk(KERN_WARNING "Cannot add context lttng_add_prio_to_ctx");
+ printk(KERN_WARNING "LTTng: Cannot add context lttng_add_prio_to_ctx");
}
ret = lttng_add_procname_to_ctx(<tng_static_ctx);
if (ret) {
- printk(KERN_WARNING "Cannot add context lttng_add_procname_to_ctx");
+ printk(KERN_WARNING "LTTng: Cannot add context lttng_add_procname_to_ctx");
}
ret = lttng_add_tid_to_ctx(<tng_static_ctx);
if (ret) {
- printk(KERN_WARNING "Cannot add context lttng_add_tid_to_ctx");
+ printk(KERN_WARNING "LTTng: Cannot add context lttng_add_tid_to_ctx");
}
ret = lttng_add_vppid_to_ctx(<tng_static_ctx);
if (ret) {
- printk(KERN_WARNING "Cannot add context lttng_add_vppid_to_ctx");
+ printk(KERN_WARNING "LTTng: Cannot add context lttng_add_vppid_to_ctx");
}
ret = lttng_add_vtid_to_ctx(<tng_static_ctx);
if (ret) {
- printk(KERN_WARNING "Cannot add context lttng_add_vtid_to_ctx");
+ printk(KERN_WARNING "LTTng: Cannot add context lttng_add_vtid_to_ctx");
}
ret = lttng_add_vpid_to_ctx(<tng_static_ctx);
if (ret) {
- printk(KERN_WARNING "Cannot add context lttng_add_vpid_to_ctx");
+ printk(KERN_WARNING "LTTng: Cannot add context lttng_add_vpid_to_ctx");
}
ret = lttng_add_cpu_id_to_ctx(<tng_static_ctx);
if (ret) {
- printk(KERN_WARNING "Cannot add context lttng_add_cpu_id_to_ctx");
+ printk(KERN_WARNING "LTTng: Cannot add context lttng_add_cpu_id_to_ctx");
}
ret = lttng_add_interruptible_to_ctx(<tng_static_ctx);
if (ret) {
- printk(KERN_WARNING "Cannot add context lttng_add_interruptible_to_ctx");
+ printk(KERN_WARNING "LTTng: Cannot add context lttng_add_interruptible_to_ctx");
}
ret = lttng_add_need_reschedule_to_ctx(<tng_static_ctx);
if (ret) {
- printk(KERN_WARNING "Cannot add context lttng_add_need_reschedule_to_ctx");
+ printk(KERN_WARNING "LTTng: Cannot add context lttng_add_need_reschedule_to_ctx");
}
ret = lttng_add_preemptible_to_ctx(<tng_static_ctx);
if (ret && ret != -ENOSYS) {
- printk(KERN_WARNING "Cannot add context lttng_add_preemptible_to_ctx");
+ printk(KERN_WARNING "LTTng: Cannot add context lttng_add_preemptible_to_ctx");
}
ret = lttng_add_migratable_to_ctx(<tng_static_ctx);
if (ret && ret != -ENOSYS) {
- printk(KERN_WARNING "Cannot add context lttng_add_migratable_to_ctx");
+ printk(KERN_WARNING "LTTng: Cannot add context lttng_add_migratable_to_ctx");
}
ret = lttng_add_cgroup_ns_to_ctx(<tng_static_ctx);
if (ret && ret != -ENOSYS) {
- printk(KERN_WARNING "Cannot add context lttng_add_cgroup_ns_to_ctx");
+ printk(KERN_WARNING "LTTng: Cannot add context lttng_add_cgroup_ns_to_ctx");
}
ret = lttng_add_ipc_ns_to_ctx(<tng_static_ctx);
if (ret && ret != -ENOSYS) {
- printk(KERN_WARNING "Cannot add context lttng_add_ipc_ns_to_ctx");
+ printk(KERN_WARNING "LTTng: Cannot add context lttng_add_ipc_ns_to_ctx");
}
ret = lttng_add_mnt_ns_to_ctx(<tng_static_ctx);
if (ret && ret != -ENOSYS) {
- printk(KERN_WARNING "Cannot add context lttng_add_mnt_ns_to_ctx");
+ printk(KERN_WARNING "LTTng: Cannot add context lttng_add_mnt_ns_to_ctx");
}
ret = lttng_add_net_ns_to_ctx(<tng_static_ctx);
if (ret && ret != -ENOSYS) {
- printk(KERN_WARNING "Cannot add context lttng_add_net_ns_to_ctx");
+ printk(KERN_WARNING "LTTng: Cannot add context lttng_add_net_ns_to_ctx");
}
ret = lttng_add_pid_ns_to_ctx(<tng_static_ctx);
if (ret && ret != -ENOSYS) {
- printk(KERN_WARNING "Cannot add context lttng_add_pid_ns_to_ctx");
+ printk(KERN_WARNING "LTTng: Cannot add context lttng_add_pid_ns_to_ctx");
}
ret = lttng_add_user_ns_to_ctx(<tng_static_ctx);
if (ret && ret != -ENOSYS) {
- printk(KERN_WARNING "Cannot add context lttng_add_user_ns_to_ctx");
+ printk(KERN_WARNING "LTTng: Cannot add context lttng_add_user_ns_to_ctx");
}
ret = lttng_add_uts_ns_to_ctx(<tng_static_ctx);
if (ret && ret != -ENOSYS) {
- printk(KERN_WARNING "Cannot add context lttng_add_uts_ns_to_ctx");
+ printk(KERN_WARNING "LTTng: Cannot add context lttng_add_uts_ns_to_ctx");
}
ret = lttng_add_time_ns_to_ctx(<tng_static_ctx);
if (ret && ret != -ENOSYS) {
- printk(KERN_WARNING "Cannot add context lttng_add_time_ns_to_ctx");
+ printk(KERN_WARNING "LTTng: Cannot add context lttng_add_time_ns_to_ctx");
}
/* TODO: perf counters for filtering */
return 0;
goto active; /* Refuse to add channel to active session */
transport = lttng_transport_find(transport_name);
if (!transport) {
- printk(KERN_WARNING "LTTng transport %s not found\n",
+ printk(KERN_WARNING "LTTng: transport %s not found\n",
transport_name);
goto notransport;
}
if (!try_module_get(transport->owner)) {
- printk(KERN_WARNING "LTT : Can't lock transport module.\n");
+ printk(KERN_WARNING "LTTng: Can't lock transport module.\n");
goto notransport;
}
chan = kzalloc(sizeof(struct lttng_channel), GFP_KERNEL);
NULL, NULL, desc,
LTTNG_KERNEL_TRACEPOINT);
if (!event) {
- printk(KERN_INFO "Unable to create event %s\n",
+ printk(KERN_INFO "LTTng: Unable to create event %s\n",
probe_desc->event_desc[i]->name);
}
}
start_pc = &bytecode->data[0]; \
for (pc = next_pc = start_pc; pc - start_pc < bytecode->len; \
pc = next_pc) { \
- dbg_printk("Executing op %s (%u)\n", \
+ dbg_printk("LTTng: Executing op %s (%u)\n", \
lttng_filter_print_op((unsigned int) *(filter_opcode_t *) pc), \
(unsigned int) *(filter_opcode_t *) pc); \
switch (*(filter_opcode_t *) pc) {
}
case atype_array_nestable:
if (!lttng_is_bytewise_integer(field->type.u.array_nestable.elem_type)) {
- printk(KERN_WARNING "Array nesting only supports integer types.\n");
+ printk(KERN_WARNING "LTTng: filter: Array nesting only supports integer types.\n");
return -EINVAL;
}
if (field->type.u.array_nestable.elem_type->u.integer.encoding == lttng_encode_none) {
- printk(KERN_WARNING "Only string arrays are supported for contexts.\n");
+ printk(KERN_WARNING "LTTng: filter: Only string arrays are supported for contexts.\n");
return -EINVAL;
}
ptr->object_type = OBJECT_TYPE_STRING;
break;
case atype_sequence_nestable:
if (!lttng_is_bytewise_integer(field->type.u.sequence_nestable.elem_type)) {
- printk(KERN_WARNING "Sequence nesting only supports integer types.\n");
+ printk(KERN_WARNING "LTTng: filter: Sequence nesting only supports integer types.\n");
return -EINVAL;
}
if (field->type.u.sequence_nestable.elem_type->u.integer.encoding == lttng_encode_none) {
- printk(KERN_WARNING "Only string sequences are supported for contexts.\n");
+ printk(KERN_WARNING "LTTng: filter: Only string sequences are supported for contexts.\n");
return -EINVAL;
}
ptr->object_type = OBJECT_TYPE_STRING;
ptr->ptr = v.str;
break;
case atype_struct_nestable:
- printk(KERN_WARNING "Structure type cannot be loaded.\n");
+ printk(KERN_WARNING "LTTng: filter: Structure type cannot be loaded.\n");
return -EINVAL;
case atype_variant_nestable:
- printk(KERN_WARNING "Variant type cannot be loaded.\n");
+ printk(KERN_WARNING "LTTng: filter: Variant type cannot be loaded.\n");
return -EINVAL;
default:
- printk(KERN_WARNING "Unknown type: %d", (int) field->type.atype);
+ printk(KERN_WARNING "LTTng: filter: Unknown type: %d", (int) field->type.atype);
return -EINVAL;
}
return 0;
break;
}
case OBJECT_TYPE_STRUCT:
- printk(KERN_WARNING "Nested structures are not supported yet.\n");
+ printk(KERN_WARNING "LTTng: filter: Nested structures are not supported yet.\n");
ret = -EINVAL;
goto end;
case OBJECT_TYPE_VARIANT:
default:
- printk(KERN_WARNING "Unexpected get index type %d",
+ printk(KERN_WARNING "LTTng: filter: Unexpected get index type %d",
(int) stack_top->u.ptr.object_type);
ret = -EINVAL;
goto end;
case OBJECT_TYPE_ARRAY:
case OBJECT_TYPE_STRUCT:
case OBJECT_TYPE_VARIANT:
- printk(KERN_WARNING "Sequences, arrays, struct and variant cannot be loaded (nested types).\n");
+ printk(KERN_WARNING "LTTng: filter: Sequences, arrays, struct and variant cannot be loaded (nested types).\n");
ret = -EINVAL;
goto end;
}
#ifdef INTERPRETER_USE_SWITCH
default:
#endif /* INTERPRETER_USE_SWITCH */
- printk(KERN_WARNING "unknown bytecode op %u\n",
+ printk(KERN_WARNING "LTTng: filter: unknown bytecode op %u\n",
(unsigned int) *(filter_opcode_t *) pc);
ret = -EINVAL;
goto end;
OP(FILTER_OP_MOD):
OP(FILTER_OP_PLUS):
OP(FILTER_OP_MINUS):
- printk(KERN_WARNING "unsupported bytecode op %u\n",
+ printk(KERN_WARNING "LTTng: filter: unsupported bytecode op %u\n",
(unsigned int) *(filter_opcode_t *) pc);
ret = -EINVAL;
goto end;
OP(FILTER_OP_LT):
OP(FILTER_OP_GE):
OP(FILTER_OP_LE):
- printk(KERN_WARNING "unsupported non-specialized bytecode op %u\n",
+ printk(KERN_WARNING "LTTng: filter: unsupported non-specialized bytecode op %u\n",
(unsigned int) *(filter_opcode_t *) pc);
ret = -EINVAL;
goto end;
OP(FILTER_OP_UNARY_PLUS):
OP(FILTER_OP_UNARY_MINUS):
OP(FILTER_OP_UNARY_NOT):
- printk(KERN_WARNING "unsupported non-specialized bytecode op %u\n",
+ printk(KERN_WARNING "LTTng: filter: unsupported non-specialized bytecode op %u\n",
(unsigned int) *(filter_opcode_t *) pc);
ret = -EINVAL;
goto end;
/* cast */
OP(FILTER_OP_CAST_TO_S64):
- printk(KERN_WARNING "unsupported non-specialized bytecode op %u\n",
+ printk(KERN_WARNING "LTTng: filter: unsupported non-specialized bytecode op %u\n",
(unsigned int) *(filter_opcode_t *) pc);
ret = -EINVAL;
goto end;
dbg_printk("op get symbol\n");
switch (estack_ax(stack, top)->u.ptr.type) {
case LOAD_OBJECT:
- printk(KERN_WARNING "Nested fields not implemented yet.\n");
+ printk(KERN_WARNING "LTTng: filter: Nested fields not implemented yet.\n");
ret = -EINVAL;
goto end;
case LOAD_ROOT_CONTEXT:
insn->op = FILTER_OP_LOAD_FIELD_U64;
break;
case OBJECT_TYPE_DOUBLE:
- printk(KERN_WARNING "Double type unsupported\n\n");
+ printk(KERN_WARNING "LTTng: filter: Double type unsupported\n\n");
ret = -EINVAL;
goto end;
case OBJECT_TYPE_STRING:
case OBJECT_TYPE_ARRAY:
case OBJECT_TYPE_STRUCT:
case OBJECT_TYPE_VARIANT:
- printk(KERN_WARNING "Sequences, arrays, struct and variant cannot be loaded (nested types).\n");
+ printk(KERN_WARNING "LTTng: filter: Sequences, arrays, struct and variant cannot be loaded (nested types).\n");
ret = -EINVAL;
goto end;
}
/* Only generated by the specialize phase. */
case OBJECT_TYPE_VARIANT: /* Fall-through */
default:
- printk(KERN_WARNING "Unexpected get index type %d",
+ printk(KERN_WARNING "LTTng: filter: Unexpected get index type %d",
(int) stack_top->load.object_type);
ret = -EINVAL;
goto end;
case LOAD_ROOT_CONTEXT:
case LOAD_ROOT_APP_CONTEXT:
case LOAD_ROOT_PAYLOAD:
- printk(KERN_WARNING "Index lookup for root field not implemented yet.\n");
+ printk(KERN_WARNING "LTTng: filter: Index lookup for root field not implemented yet.\n");
ret = -EINVAL;
goto end;
}
}
case atype_array_nestable:
if (!lttng_is_bytewise_integer(field->type.u.array_nestable.elem_type)) {
- printk(KERN_WARNING "Array nesting only supports integer types.\n");
+ printk(KERN_WARNING "LTTng: filter Array nesting only supports integer types.\n");
return -EINVAL;
}
if (is_context) {
break;
case atype_sequence_nestable:
if (!lttng_is_bytewise_integer(field->type.u.sequence_nestable.elem_type)) {
- printk(KERN_WARNING "Sequence nesting only supports integer types.\n");
+ printk(KERN_WARNING "LTTng: filter Sequence nesting only supports integer types.\n");
return -EINVAL;
}
if (is_context) {
load->object_type = OBJECT_TYPE_STRING;
break;
case atype_struct_nestable:
- printk(KERN_WARNING "Structure type cannot be loaded.\n");
+ printk(KERN_WARNING "LTTng: filter: Structure type cannot be loaded.\n");
return -EINVAL;
case atype_variant_nestable:
- printk(KERN_WARNING "Variant type cannot be loaded.\n");
+ printk(KERN_WARNING "LTTng: filter: Variant type cannot be loaded.\n");
return -EINVAL;
default:
- printk(KERN_WARNING "Unknown type: %d", (int) field->type.atype);
+ printk(KERN_WARNING "LTTng: filter: Unknown type: %d", (int) field->type.atype);
return -EINVAL;
}
return 0;
switch (*(filter_opcode_t *) pc) {
case FILTER_OP_UNKNOWN:
default:
- printk(KERN_WARNING "unknown bytecode op %u\n",
+ printk(KERN_WARNING "LTTng: filter: unknown bytecode op %u\n",
(unsigned int) *(filter_opcode_t *) pc);
ret = -EINVAL;
goto end;
case FILTER_OP_MOD:
case FILTER_OP_PLUS:
case FILTER_OP_MINUS:
- printk(KERN_WARNING "unsupported bytecode op %u\n",
+ printk(KERN_WARNING "LTTng: filter: unsupported bytecode op %u\n",
(unsigned int) *(filter_opcode_t *) pc);
ret = -EINVAL;
goto end;
switch(vstack_ax(stack)->type) {
default:
- printk(KERN_WARNING "unknown register type\n");
+ printk(KERN_WARNING "LTTng: filter: unknown register type\n");
ret = -EINVAL;
goto end;
switch(vstack_ax(stack)->type) {
default:
- printk(KERN_WARNING "unknown register type\n");
+ printk(KERN_WARNING "LTTng: filter: unknown register type\n");
ret = -EINVAL;
goto end;
switch(vstack_ax(stack)->type) {
default:
- printk(KERN_WARNING "unknown register type\n");
+ printk(KERN_WARNING "LTTng: filter: unknown register type\n");
ret = -EINVAL;
goto end;
case REG_STAR_GLOB_STRING:
- printk(KERN_WARNING "invalid register type for > binary operator\n");
+ printk(KERN_WARNING "LTTng: filter: invalid register type for '>' binary operator\n");
ret = -EINVAL;
goto end;
case REG_STRING:
switch(vstack_ax(stack)->type) {
default:
- printk(KERN_WARNING "unknown register type\n");
+ printk(KERN_WARNING "LTTng: filter: unknown register type\n");
ret = -EINVAL;
goto end;
case REG_STAR_GLOB_STRING:
- printk(KERN_WARNING "invalid register type for < binary operator\n");
+ printk(KERN_WARNING "LTTng: filter: invalid register type for '<' binary operator\n");
ret = -EINVAL;
goto end;
case REG_STRING:
switch(vstack_ax(stack)->type) {
default:
- printk(KERN_WARNING "unknown register type\n");
+ printk(KERN_WARNING "LTTng: filter: unknown register type\n");
ret = -EINVAL;
goto end;
case REG_STAR_GLOB_STRING:
- printk(KERN_WARNING "invalid register type for >= binary operator\n");
+ printk(KERN_WARNING "LTTng: filter: invalid register type for '>=' binary operator\n");
ret = -EINVAL;
goto end;
case REG_STRING:
switch(vstack_ax(stack)->type) {
default:
- printk(KERN_WARNING "unknown register type\n");
+ printk(KERN_WARNING "LTTng: filter: unknown register type\n");
ret = -EINVAL;
goto end;
case REG_STAR_GLOB_STRING:
- printk(KERN_WARNING "invalid register type for <= binary operator\n");
+ printk(KERN_WARNING "LTTng: filter: invalid register type for '<=' binary operator\n");
ret = -EINVAL;
goto end;
case REG_STRING:
switch(vstack_ax(stack)->type) {
default:
- printk(KERN_WARNING "unknown register type\n");
+ printk(KERN_WARNING "LTTng: filter: unknown register type\n");
ret = -EINVAL;
goto end;
switch(vstack_ax(stack)->type) {
default:
- printk(KERN_WARNING "unknown register type\n");
+ printk(KERN_WARNING "LTTng: filter: unknown register type\n");
ret = -EINVAL;
goto end;
switch(vstack_ax(stack)->type) {
default:
- printk(KERN_WARNING "unknown register type\n");
+ printk(KERN_WARNING "LTTng: filter: unknown register type\n");
ret = -EINVAL;
goto end;
/* load field ref */
case FILTER_OP_LOAD_FIELD_REF:
{
- printk(KERN_WARNING "Unknown field ref type\n");
+ printk(KERN_WARNING "LTTng: filter: Unknown field ref type\n");
ret = -EINVAL;
goto end;
}
/* get context ref */
case FILTER_OP_GET_CONTEXT_REF:
{
- printk(KERN_WARNING "Unknown get context ref type\n");
+ printk(KERN_WARNING "LTTng: filter: Unknown get context ref type\n");
ret = -EINVAL;
goto end;
}
switch (vstack_ax(stack)->type) {
default:
- printk(KERN_WARNING "unknown register type\n");
+ printk(KERN_WARNING "LTTng: filter: unknown register type\n");
ret = -EINVAL;
goto end;
case REG_STRING:
case REG_STAR_GLOB_STRING:
- printk(KERN_WARNING "Cast op can only be applied to numeric or floating point registers\n");
+ printk(KERN_WARNING "LTTng: filter: Cast op can only be applied to numeric or floating point registers\n");
ret = -EINVAL;
goto end;
case REG_S64:
dbg_printk("op get symbol\n");
switch (vstack_ax(stack)->load.type) {
case LOAD_OBJECT:
- printk(KERN_WARNING "Nested fields not implemented yet.\n");
+ printk(KERN_WARNING "LTTng: filter: Nested fields not implemented yet.\n");
ret = -EINVAL;
goto end;
case LOAD_ROOT_CONTEXT:
target_pc, hash);
kfree(mp_node);
if (merge_points_compare(stack, &lookup_node->stack)) {
- printk(KERN_WARNING "Merge points differ for offset %lu\n",
+ printk(KERN_WARNING "LTTng: filter: Merge points differ for offset %lu\n",
target_pc);
return -EINVAL;
}
return 1;
error_empty:
- printk(KERN_WARNING "empty stack for '%s' binary operator\n", str);
+ printk(KERN_WARNING "LTTng: filter: empty stack for '%s' binary operator\n", str);
return -EINVAL;
error_mismatch:
- printk(KERN_WARNING "type mismatch for '%s' binary operator\n", str);
+ printk(KERN_WARNING "LTTng: filter: type mismatch for '%s' binary operator\n", str);
return -EINVAL;
error_type:
- printk(KERN_WARNING "unknown type for '%s' binary operator\n", str);
+ printk(KERN_WARNING "LTTng: filter: unknown type for '%s' binary operator\n", str);
return -EINVAL;
}
return 1;
error_empty:
- printk(KERN_WARNING "empty stack for '%s' binary operator\n", str);
+ printk(KERN_WARNING "LTTng: filter: empty stack for '%s' binary operator\n", str);
return -EINVAL;
error_type:
- printk(KERN_WARNING "unknown type for '%s' binary operator\n", str);
+ printk(KERN_WARNING "LTTng: filter: unknown type for '%s' binary operator\n", str);
return -EINVAL;
}
case FILTER_OP_UNKNOWN:
default:
{
- printk(KERN_WARNING "unknown bytecode op %u\n",
+ printk(KERN_WARNING "LTTng: filter: unknown bytecode op %u\n",
(unsigned int) *(filter_opcode_t *) pc);
ret = -EINVAL;
break;
case FILTER_OP_UNARY_MINUS_DOUBLE:
case FILTER_OP_UNARY_NOT_DOUBLE:
{
- printk(KERN_WARNING "unsupported bytecode op %u\n",
+ printk(KERN_WARNING "LTTng: filter: unsupported bytecode op %u\n",
(unsigned int) *(filter_opcode_t *) pc);
ret = -EINVAL;
break;
/* load field ref */
case FILTER_OP_LOAD_FIELD_REF:
{
- printk(KERN_WARNING "Unknown field ref type\n");
+ printk(KERN_WARNING "LTTng: filter: Unknown field ref type\n");
ret = -EINVAL;
break;
}
/* get context ref */
case FILTER_OP_GET_CONTEXT_REF:
{
- printk(KERN_WARNING "Unknown field ref type\n");
+ printk(KERN_WARNING "LTTng: filter: Unknown field ref type\n");
ret = -EINVAL;
break;
}
}
case FILTER_OP_GET_SYMBOL_FIELD:
- printk(KERN_WARNING "Unexpected get symbol field\n");
+ printk(KERN_WARNING "LTTng: filter: Unexpected get symbol field\n");
ret = -EINVAL;
break;
case FILTER_OP_UNKNOWN:
default:
{
- printk(KERN_WARNING "unknown bytecode op %u\n",
+ printk(KERN_WARNING "LTTng: filter: unknown bytecode op %u\n",
(unsigned int) *(filter_opcode_t *) pc);
ret = -EINVAL;
goto end;
case FILTER_OP_CAST_DOUBLE_TO_S64:
case FILTER_OP_GET_CONTEXT_REF_DOUBLE:
{
- printk(KERN_WARNING "unsupported bytecode op %u\n",
+ printk(KERN_WARNING "LTTng: filter: unsupported bytecode op %u\n",
(unsigned int) *(filter_opcode_t *) pc);
ret = -EINVAL;
goto end;
case FILTER_OP_LE_STRING:
{
if (!vstack_ax(stack) || !vstack_bx(stack)) {
- printk(KERN_WARNING "Empty stack\n");
+ printk(KERN_WARNING "LTTng: filter: Empty stack\n");
ret = -EINVAL;
goto end;
}
if (vstack_ax(stack)->type != REG_STRING
|| vstack_bx(stack)->type != REG_STRING) {
- printk(KERN_WARNING "Unexpected register type for string comparator\n");
+ printk(KERN_WARNING "LTTng: filter: Unexpected register type for string comparator\n");
ret = -EINVAL;
goto end;
}
case FILTER_OP_NE_STAR_GLOB_STRING:
{
if (!vstack_ax(stack) || !vstack_bx(stack)) {
- printk(KERN_WARNING "Empty stack\n");
+ printk(KERN_WARNING "LTTng: filter: Empty stack\n");
ret = -EINVAL;
goto end;
}
if (vstack_ax(stack)->type != REG_STAR_GLOB_STRING
&& vstack_bx(stack)->type != REG_STAR_GLOB_STRING) {
- printk(KERN_WARNING "Unexpected register type for globbing pattern comparator\n");
+ printk(KERN_WARNING "LTTng: filter: Unexpected register type for globbing pattern comparator\n");
ret = -EINVAL;
goto end;
}
case FILTER_OP_LE_S64:
{
if (!vstack_ax(stack) || !vstack_bx(stack)) {
- printk(KERN_WARNING "Empty stack\n");
+ printk(KERN_WARNING "LTTng: filter: Empty stack\n");
ret = -EINVAL;
goto end;
}
if (vstack_ax(stack)->type != REG_S64
|| vstack_bx(stack)->type != REG_S64) {
- printk(KERN_WARNING "Unexpected register type for s64 comparator\n");
+ printk(KERN_WARNING "LTTng: filter: Unexpected register type for s64 comparator\n");
ret = -EINVAL;
goto end;
}
case FILTER_OP_UNARY_NOT:
{
if (!vstack_ax(stack)) {
- printk(KERN_WARNING "Empty stack\n");
+ printk(KERN_WARNING "LTTng: filter: Empty stack\n");
ret = -EINVAL;
goto end;
}
switch (vstack_ax(stack)->type) {
default:
case REG_DOUBLE:
- printk(KERN_WARNING "unknown register type\n");
+ printk(KERN_WARNING "LTTng: filter: unknown register type\n");
ret = -EINVAL;
goto end;
case REG_STRING:
case REG_STAR_GLOB_STRING:
- printk(KERN_WARNING "Unary op can only be applied to numeric or floating point registers\n");
+ printk(KERN_WARNING "LTTng: filter: Unary op can only be applied to numeric or floating point registers\n");
ret = -EINVAL;
goto end;
case REG_S64:
case FILTER_OP_UNARY_BIT_NOT:
{
if (!vstack_ax(stack)) {
- printk(KERN_WARNING "Empty stack\n");
+ printk(KERN_WARNING "LTTng: filter: Empty stack\n");
ret = -EINVAL;
goto end;
}
switch (vstack_ax(stack)->type) {
default:
- printk(KERN_WARNING "unknown register type\n");
+ printk(KERN_WARNING "LTTng: filter: unknown register type\n");
ret = -EINVAL;
goto end;
case REG_STRING:
case REG_STAR_GLOB_STRING:
case REG_DOUBLE:
- printk(KERN_WARNING "Unary bitwise op can only be applied to numeric registers\n");
+ printk(KERN_WARNING "LTTng: filter: Unary bitwise op can only be applied to numeric registers\n");
ret = -EINVAL;
goto end;
case REG_S64:
case FILTER_OP_UNARY_NOT_S64:
{
if (!vstack_ax(stack)) {
- printk(KERN_WARNING "Empty stack\n");
+ printk(KERN_WARNING "LTTng: filter: Empty stack\n");
ret = -EINVAL;
goto end;
}
if (vstack_ax(stack)->type != REG_S64) {
- printk(KERN_WARNING "Invalid register type\n");
+ printk(KERN_WARNING "LTTng: filter: Invalid register type\n");
ret = -EINVAL;
goto end;
}
struct logical_op *insn = (struct logical_op *) pc;
if (!vstack_ax(stack)) {
- printk(KERN_WARNING "Empty stack\n");
+ printk(KERN_WARNING "LTTng: filter: Empty stack\n");
ret = -EINVAL;
goto end;
}
if (vstack_ax(stack)->type != REG_S64) {
- printk(KERN_WARNING "Logical comparator expects S64 register\n");
+ printk(KERN_WARNING "LTTng: filter: Logical comparator expects S64 register\n");
ret = -EINVAL;
goto end;
}
dbg_printk("Validate jumping to bytecode offset %u\n",
(unsigned int) insn->skip_offset);
if (unlikely(start_pc + insn->skip_offset <= pc)) {
- printk(KERN_WARNING "Loops are not allowed in bytecode\n");
+ printk(KERN_WARNING "LTTng: filter: Loops are not allowed in bytecode\n");
ret = -EINVAL;
goto end;
}
/* load field ref */
case FILTER_OP_LOAD_FIELD_REF:
{
- printk(KERN_WARNING "Unknown field ref type\n");
+ printk(KERN_WARNING "LTTng: filter: Unknown field ref type\n");
ret = -EINVAL;
goto end;
}
struct cast_op *insn = (struct cast_op *) pc;
if (!vstack_ax(stack)) {
- printk(KERN_WARNING "Empty stack\n");
+ printk(KERN_WARNING "LTTng: filter: Empty stack\n");
ret = -EINVAL;
goto end;
}
switch (vstack_ax(stack)->type) {
default:
case REG_DOUBLE:
- printk(KERN_WARNING "unknown register type\n");
+ printk(KERN_WARNING "LTTng: filter: unknown register type\n");
ret = -EINVAL;
goto end;
case REG_STRING:
case REG_STAR_GLOB_STRING:
- printk(KERN_WARNING "Cast op can only be applied to numeric or floating point registers\n");
+ printk(KERN_WARNING "LTTng: filter: Cast op can only be applied to numeric or floating point registers\n");
ret = -EINVAL;
goto end;
case REG_S64:
}
if (insn->op == FILTER_OP_CAST_DOUBLE_TO_S64) {
if (vstack_ax(stack)->type != REG_DOUBLE) {
- printk(KERN_WARNING "Cast expects double\n");
+ printk(KERN_WARNING "LTTng: filter: Cast expects double\n");
ret = -EINVAL;
goto end;
}
/* get context ref */
case FILTER_OP_GET_CONTEXT_REF:
{
- printk(KERN_WARNING "Unknown get context ref type\n");
+ printk(KERN_WARNING "LTTng: filter: Unknown get context ref type\n");
ret = -EINVAL;
goto end;
}
dbg_printk("Filter: validate merge point at offset %lu\n",
target_pc);
if (merge_points_compare(stack, &mp_node->stack)) {
- printk(KERN_WARNING "Merge points differ for offset %lu\n",
+ printk(KERN_WARNING "LTTng: filter: Merge points differ for offset %lu\n",
target_pc);
return -EINVAL;
}
case FILTER_OP_UNKNOWN:
default:
{
- printk(KERN_WARNING "unknown bytecode op %u\n",
+ printk(KERN_WARNING "LTTng: filter: unknown bytecode op %u\n",
(unsigned int) *(filter_opcode_t *) pc);
ret = -EINVAL;
goto end;
case FILTER_OP_RETURN:
{
if (!vstack_ax(stack)) {
- printk(KERN_WARNING "Empty stack\n");
+ printk(KERN_WARNING "LTTng: filter: Empty stack\n");
ret = -EINVAL;
goto end;
}
case REG_TYPE_UNKNOWN:
break;
default:
- printk(KERN_WARNING "Unexpected register type %d at end of bytecode\n",
+ printk(KERN_WARNING "LTTng: filter: Unexpected register type %d at end of bytecode\n",
(int) vstack_ax(stack)->type);
ret = -EINVAL;
goto end;
case FILTER_OP_RETURN_S64:
{
if (!vstack_ax(stack)) {
- printk(KERN_WARNING "Empty stack\n");
+ printk(KERN_WARNING "LTTng: filter: Empty stack\n");
ret = -EINVAL;
goto end;
}
break;
default:
case REG_TYPE_UNKNOWN:
- printk(KERN_WARNING "Unexpected register type %d at end of bytecode\n",
+ printk(KERN_WARNING "LTTng: filter: Unexpected register type %d at end of bytecode\n",
(int) vstack_ax(stack)->type);
ret = -EINVAL;
goto end;
case FILTER_OP_LOAD_DOUBLE:
case FILTER_OP_CAST_DOUBLE_TO_S64:
{
- printk(KERN_WARNING "unsupported bytecode op %u\n",
+ printk(KERN_WARNING "LTTng: filter: unsupported bytecode op %u\n",
(unsigned int) *(filter_opcode_t *) pc);
ret = -EINVAL;
goto end;
goto end;
}
if (!vstack_ax(stack)) {
- printk(KERN_WARNING "Empty stack\n");
+ printk(KERN_WARNING "LTTng: filter: Empty stack\n");
ret = -EINVAL;
goto end;
}
case REG_TYPE_UNKNOWN:
break;
default:
- printk(KERN_WARNING "Unexpected register type %d for operation\n",
+ printk(KERN_WARNING "LTTng: filter: Unexpected register type %d for operation\n",
(int) vstack_ax(stack)->type);
ret = -EINVAL;
goto end;
{
/* Pop 1, push 1 */
if (!vstack_ax(stack)) {
- printk(KERN_WARNING "Empty stack\n\n");
+ printk(KERN_WARNING "LTTng: filter: Empty stack\n\n");
ret = -EINVAL;
goto end;
}
case REG_TYPE_UNKNOWN:
break;
default:
- printk(KERN_WARNING "Unexpected register type %d for operation\n",
+ printk(KERN_WARNING "LTTng: filter: Unexpected register type %d for operation\n",
(int) vstack_ax(stack)->type);
ret = -EINVAL;
goto end;
{
/* Pop 1, push 1 */
if (!vstack_ax(stack)) {
- printk(KERN_WARNING "Empty stack\n\n");
+ printk(KERN_WARNING "LTTng: filter: Empty stack\n\n");
ret = -EINVAL;
goto end;
}
case REG_S64:
break;
default:
- printk(KERN_WARNING "Unexpected register type %d for operation\n",
+ printk(KERN_WARNING "LTTng: filter: Unexpected register type %d for operation\n",
(int) vstack_ax(stack)->type);
ret = -EINVAL;
goto end;
{
/* Pop 1, push 1 */
if (!vstack_ax(stack)) {
- printk(KERN_WARNING "Empty stack\n\n");
+ printk(KERN_WARNING "LTTng: filter: Empty stack\n\n");
ret = -EINVAL;
goto end;
}
case REG_TYPE_UNKNOWN:
break;
default:
- printk(KERN_WARNING "Unexpected register type %d for operation\n",
+ printk(KERN_WARNING "LTTng: filter: Unexpected register type %d for operation\n",
(int) vstack_ax(stack)->type);
ret = -EINVAL;
goto end;
{
/* Pop 1, push 1 */
if (!vstack_ax(stack)) {
- printk(KERN_WARNING "Empty stack\n");
+ printk(KERN_WARNING "LTTng: filter: Empty stack\n");
ret = -EINVAL;
goto end;
}
break;
case REG_DOUBLE:
default:
- printk(KERN_WARNING "Unexpected register type %d for operation\n",
+ printk(KERN_WARNING "LTTng: filter: Unexpected register type %d for operation\n",
(int) vstack_ax(stack)->type);
ret = -EINVAL;
goto end;
}
if (!vstack_ax(stack)) {
- printk(KERN_WARNING "Empty stack\n\n");
+ printk(KERN_WARNING "LTTng: filter: Empty stack\n\n");
ret = -EINVAL;
goto end;
}
case REG_S64:
break;
default:
- printk(KERN_WARNING "Incorrect register type %d for operation\n",
+ printk(KERN_WARNING "LTTng: filter: Incorrect register type %d for operation\n",
(int) vstack_ax(stack)->type);
ret = -EINVAL;
goto end;
/* load field ref */
case FILTER_OP_LOAD_FIELD_REF:
{
- printk(KERN_WARNING "Unknown field ref type\n");
+ printk(KERN_WARNING "LTTng: filter: Unknown field ref type\n");
ret = -EINVAL;
goto end;
}
/* get context ref */
case FILTER_OP_GET_CONTEXT_REF:
{
- printk(KERN_WARNING "Unknown get context ref type\n");
+ printk(KERN_WARNING "LTTng: filter: Unknown get context ref type\n");
ret = -EINVAL;
goto end;
}
{
/* Pop 1, push 1 */
if (!vstack_ax(stack)) {
- printk(KERN_WARNING "Empty stack\n");
+ printk(KERN_WARNING "LTTng: filter: Empty stack\n");
ret = -EINVAL;
goto end;
}
case REG_TYPE_UNKNOWN:
break;
default:
- printk(KERN_WARNING "Incorrect register type %d for cast\n",
+ printk(KERN_WARNING "LTTng: filter: Incorrect register type %d for cast\n",
(int) vstack_ax(stack)->type);
ret = -EINVAL;
goto end;
{
/* Pop 1, push 1 */
if (!vstack_ax(stack)) {
- printk(KERN_WARNING "Empty stack\n\n");
+ printk(KERN_WARNING "LTTng: filter: Empty stack\n\n");
ret = -EINVAL;
goto end;
}
if (vstack_ax(stack)->type != REG_PTR) {
- printk(KERN_WARNING "Expecting pointer on top of stack\n\n");
+ printk(KERN_WARNING "LTTng: filter: Expecting pointer on top of stack\n\n");
ret = -EINVAL;
goto end;
}
{
/* Pop 1, push 1 */
if (!vstack_ax(stack)) {
- printk(KERN_WARNING "Empty stack\n\n");
+ printk(KERN_WARNING "LTTng: filter: Empty stack\n\n");
ret = -EINVAL;
goto end;
}
if (vstack_ax(stack)->type != REG_PTR) {
- printk(KERN_WARNING "Expecting pointer on top of stack\n\n");
+ printk(KERN_WARNING "LTTng: filter: Expecting pointer on top of stack\n\n");
ret = -EINVAL;
goto end;
}
{
/* Pop 1, push 1 */
if (!vstack_ax(stack)) {
- printk(KERN_WARNING "Empty stack\n\n");
+ printk(KERN_WARNING "LTTng: filter: Empty stack\n\n");
ret = -EINVAL;
goto end;
}
if (vstack_ax(stack)->type != REG_PTR) {
- printk(KERN_WARNING "Expecting pointer on top of stack\n\n");
+ printk(KERN_WARNING "LTTng: filter: Expecting pointer on top of stack\n\n");
ret = -EINVAL;
goto end;
}
{
/* Pop 1, push 1 */
if (!vstack_ax(stack)) {
- printk(KERN_WARNING "Empty stack\n\n");
+ printk(KERN_WARNING "LTTng: filter: Empty stack\n\n");
ret = -EINVAL;
goto end;
}
if (vstack_ax(stack)->type != REG_PTR) {
- printk(KERN_WARNING "Expecting pointer on top of stack\n\n");
+ printk(KERN_WARNING "LTTng: filter: Expecting pointer on top of stack\n\n");
ret = -EINVAL;
goto end;
}
{
/* Pop 1, push 1 */
if (!vstack_ax(stack)) {
- printk(KERN_WARNING "Empty stack\n\n");
+ printk(KERN_WARNING "LTTng: filter: Empty stack\n\n");
ret = -EINVAL;
goto end;
}
if (vstack_ax(stack)->type != REG_PTR) {
- printk(KERN_WARNING "Expecting pointer on top of stack\n\n");
+ printk(KERN_WARNING "LTTng: filter: Expecting pointer on top of stack\n\n");
ret = -EINVAL;
goto end;
}
{
/* Pop 1, push 1 */
if (!vstack_ax(stack)) {
- printk(KERN_WARNING "Empty stack\n\n");
+ printk(KERN_WARNING "LTTng: filter: Empty stack\n\n");
ret = -EINVAL;
goto end;
}
if (vstack_ax(stack)->type != REG_PTR) {
- printk(KERN_WARNING "Expecting pointer on top of stack\n\n");
+ printk(KERN_WARNING "LTTng: filter: Expecting pointer on top of stack\n\n");
ret = -EINVAL;
goto end;
}
{
/* Pop 1, push 1 */
if (!vstack_ax(stack)) {
- printk(KERN_WARNING "Empty stack\n\n");
+ printk(KERN_WARNING "LTTng: filter: Empty stack\n\n");
ret = -EINVAL;
goto end;
}
if (vstack_ax(stack)->type != REG_PTR) {
- printk(KERN_WARNING "Expecting pointer on top of stack\n\n");
+ printk(KERN_WARNING "LTTng: filter: Expecting pointer on top of stack\n\n");
ret = -EINVAL;
goto end;
}
mp_table = kzalloc(sizeof(*mp_table), GFP_KERNEL);
if (!mp_table) {
- printk(KERN_WARNING "Error allocating hash table for bytecode validation\n");
+ printk(KERN_WARNING "LTTng: filter: Error allocating hash table for bytecode validation\n");
return -ENOMEM;
}
start_pc = &bytecode->code[0];
ret = bytecode_validate_overflow(bytecode, start_pc, pc);
if (ret != 0) {
if (ret == -ERANGE)
- printk(KERN_WARNING "filter bytecode overflow\n");
+ printk(KERN_WARNING "LTTng: filter: filter bytecode overflow\n");
goto end;
}
dbg_printk("Validating op %s (%u)\n",
end:
if (delete_all_nodes(mp_table)) {
if (!ret) {
- printk(KERN_WARNING "Unexpected merge points\n");
+ printk(KERN_WARNING "LTTng: filter: Unexpected merge points\n");
ret = -EINVAL;
}
}
*/
return 0;
default:
- printk(KERN_WARNING "Unknown reloc op type %u\n", op->op);
+ printk(KERN_WARNING "LTTng: filter: Unknown reloc op type %u\n", op->op);
return -EINVAL;
}
return 0;
* using lttng_relay_transport.ops.
*/
if (!try_module_get(THIS_MODULE)) {
- printk(KERN_WARNING "LTT : Can't lock transport module.\n");
+ printk(KERN_WARNING "LTTng: Can't lock transport module.\n");
goto error;
}
chan->backend.priv_ops = <tng_relay_transport.ops;
* using lttng_relay_transport.ops.
*/
if (!try_module_get(THIS_MODULE)) {
- printk(KERN_WARNING "LTT : Can't lock transport module.\n");
+ printk(KERN_WARNING "LTTng: Can't lock transport module.\n");
goto error;
}
chan->backend.priv_ops = <tng_relay_transport.ops;
i++;
}
if (i < LTTNG_TP_MEMPOOL_NR_BUF_PER_CPU) {
- printk(KERN_WARNING "Leak detected in tp-mempool\n");
+ printk(KERN_WARNING "LTTng: Leak detected in tp-mempool\n");
}
}
free_percpu(pool);
lttng_hlist_for_each_entry(e, head, hlist) {
if (!strcmp(name, e->name)) {
printk(KERN_NOTICE
- "tracepoint %s busy\n", name);
+ "LTTng: tracepoint %s busy\n", name);
return ERR_PTR(-EEXIST); /* Already there */
}
}
*/
file = fcheck(fd);
if (file == NULL) {
- printk(KERN_WARNING "Cannot access file backing the fd(%d)\n", fd);
+ printk(KERN_WARNING "LTTng: Cannot access file backing the fd(%d)\n", fd);
inode = NULL;
goto error;
}
/* Grab a reference on the inode. */
inode = igrab(file->f_path.dentry->d_inode);
if (inode == NULL)
- printk(KERN_WARNING "Cannot grab a reference on the inode.\n");
+ printk(KERN_WARNING "LTTng: Cannot grab a reference on the inode.\n");
error:
rcu_read_unlock();
return inode;
uprobe_handler = kzalloc(sizeof(struct lttng_uprobe_handler), GFP_KERNEL);
if (!uprobe_handler) {
- printk(KERN_WARNING "Error allocating uprobe_uprobe_handlers");
+ printk(KERN_WARNING "LTTng: Error allocating uprobe_handler");
ret = -ENOMEM;
goto end;
}
ret = wrapper_uprobe_register(event->u.uprobe.inode,
uprobe_handler->offset, &uprobe_handler->up_consumer);
if (ret) {
- printk(KERN_WARNING "Error registering probe on inode %lu "
+ printk(KERN_WARNING "LTTng: Error registering probe on inode %lu "
"and offset 0x%llx\n", event->u.uprobe.inode->i_ino,
uprobe_handler->offset);
ret = -1;
inode = get_inode_from_fd(fd);
if (!inode) {
- printk(KERN_WARNING "Cannot get inode from fd\n");
+ printk(KERN_WARNING "LTTng: Cannot get inode from fd\n");
ret = -EBADF;
goto inode_error;
}
/* /dev/lttng-logger */
ret = misc_register(&logger_dev);
if (ret) {
- printk(KERN_ERR "Error creating LTTng logger device\n");
+ printk(KERN_ERR "LTTng: Error creating logger device\n");
goto error;
}
S_IRUGO | S_IWUGO, NULL,
<tng_logger_proc_ops, NULL);
if (!lttng_logger_dentry) {
- printk(KERN_ERR "Error creating LTTng logger proc file\n");
+ printk(KERN_ERR "LTTng: Error creating logger proc file\n");
ret = -ENOMEM;
goto error_proc;
}
if (kallsyms_lookup_name_sym)
return kallsyms_lookup_name_sym(name);
else {
- printk_once(KERN_WARNING "LTTng requires kallsyms_lookup_name\n");
+ printk_once(KERN_WARNING "LTTng: requires kallsyms_lookup_name\n");
return 0;
}
}