]>
git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blob - include/trace/events/damon.h
1 /* SPDX-License-Identifier: GPL-2.0 */
3 #define TRACE_SYSTEM damon
5 #if !defined(_TRACE_DAMON_H) || defined(TRACE_HEADER_MULTI_READ)
8 #include <linux/damon.h>
9 #include <linux/types.h>
10 #include <linux/tracepoint.h>
12 TRACE_EVENT(damon_aggregated
,
14 TP_PROTO(struct damon_target
*t
, struct damon_region
*r
,
15 unsigned int nr_regions
),
17 TP_ARGS(t
, r
, nr_regions
),
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
)
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
;
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
)
40 #endif /* _TRACE_DAMON_H */
42 /* This part must be outside protection */
43 #include <trace/define_trace.h>