lttng-context-prio.o lttng-context-nice.o \
lttng-context-vpid.o lttng-context-tid.o \
lttng-context-vtid.o lttng-context-ppid.o \
- lttng-context-vppid.o lttng-calibrate.o \
+ lttng-context-vppid.o lttng-context-cpu-id.o \
+ lttng-calibrate.o \
lttng-context-hostname.o wrapper/random.o \
probes/lttng.o wrapper/trace-clock.o \
wrapper/page_alloc.o \
return lttng_add_procname_to_ctx(ctx);
case LTTNG_KERNEL_CONTEXT_HOSTNAME:
return lttng_add_hostname_to_ctx(ctx);
+ case LTTNG_KERNEL_CONTEXT_CPU_ID:
+ return lttng_add_cpu_id_to_ctx(ctx);
default:
return -EINVAL;
}
LTTNG_KERNEL_CONTEXT_PPID = 8,
LTTNG_KERNEL_CONTEXT_VPPID = 9,
LTTNG_KERNEL_CONTEXT_HOSTNAME = 10,
+ LTTNG_KERNEL_CONTEXT_CPU_ID = 11,
};
struct lttng_kernel_perf_counter_ctx {
if (ret) {
printk(KERN_WARNING "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");
+ }
/* TODO: perf counters for filtering */
return 0;
}
struct lttng_ctx_field *field);
void lttng_destroy_context(struct lttng_ctx *ctx);
int lttng_add_pid_to_ctx(struct lttng_ctx **ctx);
+int lttng_add_cpu_id_to_ctx(struct lttng_ctx **ctx);
int lttng_add_procname_to_ctx(struct lttng_ctx **ctx);
int lttng_add_prio_to_ctx(struct lttng_ctx **ctx);
int lttng_add_nice_to_ctx(struct lttng_ctx **ctx);