summaryrefslogtreecommitdiff
path: root/src/trace/root.zig
blob: 62a7a906fab050ab9f67e1cbc39d7db05c6ea583 (plain) (blame)
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
//! ztrace: one event format, many ways to produce it, one recording.
pub const event = @import("event.zig");
pub const Event = event.Event;
pub const Kind = event.Kind;
pub const Regs = event.Regs;
pub const Sink = event.Sink;
pub const Ring = @import("Ring.zig");
pub const store = @import("store.zig");
pub const Recorder = store.Recorder;
pub const Trace = store.Trace;
pub const ptrace = @import("ptrace.zig");
pub const Debugger = @import("Debugger.zig");
pub const Symbols = @import("Symbols.zig");
pub const syscalls = @import("syscalls.zig");
/// Inside the target: the ring it was handed.
pub const client = @import("client.zig");
/// Inside the tracer: a target running with a ring.
pub const host = @import("host.zig");
/// The kernel's view, unprivileged: counters, samples, faults, maps, syscalls, watchpoints.
pub const perf = @import("perf.zig");
/// Static probes (the ELF notes of <sys/sdt.h>) and their arguments.
pub const usdt = @import("usdt.zig");
/// The kernel's view, privileged: BPF on tracepoints, kprobes, uprobes, USDT.
pub const bpf = @import("bpf.zig");

test {
    _ = event;
    _ = Ring;
    _ = store;
    _ = ptrace;
    _ = Debugger;
    _ = Symbols;
    _ = syscalls;
    _ = client;
    _ = host;
    _ = perf;
    _ = usdt;
    _ = bpf;
}