include/trace/events/timer_migration.h

Source file repositories/reference/linux-study-clean/include/trace/events/timer_migration.h

File Facts

System
Linux kernel
Corpus path
include/trace/events/timer_migration.h
Extension
.h
Size
7311 bytes
Lines
303
Domain
Repository Root And Misc
Bucket
include
Inferred role
Repository Root And Misc: implementation source
Status
source implementation candidate

Why This File Exists

Top-level or miscellaneous repository surface. Use this as map coverage unless a later manual pass promotes the file into a deeper subsystem dossier.

Dependency Surface

Detected Declarations

Annotated Snippet

#undef TRACE_SYSTEM
#define TRACE_SYSTEM timer_migration

#if !defined(_TRACE_TIMER_MIGRATION_H) || defined(TRACE_HEADER_MULTI_READ)
#define _TRACE_TIMER_MIGRATION_H

#include <linux/tracepoint.h>

/* Group events */
TRACE_EVENT(tmigr_group_set,

	TP_PROTO(struct tmigr_group *group),

	TP_ARGS(group),

	TP_STRUCT__entry(
		__field( void *,	group		)
		__field( unsigned int,	lvl		)
		__field( unsigned int,	numa_node	)
	),

	TP_fast_assign(
		__entry->group		= group;
		__entry->lvl		= group->level;
		__entry->numa_node	= group->numa_node;
	),

	TP_printk("group=%p lvl=%d numa=%d",
		  __entry->group, __entry->lvl, __entry->numa_node)
);

TRACE_EVENT(tmigr_connect_child_parent,

	TP_PROTO(struct tmigr_hierarchy *hier, struct tmigr_group *child),

	TP_ARGS(hier, child),

	TP_STRUCT__entry(
		__field( void *,	child		)
		__field( void *,	parent		)
		__field( unsigned int,	lvl		)
		__field( unsigned int,	numa_node	)
		__field( unsigned int,	capacity	)
		__field( unsigned int,	num_children	)
		__field( u32,		groupmask	)
	),

	TP_fast_assign(
		__entry->child		= child;
		__entry->parent		= child->parent;
		__entry->lvl		= child->parent->level;
		__entry->numa_node	= child->parent->numa_node;
		__entry->capacity	= hier->capacity;
		__entry->num_children	= child->parent->num_children;
		__entry->groupmask	= child->groupmask;
	),

	TP_printk("group=%p groupmask=%0x parent=%p lvl=%d numa=%d capacity=%d num_children=%d",
		  __entry->child,  __entry->groupmask, __entry->parent, __entry->lvl,
		  __entry->numa_node, __entry->capacity, __entry->num_children)
);

TRACE_EVENT(tmigr_connect_cpu_parent,

	TP_PROTO(struct tmigr_hierarchy *hier, struct tmigr_cpu *tmc),

	TP_ARGS(hier, tmc),

	TP_STRUCT__entry(
		__field( void *,	parent		)
		__field( unsigned int,	cpu		)
		__field( unsigned int,	lvl		)
		__field( unsigned int,	numa_node	)
		__field( unsigned int,	capacity	)
		__field( unsigned int,	num_children	)
		__field( u32,		groupmask	)
	),

	TP_fast_assign(
		__entry->parent		= tmc->tmgroup;
		__entry->cpu		= tmc->cpuevt.cpu;
		__entry->lvl		= tmc->tmgroup->level;
		__entry->numa_node	= tmc->tmgroup->numa_node;
		__entry->capacity	= hier->capacity;
		__entry->num_children	= tmc->tmgroup->num_children;
		__entry->groupmask	= tmc->groupmask;
	),

	TP_printk("cpu=%d groupmask=%0x parent=%p lvl=%d numa=%d capacity=%d num_children=%d",
		  __entry->cpu,	 __entry->groupmask, __entry->parent, __entry->lvl,

Annotation

Implementation Notes