3 * Copyright 2007 Red Hat Inc., Durham, North Carolina.
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 * Steve Grubb <sgrubb@redhat.com>
27 /* This is the node of the linked list. Any data elements that are
28 * per item goes here. */
29 typedef struct _nvnode{
30 char *name; // The name string
31 char *val; // The value field
32 char *interp_val; // The value field interpretted
33 unsigned int item; // Which item of the same event
34 struct _nvnode* next; // Next nvpair node pointer
37 /* This is the linked list head. Only data elements that are 1 per
40 nvnode *head; // List head
41 nvnode *cur; // Pointer to current node
42 unsigned int cnt; // How many items in this list
46 /* This is the node of the linked list. Any data elements that are per
47 * * item goes here. */
48 typedef struct _rnode{
49 char *record; // The whole unparsed record
50 int type; // record type (KERNEL, USER, LOGIN, etc)
51 int machine; // The machine type for the event
52 int syscall; // The syscall for the event
53 unsigned long long a0; // arg 0 to the syscall
54 unsigned long long a1; // arg 1 to the syscall
55 nvlist nv; // name-value linked list of parsed elements
56 unsigned int item; // Which item of the same event
57 int list_idx; // The index into the source list, points to where record was found
58 unsigned int line_number; // The line number where record was found
59 struct _rnode* next; // Next record node pointer