|
Packit |
c04fcb |
#ifndef _LTTNG_TRACER_CORE_H
|
|
Packit |
c04fcb |
#define _LTTNG_TRACER_CORE_H
|
|
Packit |
c04fcb |
|
|
Packit |
c04fcb |
/*
|
|
Packit |
c04fcb |
* Copyright (C) 2005-2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
|
|
Packit |
c04fcb |
*
|
|
Packit |
c04fcb |
* This contains the core definitions for the Linux Trace Toolkit.
|
|
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; version 2.1 of
|
|
Packit |
c04fcb |
* 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 |
#include <stdint.h>
|
|
Packit |
c04fcb |
#include <stddef.h>
|
|
Packit |
c04fcb |
#include <urcu/arch.h>
|
|
Packit |
c04fcb |
#include <urcu/list.h>
|
|
Packit |
c04fcb |
#include <lttng/ust-tracer.h>
|
|
Packit |
c04fcb |
#include <lttng/bug.h>
|
|
Packit |
c04fcb |
#include <lttng/ringbuffer-config.h>
|
|
Packit |
c04fcb |
#include <usterr-signal-safe.h>
|
|
Packit |
c04fcb |
|
|
Packit |
c04fcb |
struct lttng_session;
|
|
Packit |
c04fcb |
struct lttng_channel;
|
|
Packit |
c04fcb |
struct lttng_event;
|
|
Packit |
c04fcb |
struct lttng_ctx_field;
|
|
Packit |
c04fcb |
struct lttng_ust_lib_ring_buffer_ctx;
|
|
Packit |
c04fcb |
struct lttng_ctx_value;
|
|
Packit |
c04fcb |
|
|
Packit |
c04fcb |
int ust_lock(void) __attribute__ ((warn_unused_result));
|
|
Packit |
c04fcb |
void ust_lock_nocheck(void);
|
|
Packit |
c04fcb |
void ust_unlock(void);
|
|
Packit |
c04fcb |
|
|
Packit |
c04fcb |
void lttng_fixup_event_tls(void);
|
|
Packit |
c04fcb |
void lttng_fixup_vtid_tls(void);
|
|
Packit |
c04fcb |
void lttng_fixup_procname_tls(void);
|
|
Packit |
c04fcb |
|
|
Packit |
c04fcb |
const char *lttng_ust_obj_get_name(int id);
|
|
Packit |
c04fcb |
|
|
Packit |
c04fcb |
int lttng_get_notify_socket(void *owner);
|
|
Packit |
c04fcb |
|
|
Packit |
c04fcb |
void lttng_ust_sockinfo_session_enabled(void *owner);
|
|
Packit |
c04fcb |
|
|
Packit |
c04fcb |
void lttng_ust_malloc_wrapper_init(void);
|
|
Packit |
c04fcb |
|
|
Packit |
c04fcb |
ssize_t lttng_ust_read(int fd, void *buf, size_t len);
|
|
Packit |
c04fcb |
|
|
Packit |
c04fcb |
size_t lttng_ust_dummy_get_size(struct lttng_ctx_field *field, size_t offset);
|
|
Packit |
c04fcb |
void lttng_ust_dummy_record(struct lttng_ctx_field *field,
|
|
Packit |
c04fcb |
struct lttng_ust_lib_ring_buffer_ctx *ctx,
|
|
Packit |
c04fcb |
struct lttng_channel *chan);
|
|
Packit |
c04fcb |
void lttng_ust_dummy_get_value(struct lttng_ctx_field *field,
|
|
Packit |
c04fcb |
struct lttng_ctx_value *value);
|
|
Packit |
c04fcb |
int lttng_context_is_app(const char *name);
|
|
Packit |
c04fcb |
|
|
Packit |
c04fcb |
#endif /* _LTTNG_TRACER_CORE_H */
|