fix: relayd: unaligned access in trace_chunk_registry_ht_key_hash
[lttng-tools.git] / src / bin / lttng-sessiond / lttng-syscall.hpp
1 /*
2 * Copyright (C) 2014 David Goulet <dgoulet@efficios.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-only
5 *
6 */
7
8 #ifndef LTTNG_SYSCALL_H
9 #define LTTNG_SYSCALL_H
10
11 #include "trace-kernel.hpp"
12
13 #include <common/hashtable/hashtable.hpp>
14
15 #include <lttng/event.h>
16
17 /*
18 * Default size of the kernel system call array. With this size, we usually
19 * reallocate twice considering a 32 bit compat layer also.
20 */
21 #define SYSCALL_TABLE_INIT_SIZE 256
22
23 /* Maximum length of a syscall name. */
24 #define SYSCALL_NAME_LEN 255
25
26 /*
27 * Represent a kernel syscall and used when we are populating the internal
28 * list.
29 */
30 struct syscall {
31 uint32_t index;
32 uint32_t bitness;
33 char name[SYSCALL_NAME_LEN];
34 /* Used by the list syscalls command. */
35 struct lttng_ht_node_str node;
36 };
37
38 /*
39 * Allocated once when listing all syscalls at boot time. This is an array
40 * indexed by the syscall index provided in the listing.
41 */
42 extern struct syscall *syscall_table;
43
44 /* Use to list kernel system calls. */
45 int syscall_init_table(int tracer_fd);
46 ssize_t syscall_table_list(struct lttng_event **events);
47
48 #endif /* LTTNG_SYSCALL_H */
This page took 0.030145 seconds and 4 git commands to generate.