-Wall dnl
-Wnull-dereference dnl
-Wundef dnl
+ -Wredundant-decls dnl
-Wmissing-noreturn dnl
-Wlogical-op dnl
dnl We currently get this warning when building with Clang:
AM_CPPFLAGS += -I$(srcdir)
+AM_CFLAGS += -Wno-redundant-decls
+
LIBLTTNG_CTL=$(top_builddir)/src/lib/lttng-ctl/liblttng-ctl.la
dist_noinst_SCRIPTS = demo.sh
EXTRA_DIST = README.md
/*
* Thread managing health check socket.
*/
-void *thread_manage_health(void *data)
+void *thread_manage_health_consumerd(void *data)
{
int sock = -1, new_sock = -1, ret, i, pollfd, err = -1;
uint32_t revents, nb_fd;
/* Consumerd health monitoring */
extern struct health_app *health_consumerd;
-void *thread_manage_health(void *data);
+void *thread_manage_health_consumerd(void *data);
extern int health_quit_pipe[2];
/* Create thread to manage the client socket */
ret = pthread_create(&health_thread, default_pthread_attr(),
- thread_manage_health, (void *) NULL);
+ thread_manage_health_consumerd, (void *) NULL);
if (ret) {
errno = ret;
PERROR("pthread_create health");
/*
* Thread managing health check socket.
*/
-void *thread_manage_health(void *data)
+void *thread_manage_health_relayd(void *data)
{
int sock = -1, new_sock = -1, ret, i, pollfd, err = -1;
uint32_t revents, nb_fd;
extern int health_quit_pipe[2];
-void *thread_manage_health(void *data);
+void *thread_manage_health_relayd(void *data);
#endif /* HEALTH_RELAYD_H */
/* Create thread to manage the client socket */
ret = pthread_create(&health_thread, default_pthread_attr(),
- thread_manage_health, (void *) NULL);
+ thread_manage_health_relayd, (void *) NULL);
if (ret) {
errno = ret;
PERROR("pthread_create health");
enum lttng_error_code cmd_list_channels(enum lttng_domain_type domain,
struct ltt_session *session,
struct lttng_payload *payload);
-ssize_t cmd_list_domains(struct ltt_session *session,
- struct lttng_domain **domains);
void cmd_list_lttng_sessions(struct lttng_session *sessions,
size_t session_count, uid_t uid, gid_t gid);
enum lttng_error_code cmd_list_tracepoint_fields(enum lttng_domain_type domain,
# Disable some warning flags for generated sources.
FILTER_WARN_FLAGS = \
- -Wno-null-dereference
+ -Wno-null-dereference \
+ -Wno-redundant-decls
libfilter_la_CFLAGS = $(AM_CFLAGS) $(FILTER_WARN_FLAGS)
libfilter_la_CXXFLAGS = -include filter-symbols.h $(AM_CXXFLAGS) $(FILTER_WARN_FLAGS)
void consumer_stream_metadata_set_version(
struct lttng_consumer_stream *stream, uint64_t new_version);
-/*
- * Set the version of a metadata stream (i.e. following a metadata
- * regeneration).
- *
- * Changing the version of a metadata stream will cause any bucketized metadata
- * to be discarded and will mark the metadata stream for future `reset`.
- */
-void consumer_stream_metadata_set_version(
- struct lttng_consumer_stream *stream, uint64_t new_version);
-
/*
* Attempt to open a packet in a stream.
*
AM_CPPFLAGS += -I$(top_srcdir)/tests -I$(srcdir)
if HAVE_LIBLTTNG_UST_CTL
+# Disable some warnings flags to accomodate the tracepoint headers
+WARN_FLAGS = \
+ -Wno-redundant-decls
+
+AM_CFLAGS += $(WARN_FLAGS)
+AM_CXXFLAGS += $(WARN_FLAGS)
+
noinst_PROGRAMS = gen-ust-events
gen_ust_events_SOURCES = gen-ust-events.c tp.c tp.h
gen_ust_events_LDADD = $(UST_LIBS) $(DL_LIBS)
AM_CPPFLAGS += -I$(srcdir) -g
+# Disable some warnings flags to accomodate the tracepoint headers
+AM_CFLAGS += \
+ -Wno-redundant-decls
+
noinst_PROGRAMS = prog
prog_SOURCES = prog.c tp.c tp.h
prog_LDADD = $(UST_LIBS) $(DL_LIBS)
AM_CPPFLAGS += -I$(srcdir)
+# Disable some warnings flags to accomodate the tracepoint headers
+AM_CFLAGS += \
+ -Wno-redundant-decls
+
noinst_PROGRAMS = daemon
daemon_SOURCES = daemon.c ust_tests_daemon.h
daemon_LDADD = $(UST_LIBS) -llttng-ust-fork $(DL_LIBS)
AM_CPPFLAGS += -I$(srcdir)
+# Disable some warnings flags to accomodate the tracepoint headers
+AM_CFLAGS += \
+ -Wno-redundant-decls
+
noinst_PROGRAMS = exit-fast
exit_fast_SOURCES = exit-fast.c ust_tests_exitfast.h
exit_fast_LDADD = $(UST_LIBS) $(DL_LIBS)
AM_CPPFLAGS += -I$(srcdir)
+# Disable some warnings flags to accomodate the tracepoint headers
+AM_CFLAGS += \
+ -Wno-redundant-decls
+
noinst_PROGRAMS = fork fork2
fork_SOURCES = fork.c ust_tests_fork.h
fork_LDADD = $(UST_LIBS) -llttng-ust-fork $(DL_LIBS)
AM_CPPFLAGS += -I$(srcdir)
+# Disable some warnings flags to accomodate the tracepoint headers
+AM_CFLAGS += \
+ -Wno-redundant-decls
+
noinst_PROGRAMS = gen-events
gen_events_SOURCES = main.c tp.c tp.h
gen_events_LDADD = $(UST_LIBS) $(DL_LIBS)
# so disable that.
AM_CPPFLAGS += -I$(srcdir) -Wsystem-headers -Wno-format-nonliteral
+# Disable some warnings flags to accomodate the tracepoint headers
+AM_CFLAGS += \
+ -Wno-redundant-decls
+
# Set LIBS to nothing so the application does not link on useless
# libraries.
LIBS =
AM_CPPFLAGS += -I$(srcdir)
+# Disable some warnings flags to accomodate the tracepoint headers
+AM_CFLAGS += \
+ -Wno-redundant-decls
+
noinst_PROGRAMS = gen-events
gen_events_SOURCES = main.c tp.c tp.h
gen_events_LDADD = $(UST_LIBS) $(DL_LIBS)
# SPDX-License-Identifier: GPL-2.0-only
+# Disable some warnings flags to accomodate the tracepoint headers
+AM_CFLAGS += \
+ -Wno-redundant-decls
+
noinst_SCRIPTS = test_multi_lib
EXTRA_DIST = test_multi_lib
noinst_PROGRAMS = exec-with-callsites exec-without-callsites
AM_CFLAGS += -I$(srcdir)
+# Disable some warnings flags to accomodate the tracepoint headers
+AM_CFLAGS += \
+ -Wno-redundant-decls
+
noinst_PROGRAMS = gen-nevents
gen_nevents_SOURCES = gen-nevents.c tp.c ust_gen_nevents.h
gen_nevents_LDADD = $(UST_LIBS) $(DL_LIBS)
AM_CPPFLAGS += -I$(srcdir)
+# Disable some warnings flags to accomodate the tracepoint headers
+AM_CFLAGS += \
+ -Wno-redundant-decls
+
# Force the shared flag on the noinst libraries since they are
# only built static by default
FORCE_SHARED_LIB_OPTIONS = -module -shared -avoid-version \
AM_CPPFLAGS += -I$(srcdir)
+# Disable some warnings flags to accomodate the tracepoint headers
+AM_CFLAGS += \
+ -Wno-redundant-decls
+
noinst_PROGRAMS = type-declarations
type_declarations_SOURCES = type-declarations.c ust_tests_td.h
type_declarations_LDADD = $(UST_LIBS) $(DL_LIBS)
AM_CPPFLAGS += -I$(srcdir) -g
+# Disable some warnings flags to accomodate the tracepoint headers
+AM_CFLAGS += \
+ -Wno-redundant-decls
+
noinst_PROGRAMS = prog
prog_SOURCES = prog.c
prog_LDADD = $(DL_LIBS)
-I$(top_srcdir)/tests/utils/testapp
if HAVE_LIBLTTNG_UST_CTL
+# Disable some warnings flags to accomodate the tracepoint headers
+WARN_FLAGS = \
+ -Wno-redundant-decls
+
+AM_CFLAGS += $(WARN_FLAGS)
+AM_CXXFLAGS += $(WARN_FLAGS)
+
noinst_PROGRAMS = gen-ust-events-ns
gen_ust_events_ns_SOURCES = \
gen-ust-events-ns.cpp \
-I$(top_srcdir)/tests/utils/testapp
if HAVE_LIBLTTNG_UST_CTL
+# Disable some warnings flags to accomodate the tracepoint headers
+WARN_FLAGS = \
+ -Wno-redundant-decls
+
+AM_CFLAGS += $(WARN_FLAGS)
+AM_CXXFLAGS += $(WARN_FLAGS)
+
noinst_PROGRAMS = gen-ust-events
gen_ust_events_SOURCES = \
gen-ust-events.cpp \
-I$(top_srcdir)/tests/utils/testapp
if HAVE_LIBLTTNG_UST_CTL
+WARN_FLAGS = \
+ -Wno-redundant-decls
+
+AM_CFLAGS += $(WARN_FLAGS)
+AM_CXXFLAGS += $(WARN_FLAGS)
+
noinst_PROGRAMS = gen-ust-nevents-str
gen_ust_nevents_str_SOURCES = \
gen-ust-nevents-str.cpp \
-I$(top_srcdir)/tests/utils/testapp
if HAVE_LIBLTTNG_UST_CTL
+WARN_FLAGS = \
+ -Wno-redundant-decls
+
+AM_CFLAGS += $(WARN_FLAGS)
+AM_CXXFLAGS += $(WARN_FLAGS)
+
noinst_PROGRAMS = gen-ust-nevents
gen_ust_nevents_SOURCES = \
gen-ust-nevents.cpp \