From: Mathieu Desnoyers Date: Thu, 26 May 2011 01:28:34 +0000 (-0400) Subject: Update kernel context ABI X-Git-Tag: v2.0-pre1~81 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=12a313a5f879a71a0449b860e7f181c50a3f22f8;p=lttng-modules.git Update kernel context ABI Signed-off-by: Mathieu Desnoyers --- diff --git a/ltt-debugfs-abi.c b/ltt-debugfs-abi.c index d8164ffc..73082667 100644 --- a/ltt-debugfs-abi.c +++ b/ltt-debugfs-abi.c @@ -150,9 +150,9 @@ long lttng_abi_add_context(struct file *file, 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; diff --git a/ltt-debugfs-abi.h b/ltt-debugfs-abi.h index a0299967..ddc50ba5 100644 --- a/ltt-debugfs-abi.h +++ b/ltt-debugfs-abi.h @@ -65,9 +65,9 @@ struct lttng_kernel_tracer_version { 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 { @@ -79,7 +79,7 @@ struct lttng_kernel_perf_counter_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;