return -EFAULT;
switch (context_param.ctx) {
- case LTTNG_CONTEXT_PID:
+ case LTTNG_KERNEL_CONTEXT_PID:
return lttng_add_pid_to_ctx(ctx);
- case LTTNG_CONTEXT_PERF_COUNTER:
+ case LTTNG_KERNEL_CONTEXT_PERF_COUNTER:
return -ENOSYS;
default:
return -EINVAL;
uint32_t sublevel;
};
-enum lttng_context {
- LTTNG_CONTEXT_PID,
- LTTNG_CONTEXT_PERF_COUNTER,
+enum lttng_kernel_context_type {
+ LTTNG_KERNEL_CONTEXT_PID,
+ LTTNG_KERNEL_CONTEXT_PERF_COUNTER,
};
struct lttng_kernel_pid_ctx {
};
struct lttng_kernel_context {
- enum lttng_context ctx;
+ enum lttng_kernel_context_type ctx;
union {
struct lttng_kernel_pid_ctx pid;
struct lttng_kernel_perf_counter_ctx perf_counter;