~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/trace/events/damon.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /include/trace/events/damon.h (Architecture i386) and /include/trace/events/damon.h (Architecture alpha)


  1 /* SPDX-License-Identifier: GPL-2.0 */              1 /* SPDX-License-Identifier: GPL-2.0 */
  2 #undef TRACE_SYSTEM                                 2 #undef TRACE_SYSTEM
  3 #define TRACE_SYSTEM damon                          3 #define TRACE_SYSTEM damon
  4                                                     4 
  5 #if !defined(_TRACE_DAMON_H) || defined(TRACE_      5 #if !defined(_TRACE_DAMON_H) || defined(TRACE_HEADER_MULTI_READ)
  6 #define _TRACE_DAMON_H                              6 #define _TRACE_DAMON_H
  7                                                     7 
  8 #include <linux/damon.h>                            8 #include <linux/damon.h>
  9 #include <linux/types.h>                            9 #include <linux/types.h>
 10 #include <linux/tracepoint.h>                      10 #include <linux/tracepoint.h>
 11                                                    11 
 12 TRACE_EVENT_CONDITION(damos_before_apply,          12 TRACE_EVENT_CONDITION(damos_before_apply,
 13                                                    13 
 14         TP_PROTO(unsigned int context_idx, uns     14         TP_PROTO(unsigned int context_idx, unsigned int scheme_idx,
 15                 unsigned int target_idx, struc     15                 unsigned int target_idx, struct damon_region *r,
 16                 unsigned int nr_regions, bool      16                 unsigned int nr_regions, bool do_trace),
 17                                                    17 
 18         TP_ARGS(context_idx, target_idx, schem     18         TP_ARGS(context_idx, target_idx, scheme_idx, r, nr_regions, do_trace),
 19                                                    19 
 20         TP_CONDITION(do_trace),                    20         TP_CONDITION(do_trace),
 21                                                    21 
 22         TP_STRUCT__entry(                          22         TP_STRUCT__entry(
 23                 __field(unsigned int, context_     23                 __field(unsigned int, context_idx)
 24                 __field(unsigned int, scheme_i     24                 __field(unsigned int, scheme_idx)
 25                 __field(unsigned long, target_     25                 __field(unsigned long, target_idx)
 26                 __field(unsigned long, start)      26                 __field(unsigned long, start)
 27                 __field(unsigned long, end)        27                 __field(unsigned long, end)
 28                 __field(unsigned int, nr_acces     28                 __field(unsigned int, nr_accesses)
 29                 __field(unsigned int, age)         29                 __field(unsigned int, age)
 30                 __field(unsigned int, nr_regio     30                 __field(unsigned int, nr_regions)
 31         ),                                         31         ),
 32                                                    32 
 33         TP_fast_assign(                            33         TP_fast_assign(
 34                 __entry->context_idx = context     34                 __entry->context_idx = context_idx;
 35                 __entry->scheme_idx = scheme_i     35                 __entry->scheme_idx = scheme_idx;
 36                 __entry->target_idx = target_i     36                 __entry->target_idx = target_idx;
 37                 __entry->start = r->ar.start;      37                 __entry->start = r->ar.start;
 38                 __entry->end = r->ar.end;          38                 __entry->end = r->ar.end;
 39                 __entry->nr_accesses = r->nr_a     39                 __entry->nr_accesses = r->nr_accesses_bp / 10000;
 40                 __entry->age = r->age;             40                 __entry->age = r->age;
 41                 __entry->nr_regions = nr_regio     41                 __entry->nr_regions = nr_regions;
 42         ),                                         42         ),
 43                                                    43 
 44         TP_printk("ctx_idx=%u scheme_idx=%u ta     44         TP_printk("ctx_idx=%u scheme_idx=%u target_idx=%lu nr_regions=%u %lu-%lu: %u %u",
 45                         __entry->context_idx,      45                         __entry->context_idx, __entry->scheme_idx,
 46                         __entry->target_idx, _     46                         __entry->target_idx, __entry->nr_regions,
 47                         __entry->start, __entr     47                         __entry->start, __entry->end,
 48                         __entry->nr_accesses,      48                         __entry->nr_accesses, __entry->age)
 49 );                                                 49 );
 50                                                    50 
 51 TRACE_EVENT(damon_aggregated,                      51 TRACE_EVENT(damon_aggregated,
 52                                                    52 
 53         TP_PROTO(unsigned int target_id, struc     53         TP_PROTO(unsigned int target_id, struct damon_region *r,
 54                 unsigned int nr_regions),          54                 unsigned int nr_regions),
 55                                                    55 
 56         TP_ARGS(target_id, r, nr_regions),         56         TP_ARGS(target_id, r, nr_regions),
 57                                                    57 
 58         TP_STRUCT__entry(                          58         TP_STRUCT__entry(
 59                 __field(unsigned long, target_     59                 __field(unsigned long, target_id)
 60                 __field(unsigned int, nr_regio     60                 __field(unsigned int, nr_regions)
 61                 __field(unsigned long, start)      61                 __field(unsigned long, start)
 62                 __field(unsigned long, end)        62                 __field(unsigned long, end)
 63                 __field(unsigned int, nr_acces     63                 __field(unsigned int, nr_accesses)
 64                 __field(unsigned int, age)         64                 __field(unsigned int, age)
 65         ),                                         65         ),
 66                                                    66 
 67         TP_fast_assign(                            67         TP_fast_assign(
 68                 __entry->target_id = target_id     68                 __entry->target_id = target_id;
 69                 __entry->nr_regions = nr_regio     69                 __entry->nr_regions = nr_regions;
 70                 __entry->start = r->ar.start;      70                 __entry->start = r->ar.start;
 71                 __entry->end = r->ar.end;          71                 __entry->end = r->ar.end;
 72                 __entry->nr_accesses = r->nr_a     72                 __entry->nr_accesses = r->nr_accesses;
 73                 __entry->age = r->age;             73                 __entry->age = r->age;
 74         ),                                         74         ),
 75                                                    75 
 76         TP_printk("target_id=%lu nr_regions=%u     76         TP_printk("target_id=%lu nr_regions=%u %lu-%lu: %u %u",
 77                         __entry->target_id, __     77                         __entry->target_id, __entry->nr_regions,
 78                         __entry->start, __entr     78                         __entry->start, __entry->end,
 79                         __entry->nr_accesses,      79                         __entry->nr_accesses, __entry->age)
 80 );                                                 80 );
 81                                                    81 
 82 #endif /* _TRACE_DAMON_H */                        82 #endif /* _TRACE_DAMON_H */
 83                                                    83 
 84 /* This part must be outside protection */         84 /* This part must be outside protection */
 85 #include <trace/define_trace.h>                    85 #include <trace/define_trace.h>
 86                                                    86 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php