#define LTTNG_SYM_NAME_LEN 128
enum lttng_kernel_instrumentation {
- LTTNG_KERNEL_TRACEPOINT,
- LTTNG_KERNEL_KPROBE,
- LTTNG_KERNEL_FUNCTION,
+ LTTNG_KERNEL_TRACEPOINT = 0,
+ LTTNG_KERNEL_KPROBE = 1,
+ LTTNG_KERNEL_FUNCTION = 2,
};
/*
};
enum lttng_kernel_context_type {
- LTTNG_KERNEL_CONTEXT_PID,
- LTTNG_KERNEL_CONTEXT_PERF_COUNTER,
- LTTNG_KERNEL_CONTEXT_COMM,
- LTTNG_KERNEL_CONTEXT_PRIO,
- LTTNG_KERNEL_CONTEXT_NICE,
- LTTNG_KERNEL_CONTEXT_VPID,
- LTTNG_KERNEL_CONTEXT_TID,
- LTTNG_KERNEL_CONTEXT_VTID,
- LTTNG_KERNEL_CONTEXT_PPID,
- LTTNG_KERNEL_CONTEXT_VPPID,
+ LTTNG_KERNEL_CONTEXT_PID = 0,
+ LTTNG_KERNEL_CONTEXT_PERF_COUNTER = 1,
+ LTTNG_KERNEL_CONTEXT_COMM = 2,
+ LTTNG_KERNEL_CONTEXT_PRIO = 3,
+ LTTNG_KERNEL_CONTEXT_NICE = 4,
+ LTTNG_KERNEL_CONTEXT_VPID = 5,
+ LTTNG_KERNEL_CONTEXT_TID = 6,
+ LTTNG_KERNEL_CONTEXT_VTID = 7,
+ LTTNG_KERNEL_CONTEXT_PPID = 8,
+ LTTNG_KERNEL_CONTEXT_VPPID = 9,
};
struct lttng_kernel_perf_counter_ctx {