};
struct ust_app_event {
- int enabled;
+ bool enabled;
int handle;
struct lttng_ust_abi_object_data *obj;
struct lttng_ust_abi_event attr;
};
struct ust_app_event_notifier_rule {
- int enabled;
+ bool enabled;
uint64_t error_counter_index;
int handle;
struct lttng_ust_abi_object_data *obj;
};
struct ust_app_channel {
- int enabled;
+ bool enabled;
int handle;
/*
* Unique key used to identify the channel on the consumer side.
*/
pthread_mutex_t lock;
- int enabled;
+ bool enabled;
/* started: has the session been in started state at any time ? */
- int started; /* allows detection of start vs restart. */
+ bool started; /* allows detection of start vs restart. */
int handle; /* used has unique identifier for app session */
bool deleted; /* Session deleted flag. Check with lock held. */
namespace fmt {
template <>
struct formatter<ust_app> : formatter<std::string> {
- template <typename FormatCtx>
- typename FormatCtx::iterator format(const ust_app& app, FormatCtx& ctx)
+ template <typename FormatContextType>
+ typename FormatContextType::iterator format(const ust_app& app, FormatContextType& ctx)
{
return format_to(ctx.out(),
"{{ procname = `{}`, ppid = {}, pid = {}, uid = {}, gid = {}, version = {}.{}, registration time = {} }}",
void ust_app_global_update(struct ltt_ust_session *usess, struct ust_app *app);
void ust_app_global_update_all(struct ltt_ust_session *usess);
void ust_app_global_update_event_notifier_rules(struct ust_app *app);
-void ust_app_global_update_all_event_notifier_rules(void);
+void ust_app_global_update_all_event_notifier_rules();
-void ust_app_clean_list(void);
-int ust_app_ht_alloc(void);
+void ust_app_clean_list();
+int ust_app_ht_alloc();
struct ust_app *ust_app_find_by_pid(pid_t pid);
-struct ust_app_stream *ust_app_alloc_stream(void);
+struct ust_app_stream *ust_app_alloc_stream();
int ust_app_recv_registration(int sock, struct ust_register_msg *msg);
int ust_app_recv_notify(int sock);
void ust_app_add(struct ust_app *app);
int ust_app_setup_event_notifier_group(struct ust_app *app);
static inline
-int ust_app_supported(void)
+int ust_app_supported()
{
return 1;
}