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
21 #include <common/pipe.hpp>
22 #include <common/error.hpp>
24 int lttng_opt_verbose
;
32 * The event notifier pipes are not "special"; they are created using
33 * the lttng_pipe utility. Hence, this should be representative of a
34 * pipe created by the session daemon for event notifier messages to
37 struct lttng_pipe
*pipe
= lttng_pipe_open(0);
40 /* lttng_pipe_open already logs on error. */
45 ret
= fcntl(lttng_pipe_get_writefd(pipe
), F_GETPIPE_SZ
);
47 PERROR("Failed to get the size of the pipe");
55 lttng_pipe_destroy(pipe
);
This page took 0.037628 seconds and 5 git commands to generate.