2 * Copyright (C) 2014 - David Goulet <dgoulet@efficios.com>
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.
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
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.
18 #ifndef LTTNG_SYSCALL_H
19 #define LTTNG_SYSCALL_H
21 #include <common/hashtable/hashtable.h>
22 #include <lttng/event.h>
24 #include "trace-kernel.h"
27 * Default size of the kernel system call array. With this size, we usually
28 * reallocate twice considering a 32 bit compat layer also.
30 #define SYSCALL_TABLE_INIT_SIZE 256
32 /* Maximum length of a syscall name. */
33 #define SYSCALL_NAME_LEN 255
36 * Represent a kernel syscall and used when we are populating the internal
42 char name
[SYSCALL_NAME_LEN
];
43 /* Used by the list syscalls command. */
44 struct lttng_ht_node_str node
;
48 * Allocated once when listing all syscalls at boot time. This is an array
49 * indexed by the syscall index provided in the listing.
51 extern struct syscall
*syscall_table
;
53 /* Use to list kernel system calls. */
54 int syscall_init_table(void);
55 ssize_t
syscall_table_list(struct lttng_event
**events
);
57 #endif /* LTTNG_SYSCALL_H */
This page took 0.0325 seconds and 5 git commands to generate.