4 * Copyright 2010 (c) - Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
6 * Holds LTTng per-session event registry.
9 #include <linux/list.h>
14 enum instrum_type itype
{
19 * ltt_event structure is referred to by the tracing fast path. It must be
24 struct ltt_channel
*chan
;
28 enum instrum_type itype
;
29 struct list_head list
; /* Event list */
33 struct channel
*chan
; /* Channel buffers */
34 /* Event ID management */
35 struct ltt_session
*session
;
36 unsigned int free_event_id
; /* Next event ID to allocate */
37 struct list_head list
; /* Channel list */
42 int active
; /* Is trace session active ? */
43 struct list_head chan
; /* Channel list head */
44 struct list_head events
; /* Event list head */
45 struct list_head list
; /* Session list */
49 struct ltt_session
*ltt_session_create(void);
50 int ltt_session_destroy(struct ltt_session
*session
);
52 struct ltt_channel
*ltt_channel_create(struct ltt_session
*session
,
53 int overwrite
, void *buf_addr
,
54 size_t subbuf_size
, size_t num_subbuf
,
55 unsigned int switch_timer_interval
,
56 unsigned int read_timer_interval
);
57 int _ltt_channel_destroy(struct ltt_channel
*chan
);
59 struct ltt_event
*ltt_event_create(struct ltt_channel
*chan
, char *name
,
61 int _ltt_event_destroy(struct ltt_event
*event
);
This page took 0.038716 seconds and 4 git commands to generate.