QUARK-MON(8) | System Manager's Manual | QUARK-MON(8) |
quark-mon
—
monitor and print quark events
quark-mon |
[-bDekstv ] [-C
filename] [-l
maxlength] [-m
maxnodes] |
quark-mon |
-h |
quark-mon |
quark-mon
program listens to all incoming
quark(7) events and prints them to
stdout, the output format used is the one in
quark_event_dump(3).
The main utility is for testing and debugging quark, it's also a
good introduction to the code base. quark-mon
runs
until a SIGINT is received.
The options are as follows:
-b
-C
filenamedot -Tsvg filename -o filename.svg
-D
-e
-g
-h
-k
-l
maxlength-s
-t
-v
-m
maxnodes-V
If no backend option is specified,
quark-mon
will attempt EBPF, and then kprobe if EBPF
failed. If only one of -b
or
-k
is passed, then quark-mon
will be restricted to that option only.
quark-mon
exits with 0 in if a SIGINT was
sent, or 1 in case of error.
Running:
$ quark-mon
outputs:
->1607007 (FORK+EXEC+EXIT) COMM comm=locale CMDL cmdline=[ locale, charmap ] PROC ppid=1607003 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=1713340073284870415 CWD cwd=/d/e/quark FILE filename=/usr/bin/locale EXIT exit_code=0 exit_time=434523672438062 ->1607008 (FORK+EXEC+EXIT) COMM comm=groff CMDL cmdline=[ groff, -mtty-char, -Tutf8, -mandoc, -rLL=109n, -rLT=109n, -P-c ] PROC ppid=1607003 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=1713340073288110375 CWD cwd=/d/e/quark FILE filename=/usr/bin/groff EXIT exit_code=0 exit_time=434523688177774 ...
Refer to quark_event_dump(3) for the output format description.
quark_event_dump(3), quark_process_lookup(3), quark_queue_block(3), quark_queue_close(3), quark_queue_get_epollfd(3), quark_queue_get_events(3), quark_queue_get_stats(3), quark_queue_open(3), quark-btf(8), quark-test(8)
October 28, 2024 | Linux |