From d974f19715e70847e2e04efb0d7b2167d884851d Mon Sep 17 00:00:00 2001 From: David Goulet Date: Mon, 7 Nov 2011 12:07:34 -0500 Subject: [PATCH] Add missing function references with no UST support Signed-off-by: David Goulet --- lttng-sessiond/ust-app.h | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/lttng-sessiond/ust-app.h b/lttng-sessiond/ust-app.h index 9a30b6f8f..7d198ee3e 100644 --- a/lttng-sessiond/ust-app.h +++ b/lttng-sessiond/ust-app.h @@ -115,6 +115,11 @@ struct ust_app *ust_app_find_by_pid(pid_t pid); #else /* HAVE_LIBLTTNG_UST_CTL */ +static inline +int ust_app_start_trace(struct ltt_ust_session *usess) +{ + return -ENOSYS; +} static inline int ust_app_register(struct ust_register_msg *msg, int sock) { @@ -129,7 +134,6 @@ unsigned int ust_app_list_count(void) { return 0; } - static inline void ust_app_lock_list(void) { @@ -152,13 +156,27 @@ struct ust_app *ust_app_get_by_pid(pid_t pid) { return NULL; } - static inline int ust_app_add_channel(struct ltt_ust_session *usess, struct ltt_ust_channel *uchan) { return 0; } +static inline +int ust_app_add_event(struct ltt_ust_session *usess, + struct ltt_ust_channel *uchan, struct ltt_ust_event *uevent) +{ + return -ENOSYS; +} +static inline +struct cds_lfht *ust_app_get_ht(void) +{ + return NULL; +} +static inline +void ust_app_ht_alloc(void) +{ +} #endif /* HAVE_LIBLTTNG_UST_CTL */ -- 2.34.1