-
Notifications
You must be signed in to change notification settings - Fork 2
/
quark_event_dump.3
76 lines (76 loc) · 1.75 KB
/
quark_event_dump.3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
.Dd $Mdocdate$
.Dt QUARK_EVENT_DUMP 3
.Os
.Sh NAME
.Nm quark_event_dump
.Nd dump a
.Vt quark_event
to a
.Vt FILE
.Sh SYNOPSIS
.In quark.h
.Ft int
.Fn quark_event_dump "struct quark_event *qev" "FILE *file"
.Sh DESCRIPTION
.Nm
dumps a human readable format of the event pointed to by
.Fa qev
to the file specified in
.Fa file .
.Sh OUTPUT EXAMPLE
.Bd -literal
->818621 (FORK+EXEC+EXIT)
COMM comm=git
CMDL cmdline=[ /usr/bin/git, --no-pager, ls-tree, --name-only, -z, HEAD, --, quark_event_dump.3 ]
PROC ppid=5082
PROC uid=1000 gid=1000 suid=1000 sgid=1000 euid=1000 egid=1000
PROC cap_inheritable=0x0 cap_permitted=0x0 cap_effective=0x0
PROC cap_bset=0x1ffffffffff cap_ambient=0x0
PROC time_boot=1712219191035753014
CWD cwd=/home/haesbaert
FILE filename=/usr/bin/git
EXIT exit_code=0 exit_time=72031260061483
.Ed
.Sh FORMAT
The number
.Sy 818621
after the
.Sy ->
is the pid of the originating process.
The string
.Sy (FORK+EXEC+EXIT)
describes what is aggregated in
.Sy this
specific event.
The following fields contain all the data we know about pid
.Sy 818621 ,
which originates both from this event, and whatever has been learned before and
is cached.
.Pp
The first column of the subsequent lines is a description of the
.Vt flag
from where the fields in the second column originates from.
For example
.Sy PROC
is
.Dv QUARK_F_PROC
and produces the fields
.Sy ppid ,
.Sy uid ,
.Sy gid ,
.Sy suid ...
.Sh RETURN VALUES
Zero on success, -1 in error from
.Xr fwrite 3 .
.Sh SEE ALSO
.Xr quark_process_lookup 3 ,
.Xr quark_queue_block 3 ,
.Xr quark_queue_close 3 ,
.Xr quark_queue_default_attr 3 ,
.Xr quark_queue_get_epollfd 3 ,
.Xr quark_queue_get_event 3 ,
.Xr quark_queue_get_stats 3 ,
.Xr quark_queue_open 3 ,
.Xr quark 7 ,
.Xr quark-btf 8 ,
.Xr quark-mon 8