Send ust and kernel domain directory handle to consumer
[lttng-tools.git] / src / bin / lttng-sessiond / lttng-syscall.h
1 /*
2 * Copyright (C) 2014 - David Goulet <dgoulet@efficios.com>
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License, version 2 only, as
6 * published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful, but WITHOUT
9 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
11 * more details.
12 *
13 * You should have received a copy of the GNU General Public License along with
14 * this program; if not, write to the Free Software Foundation, Inc., 51
15 * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
16 */
17
18 #ifndef LTTNG_SYSCALL_H
19 #define LTTNG_SYSCALL_H
20
21 #include <common/hashtable/hashtable.h>
22 #include <lttng/event.h>
23
24 #include "trace-kernel.h"
25
26 /*
27 * Default size of the kernel system call array. With this size, we usually
28 * reallocate twice considering a 32 bit compat layer also.
29 */
30 #define SYSCALL_TABLE_INIT_SIZE 256
31
32 /* Maximum length of a syscall name. */
33 #define SYSCALL_NAME_LEN 255
34
35 /*
36 * Represent a kernel syscall and used when we are populating the internal
37 * list.
38 */
39 struct syscall {
40 uint32_t index;
41 uint32_t bitness;
42 char name[SYSCALL_NAME_LEN];
43 /* Used by the list syscalls command. */
44 struct lttng_ht_node_str node;
45 };
46
47 /*
48 * Allocated once when listing all syscalls at boot time. This is an array
49 * indexed by the syscall index provided in the listing.
50 */
51 extern struct syscall *syscall_table;
52
53 /* Use to list kernel system calls. */
54 int syscall_init_table(int tracer_fd);
55 ssize_t syscall_table_list(struct lttng_event **events);
56
57 #endif /* LTTNG_SYSCALL_H */
This page took 0.044042 seconds and 4 git commands to generate.