X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fust-app.h;h=0e2722e9efec985c380c3252b066f842a5aec8dd;hb=21cf9b6b1843774306a76f4dccddddd706b64f79;hp=e0321cdc486a368b173860932e6ef539296be678;hpb=b623cb6a788d9e666d9a93658ab04b06458863ef;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/ust-app.h b/src/bin/lttng-sessiond/ust-app.h index e0321cdc4..0e2722e9e 100644 --- a/src/bin/lttng-sessiond/ust-app.h +++ b/src/bin/lttng-sessiond/ust-app.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2011 David Goulet + * Copyright (C) 2011 EfficiOS Inc. * Copyright (C) 2016 Jérémie Galarneau * * SPDX-License-Identifier: GPL-2.0-only @@ -404,6 +404,9 @@ int ust_app_supported(void) return 1; } +bool ust_app_supports_notifiers(const struct ust_app *app); +bool ust_app_supports_counters(const struct ust_app *app); + #else /* HAVE_LIBLTTNG_UST_CTL */ static inline @@ -456,14 +459,6 @@ void ust_app_unregister(int sock) { } static inline -void ust_app_lock_list(void) -{ -} -static inline -void ust_app_unlock_list(void) -{ -} -static inline void ust_app_clean_list(void) { } @@ -577,7 +572,7 @@ static inline enum lttng_error_code ust_app_snapshot_record(struct ltt_ust_session *usess, const struct consumer_output *output, int wait, uint64_t max_stream_size) { - return 0; + return LTTNG_ERR_UNK; } static inline unsigned int ust_app_get_nb_stream(struct ltt_ust_session *usess) @@ -596,6 +591,16 @@ int ust_app_supported(void) return 0; } static inline +bool ust_app_supports_notifiers(const struct ust_app *app) +{ + return false; +} +static inline +bool ust_app_supports_counters(const struct ust_app *app) +{ + return false; +} +static inline struct ust_app *ust_app_find_by_sock(int sock) { return NULL; @@ -637,14 +642,14 @@ int ust_app_regenerate_statedump_all(struct ltt_ust_session *usess) static inline enum lttng_error_code ust_app_rotate_session(struct ltt_session *session) { - return 0; + return LTTNG_ERR_UNK; } static inline enum lttng_error_code ust_app_create_channel_subdirectories( const struct ltt_ust_session *session) { - return 0; + return LTTNG_ERR_UNK; } static inline @@ -656,13 +661,13 @@ int ust_app_release_object(struct ust_app *app, struct lttng_ust_abi_object_data static inline enum lttng_error_code ust_app_clear_session(struct ltt_session *session) { - return 0; + return LTTNG_ERR_UNK; } static inline enum lttng_error_code ust_app_open_packets(struct ltt_session *session) { - return 0; + return LTTNG_ERR_UNK; } #endif /* HAVE_LIBLTTNG_UST_CTL */