]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blob - include/trace/events/damon.h
Merge https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf
[mirror_ubuntu-jammy-kernel.git] / include / trace / events / damon.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #undef TRACE_SYSTEM
3 #define TRACE_SYSTEM damon
4
5 #if !defined(_TRACE_DAMON_H) || defined(TRACE_HEADER_MULTI_READ)
6 #define _TRACE_DAMON_H
7
8 #include <linux/damon.h>
9 #include <linux/types.h>
10 #include <linux/tracepoint.h>
11
12 TRACE_EVENT(damon_aggregated,
13
14 TP_PROTO(struct damon_target *t, struct damon_region *r,
15 unsigned int nr_regions),
16
17 TP_ARGS(t, r, nr_regions),
18
19 TP_STRUCT__entry(
20 __field(unsigned long, target_id)
21 __field(unsigned int, nr_regions)
22 __field(unsigned long, start)
23 __field(unsigned long, end)
24 __field(unsigned int, nr_accesses)
25 ),
26
27 TP_fast_assign(
28 __entry->target_id = t->id;
29 __entry->nr_regions = nr_regions;
30 __entry->start = r->ar.start;
31 __entry->end = r->ar.end;
32 __entry->nr_accesses = r->nr_accesses;
33 ),
34
35 TP_printk("target_id=%lu nr_regions=%u %lu-%lu: %u",
36 __entry->target_id, __entry->nr_regions,
37 __entry->start, __entry->end, __entry->nr_accesses)
38 );
39
40 #endif /* _TRACE_DAMON_H */
41
42 /* This part must be outside protection */
43 #include <trace/define_trace.h>