X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=include%2Flttng%2Fevent-rule%2Fkprobe.h;fp=include%2Flttng%2Fevent-rule%2Fkprobe.h;h=0000000000000000000000000000000000000000;hp=2ac173d273e1e8c1e2a325e310abbbe3b9b1e2e3;hb=a3c516531ffff69b8d5f6564c8e4d00b4f18e7da;hpb=f27911615bc5907d61d8ea236da974090bd85d24 diff --git a/include/lttng/event-rule/kprobe.h b/include/lttng/event-rule/kprobe.h deleted file mode 100644 index 2ac173d27..000000000 --- a/include/lttng/event-rule/kprobe.h +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright (C) 2019 Jonathan Rajotte - * - * SPDX-License-Identifier: LGPL-2.1-only - * - */ - -#ifndef LTTNG_EVENT_RULE_KERNEL_PROBE_H -#define LTTNG_EVENT_RULE_KERNEL_PROBE_H - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -struct lttng_kernel_probe_location; - -/* - * Create a newly allocated kernel probe event rule. - * - * Returns a new event rule on success, NULL on failure. The returned event rule - * must be destroyed using lttng_event_rule_destroy(). - */ -extern struct lttng_event_rule *lttng_event_rule_kernel_probe_create(void); - -/* - * Set the kernel probe location of a kernel probe event rule. - * - * The location is copied internally. - * - * Returns LTTNG_EVENT_RULE_STATUS_OK on success, LTTNG_EVENT_RULE_STATUS_INVALID - * if invalid parameters are passed. - */ -extern enum lttng_event_rule_status lttng_event_rule_kernel_probe_set_location( - struct lttng_event_rule *rule, - const struct lttng_kernel_probe_location *location); - -/* - * Get the kernel probe location of a kernel probe event rule. - * - * The caller does not assume the ownership of the returned location. - * The location shall only be used for the duration of the event - * rule's lifetime, or before a different location is set. - * - * Returns LTTNG_EVENT_RULE_STATUS_OK and a pointer to the event rule's location - * on success, LTTNG_EVENT_RULE_STATUS_INVALID if an invalid parameter is - * passed, or LTTNG_EVENT_RULE_STATUS_UNSET if a location was not set prior to - * this call. - */ -extern enum lttng_event_rule_status lttng_event_rule_kernel_probe_get_location( - const struct lttng_event_rule *rule, - const struct lttng_kernel_probe_location **location); - -/* - * Set the name of a kernel probe event rule. - * - * The name is copied internally. - * - * Returns LTTNG_EVENT_RULE_STATUS_OK on success, LTTNG_EVENT_RULE_STATUS_INVALID - * if invalid parameters are passed. - */ -extern enum lttng_event_rule_status lttng_event_rule_kernel_probe_set_name( - struct lttng_event_rule *rule, const char *name); - -/* - * Get the name of a kernel probe event rule. - * - * The caller does not assume the ownership of the returned name. - * The name shall only only be used for the duration of the event - * rule's lifetime, or before a different name is set. - * - * Returns LTTNG_EVENT_RULE_STATUS_OK and a pointer to the event rule's name on - * success, LTTNG_EVENT_RULE_STATUS_INVALID if an invalid parameter is passed, - * or LTTNG_EVENT_RULE_STATUS_UNSET if a name was not set prior to this call. - */ -extern enum lttng_event_rule_status lttng_event_rule_kernel_probe_get_name( - const struct lttng_event_rule *rule, const char **name); - -#ifdef __cplusplus -} -#endif - -#endif /* LTTNG_EVENT_RULE_KERNEL_PROBE_H */