Open SCAP Library
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
src
OVAL
probes
probe
probe.h
1
/*
2
* Copyright 2011 Red Hat Inc., Durham, North Carolina.
3
* All Rights Reserved.
4
*
5
* This library is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU Lesser General Public
7
* License as published by the Free Software Foundation; either
8
* version 2.1 of the License, or (at your option) any later version.
9
*
10
* This library is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
* Lesser General Public License for more details.
14
*
15
* You should have received a copy of the GNU Lesser General Public
16
* License along with this library; if not, write to the Free Software
17
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18
*
19
* Authors:
20
* Daniel Kopecek <dkopecek@redhat.com>
21
*/
22
#ifndef PROBE_H
23
#define PROBE_H
24
25
#include <sys/types.h>
26
#include <unistd.h>
27
#include <stdint.h>
28
#include <stddef.h>
29
#include <stdarg.h>
30
#include <pthread.h>
31
#include <seap.h>
32
#include "ncache.h"
33
#include "rcache.h"
34
#include "icache.h"
35
#include "probe-common.h"
36
37
typedef
struct
{
38
int
option;
39
int (*handler)(int, va_list);
40
}
probe_option_t
;
41
42
typedef
struct
{
43
pthread_rwlock_t rwlock;
44
uint32_t flags;
45
46
char
*name;
47
pid_t pid;
48
49
void
*probe_arg;
50
int
probe_exitcode;
51
52
SEAP_CTX_t
*
SEAP_ctx
;
53
int
sd
;
55
pthread_t th_input;
56
pthread_t th_signal;
57
58
rbt_t
*workers;
59
uint32_t max_threads;
60
uint32_t max_chdepth;
61
62
probe_rcache_t
*
rcache
;
63
probe_ncache_t
*
ncache
;
64
probe_icache_t
*
icache
;
66
probe_option_t
*
option
;
67
size_t
optcnt
;
68
}
probe_t
;
69
70
struct
probe_ctx
{
71
SEXP_t
*
probe_in
;
72
SEXP_t
*
probe_out
;
73
SEXP_t
*
filters
;
74
probe_icache_t
*
icache
;
75
};
76
77
extern
pthread_barrier_t OSCAP_GSYM(th_barrier);
78
79
#endif
/* PROBE_H */
Generated by
1.8.3.1