1 #ifndef _LTTNG_TRACER_CORE_H
2 #define _LTTNG_TRACER_CORE_H
5 * Copyright (C) 2005-2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
7 * This contains the core definitions for the Linux Trace Toolkit.
9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public
11 * License as published by the Free Software Foundation; version 2.1 of
14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Lesser General Public License for more details.
19 * You should have received a copy of the GNU Lesser General Public
20 * License along with this library; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
26 #include <urcu/arch.h>
27 #include <urcu/list.h>
28 #include <lttng/ust-tracer.h>
29 #include <lttng/bug.h>
30 #include <lttng/ringbuffer-config.h>
31 #include <usterr-signal-safe.h>
36 struct lttng_ctx_field
;
37 struct lttng_ust_lib_ring_buffer_ctx
;
38 struct lttng_ctx_value
;
40 int ust_lock(void) __attribute__ ((warn_unused_result
));
41 void ust_lock_nocheck(void);
42 void ust_unlock(void);
44 void lttng_fixup_event_tls(void);
45 void lttng_fixup_vtid_tls(void);
46 void lttng_fixup_procname_tls(void);
48 const char *lttng_ust_obj_get_name(int id
);
50 int lttng_get_notify_socket(void *owner
);
52 void lttng_ust_sockinfo_session_enabled(void *owner
);
54 void lttng_ust_malloc_wrapper_init(void);
56 ssize_t
lttng_ust_read(int fd
, void *buf
, size_t len
);
58 size_t lttng_ust_dummy_get_size(struct lttng_ctx_field
*field
, size_t offset
);
59 void lttng_ust_dummy_record(struct lttng_ctx_field
*field
,
60 struct lttng_ust_lib_ring_buffer_ctx
*ctx
,
61 struct lttng_channel
*chan
);
62 void lttng_ust_dummy_get_value(struct lttng_ctx_field
*field
,
63 struct lttng_ctx_value
*value
);
64 int lttng_context_is_app(const char *name
);
66 #endif /* _LTTNG_TRACER_CORE_H */