|
Packit |
c04fcb |
/*
|
|
Packit |
c04fcb |
* Copyright (C) 2011 - Julien Desfossez <julien.desfossez@polymtl.ca>
|
|
Packit |
c04fcb |
* Copyright (C) 2011-2013 - Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
|
|
Packit |
c04fcb |
*
|
|
Packit |
c04fcb |
* This program is free software; you can redistribute it and/or modify
|
|
Packit |
c04fcb |
* it under the terms of the GNU General Public License as published by
|
|
Packit |
c04fcb |
* the Free Software Foundation; version 2 of the License only.
|
|
Packit |
c04fcb |
*
|
|
Packit |
c04fcb |
* This program 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
|
|
Packit |
c04fcb |
* GNU General Public License for more details.
|
|
Packit |
c04fcb |
*
|
|
Packit |
c04fcb |
* You should have received a copy of the GNU General Public License along
|
|
Packit |
c04fcb |
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
Packit |
c04fcb |
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
Packit |
c04fcb |
*/
|
|
Packit |
c04fcb |
|
|
Packit |
c04fcb |
#ifndef _LTTNG_UST_CTL_PRIVATE_H
|
|
Packit |
c04fcb |
#define _LTTNG_UST_CTL_PRIVATE_H
|
|
Packit |
c04fcb |
|
|
Packit |
c04fcb |
#include <lttng/ust-ctl.h>
|
|
Packit |
c04fcb |
|
|
Packit |
c04fcb |
/*
|
|
Packit |
c04fcb |
* Map channel lttng_ust_shm_handle and add streams. Typically performed
|
|
Packit |
c04fcb |
* by the application to map the objects into its memory space.
|
|
Packit |
c04fcb |
*/
|
|
Packit |
c04fcb |
struct lttng_ust_shm_handle *
|
|
Packit |
c04fcb |
ustctl_map_channel(struct lttng_ust_object_data *chan_data);
|
|
Packit |
c04fcb |
int ustctl_add_stream(struct lttng_ust_shm_handle *lttng_ust_shm_handle,
|
|
Packit |
c04fcb |
struct lttng_ust_object_data *stream_data);
|
|
Packit |
c04fcb |
/*
|
|
Packit |
c04fcb |
* Note: the lttng_ust_object_data from which the lttng_ust_shm_handle
|
|
Packit |
c04fcb |
* is derived can only be released after unmapping the handle.
|
|
Packit |
c04fcb |
*/
|
|
Packit |
c04fcb |
void ustctl_unmap_channel(struct lttng_ust_shm_handle *lttng_ust_shm_handle);
|
|
Packit |
c04fcb |
|
|
Packit |
c04fcb |
#endif /* _LTTNG_UST_CTL_PRIVATE_H */
|