Add debug and remove useless fct prototype
[lttng-tools.git] / ltt-sessiond / trace.h
CommitLineData
fda89c9b
DG
1/*
2 * Copyright (C) 2011 - David Goulet <david.goulet@polymtl.ca>
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 2
7 * of the License, or (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17 */
18
19#ifndef _LTT_TRACE_H
20#define _LTT_TRACE_H
21
9e78d6ae
DG
22#include <limits.h>
23#include <urcu/list.h>
20fe2104 24#include "lttng-kernel.h"
d4a2a84a 25
20fe2104
DG
26/* Kernel event list */
27struct ltt_kernel_event_list {
28 struct cds_list_head head;
29};
30
8c0faa1d
DG
31/* Channel stream list */
32struct ltt_kernel_stream_list {
33 struct cds_list_head head;
34};
35
36/* Channel list */
37struct ltt_kernel_channel_list {
38 struct cds_list_head head;
39};
40
20fe2104
DG
41/* Kernel event */
42struct ltt_kernel_event {
20fe2104 43 int fd;
f34daff7 44 struct lttng_kernel_event *event;
20fe2104
DG
45 struct cds_list_head list;
46};
47
48/* Kernel channel */
49struct ltt_kernel_channel {
50 int fd;
8c0faa1d
DG
51 char *pathname;
52 unsigned int stream_count;
9cb98350 53 struct lttng_kernel_channel *channel;
20fe2104 54 struct ltt_kernel_event_list events_list;
8c0faa1d
DG
55 struct ltt_kernel_stream_list stream_list;
56 struct cds_list_head list;
20fe2104
DG
57};
58
aaf26714
DG
59/* Metadata */
60struct ltt_kernel_metadata {
61 int fd;
8c0faa1d 62 char *pathname;
aaf26714
DG
63 struct lttng_kernel_channel *conf;
64};
65
8c0faa1d
DG
66/* Channel stream */
67struct ltt_kernel_stream {
68 int fd;
69 char *pathname;
70 int state;
71 struct cds_list_head list;
72};
73
20fe2104
DG
74/* Kernel session */
75struct ltt_kernel_session {
76 int fd;
8c0faa1d
DG
77 int metadata_stream_fd;
78 unsigned int channel_count;
79 unsigned int stream_count_global;
aaf26714 80 struct ltt_kernel_metadata *metadata;
8c0faa1d 81 struct ltt_kernel_channel_list channel_list;
fda89c9b
DG
82};
83
84/* UST trace representation */
85struct ltt_ust_trace {
86 struct cds_list_head list;
1657e9bb 87 char name[NAME_MAX];
fda89c9b
DG
88 int shmid;
89 pid_t pid;
90 struct cds_list_head markers;
91};
92
93struct ltt_ust_marker {
94 struct cds_list_head list;
95 char *name;
96 char *channel;
97};
98
99#endif /* _LTT_TRACE_H */
This page took 0.02674 seconds and 4 git commands to generate.