2 * default_pipe_size_getter.c
4 * Tests suite for LTTng notification API (get default size of pipes)
6 * Copyright (C) 2021 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8 * SPDX-License-Identifier: MIT
17 #include <common/pipe.h>
18 #include <common/error.h>
20 int lttng_opt_verbose
;
24 int main(int argc
, const char **argv
)
28 * The event notifier pipes are not "special"; they are created using
29 * the lttng_pipe utility. Hence, this should be representative of a
30 * pipe created by the session daemon for event notifier messages to
33 struct lttng_pipe
*pipe
= lttng_pipe_open(0);
36 /* lttng_pipe_open already logs on error. */
41 ret
= fcntl(lttng_pipe_get_writefd(pipe
), F_GETPIPE_SZ
);
43 PERROR("Failed to get the size of the pipe");
51 lttng_pipe_destroy(pipe
);
This page took 0.033018 seconds and 4 git commands to generate.