|
Packit |
c04fcb |
/*
|
|
Packit |
c04fcb |
* lttng-ring-buffer-client-discard-rt.c
|
|
Packit |
c04fcb |
*
|
|
Packit |
c04fcb |
* LTTng lib ring buffer client (discard mode) for RT.
|
|
Packit |
c04fcb |
*
|
|
Packit |
c04fcb |
* Copyright (C) 2010-2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
|
|
Packit |
c04fcb |
*
|
|
Packit |
c04fcb |
* This library is free software; you can redistribute it and/or
|
|
Packit |
c04fcb |
* modify it under the terms of the GNU Lesser General Public
|
|
Packit |
c04fcb |
* License as published by the Free Software Foundation; only
|
|
Packit |
c04fcb |
* version 2.1 of the License.
|
|
Packit |
c04fcb |
*
|
|
Packit |
c04fcb |
* This library is distributed in the hope that it will be useful,
|
|
Packit |
c04fcb |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
c04fcb |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
c04fcb |
* Lesser General Public License for more details.
|
|
Packit |
c04fcb |
*
|
|
Packit |
c04fcb |
* You should have received a copy of the GNU Lesser General Public
|
|
Packit |
c04fcb |
* License along with this library; if not, write to the Free Software
|
|
Packit |
c04fcb |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
Packit |
c04fcb |
*/
|
|
Packit |
c04fcb |
|
|
Packit |
c04fcb |
#define _GNU_SOURCE
|
|
Packit |
c04fcb |
#include "lttng-tracer.h"
|
|
Packit |
c04fcb |
|
|
Packit |
c04fcb |
#define RING_BUFFER_MODE_TEMPLATE RING_BUFFER_DISCARD
|
|
Packit |
c04fcb |
#define RING_BUFFER_MODE_TEMPLATE_STRING "discard-rt"
|
|
Packit |
c04fcb |
#define RING_BUFFER_MODE_TEMPLATE_INIT \
|
|
Packit |
c04fcb |
lttng_ring_buffer_client_discard_rt_init
|
|
Packit |
c04fcb |
#define RING_BUFFER_MODE_TEMPLATE_EXIT \
|
|
Packit |
c04fcb |
lttng_ring_buffer_client_discard_rt_exit
|
|
Packit |
c04fcb |
#define LTTNG_CLIENT_TYPE LTTNG_CLIENT_DISCARD_RT
|
|
Packit |
c04fcb |
#define LTTNG_CLIENT_CALLBACKS lttng_client_callbacks_discard_rt
|
|
Packit |
c04fcb |
#define LTTNG_CLIENT_WAKEUP RING_BUFFER_WAKEUP_BY_TIMER
|
|
Packit |
c04fcb |
#include "lttng-ring-buffer-client.h"
|