fix: add 'static inline' to lttng_kretprobes_init_event()
authorMichael Jeanson <mjeanson@efficios.com>
Wed, 17 Jul 2024 15:32:31 +0000 (11:32 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 17 Jul 2024 17:50:27 +0000 (13:50 -0400)
Add missing 'static inline' to lttng_kretprobes_init_event() placeholder
function when CONFIG_KRETPROBES is not set. Also some minor reformating
to improve readability.

Change-Id: I23cf83dff99f4168ae0f339c2b4911796e0b0273
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/lttng/events-internal.h

index 9f2f1605e02aa82b70d2cc64562511bce18e63ba..55d34c443faed001a0c9018219a24d3cb158a4d5 100644 (file)
@@ -1169,8 +1169,13 @@ struct lttng_krp *lttng_kretprobes_create_krp(const char *symbol_name,
 {
        return NULL;
 }
+
+static inline
+void lttng_kretprobes_put_krp(struct lttng_krp *krp)
+{
+}
+
 static inline
-void lttng_kretprobes_put_krp(struct lttng_krp *krp) { }
 int lttng_kretprobes_init_event(const char *name,
                enum lttng_kretprobe_entryexit entryexit,
                struct lttng_kernel_event_common *event,
@@ -1178,27 +1183,35 @@ int lttng_kretprobes_init_event(const char *name,
 {
        return -ENOSYS;
 }
+
 static inline
 int lttng_kretprobes_register_event(struct lttng_kernel_event_common *event)
 {
        return -ENOSYS;
 }
+
 static inline
-void lttng_kretprobes_unregister_event(struct lttng_kernel_event_common *event) { }
+void lttng_kretprobes_unregister_event(struct lttng_kernel_event_common *event)
+{
+}
+
 static inline
-void lttng_kretprobes_destroy_event_private(struct lttng_kernel_event_common *event) { }
+void lttng_kretprobes_destroy_event_private(struct lttng_kernel_event_common *event)
+{
+}
+
 static inline
 int lttng_kretprobes_match_check(const char *symbol_name, uint64_t offset, uint64_t addr)
 {
        return -ENOENT;
 }
 
-
 static inline
 struct lttng_kernel_event_desc *lttng_create_kretprobes_event_desc(const char *name)
 {
        return NULL;
 }
+
 static inline
 int lttng_kretprobes_register(const char *symbol_name,
                uint64_t offset,
This page took 0.026921 seconds and 4 git commands to generate.