X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fkernel-ctl%2Fkernel-ctl.h;h=f512e69f3b2150026c8f30e355296604c571598c;hb=4878de5c7deb512bbdac4fdfc498907efa06fb7c;hp=5668468e68cdc4e9318ce73facc215c7477a5748;hpb=352b58f55f53e7d11fb286ddc26a3bd0ecdd02f5;p=lttng-tools.git diff --git a/src/common/kernel-ctl/kernel-ctl.h b/src/common/kernel-ctl/kernel-ctl.h index 5668468e6..f512e69f3 100644 --- a/src/common/kernel-ctl/kernel-ctl.h +++ b/src/common/kernel-ctl/kernel-ctl.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2011 Julien Desfossez + * Copyright (C) 2011 EfficiOS Inc. * Copyright (C) 2011 Mathieu Desnoyers * * SPDX-License-Identifier: GPL-2.0-only @@ -20,8 +20,8 @@ int kernctl_create_session(int fd); int kernctl_open_metadata(int fd, struct lttng_channel_attr *chops); int kernctl_create_channel(int fd, struct lttng_channel_attr *chops); int kernctl_create_stream(int fd); -int kernctl_create_event(int fd, struct lttng_kernel_event *ev); -int kernctl_add_context(int fd, struct lttng_kernel_context *ctx); +int kernctl_create_event(int fd, struct lttng_kernel_abi_event *ev); +int kernctl_add_context(int fd, struct lttng_kernel_abi_context *ctx); int kernctl_enable(int fd); int kernctl_disable(int fd); @@ -32,17 +32,25 @@ int kernctl_create_event_notifier_group(int fd); /* Apply on event notifier_group file descriptor. */ int kernctl_create_event_notifier_group_notification_fd(int fd); +int kernctl_create_event_notifier_group_error_counter(int fd, + const struct lttng_kernel_abi_counter_conf *error_counter_conf); int kernctl_create_event_notifier(int fd, - const struct lttng_kernel_event_notifier *event_notifier); + const struct lttng_kernel_abi_event_notifier *event_notifier); + +int kernctl_counter_get_aggregate_value(int counter_fd, + struct lttng_kernel_abi_counter_aggregate *value); +int kernctl_counter_clear(int counter_fd, + struct lttng_kernel_abi_counter_clear *clear); /* Apply on event file descriptor. */ -int kernctl_filter(int fd, const struct lttng_filter_bytecode *filter); -int kernctl_add_callsite(int fd, struct lttng_kernel_event_callsite *callsite); +int kernctl_filter(int fd, const struct lttng_bytecode *filter); +int kernctl_add_callsite(int fd, struct lttng_kernel_abi_event_callsite *callsite); +int kernctl_capture(int fd, const struct lttng_bytecode *capture); int kernctl_tracepoint_list(int fd); int kernctl_syscall_list(int fd); -int kernctl_tracer_version(int fd, struct lttng_kernel_tracer_version *v); -int kernctl_tracer_abi_version(int fd, struct lttng_kernel_tracer_abi_version *v); +int kernctl_tracer_version(int fd, struct lttng_kernel_abi_tracer_version *v); +int kernctl_tracer_abi_version(int fd, struct lttng_kernel_abi_tracer_abi_version *v); int kernctl_wait_quiescent(int fd); /*