File: dt_bpf_maps.h

package info (click to toggle)
dtrace 2.0.5-1
  • links: PTS
  • area: main
  • in suites: sid
  • size: 24,408 kB
  • sloc: ansic: 61,247; sh: 17,997; asm: 1,717; lex: 947; awk: 754; yacc: 695; perl: 37; sed: 17; makefile: 15
file content (49 lines) | stat: -rw-r--r-- 1,370 bytes parent folder | download
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
/*
 * Oracle Linux DTrace.
 * Copyright (c) 2019, 2025, Oracle and/or its affiliates. All rights reserved.
 * Licensed under the Universal Permissive License v 1.0 as shown at
 * http://oss.oracle.com/licenses/upl.
 */

#ifndef _DT_BPF_MAPS_H
#define _DT_BPF_MAPS_H

#ifdef  __cplusplus
extern "C" {
#endif

#include <stddef.h>
#include <dtrace/conf.h>

typedef struct dt_bpf_probe	dt_bpf_probe_t;
struct dt_bpf_probe {
	size_t		prv;		/* probeprov string offset in strtab */
	size_t		mod;		/* probemod string offset in strtab */
	size_t		fun;		/* probefunc string offset in strtab */
	size_t		prb;		/* probename string offset in strtab */
};

typedef struct dt_bpf_specs	dt_bpf_specs_t;
struct dt_bpf_specs {
	uint64_t	written;	/* number of spec buffers written */
	uint64_t	size;		/* data size */
	uint32_t	draining;	/* 1 if userspace has been asked to
					 * drain this buffer */
};

typedef struct dt_bpf_cpuinfo	dt_bpf_cpuinfo_t;
struct dt_bpf_cpuinfo {
	cpuinfo_t	ci;
	uint64_t	buf_drops;	/* CPU principal drop counter */
	uint64_t	agg_drops;	/* CPU aggregation drop counter */
	uint64_t	lockstat_lock;	/* lockstat: lock being traced */
	uint64_t	lockstat_bfrom;	/* lockstat: block time start */
	uint64_t	lockstat_btime;	/* lockstat: block time */
	uint64_t	lockstat_stime;	/* lockstat: spin time */
};

#ifdef  __cplusplus
}
#endif

#endif /* _DT_BPF_FUNCS_H */