Re: [PATCH v10 19/20] timer_migration: Add tracepoints

Frederic Weisbecker
2024-02-01T16:47:29Z

Le Mon, Jan 15, 2024 at 03:37:42PM +0100, Anna-Maria Behnsen a écrit :
> +TRACE_EVENT(tmigr_connect_child_parent,
> +
> + TP_PROTO(struct tmigr_group *child),
> +
> + TP_ARGS(child),
> +
> + TP_STRUCT__entry(
> + __field( void *, child )
> + __field( void *, parent )
> + __field( unsigned int, lvl )
> + __field( unsigned int, numa_node )
> + __field( unsigned int, num_children )
> + __field( u32, childmask )
> + ),
> +
> + TP_fast_assign(
> + __entry->child = child;
> + __entry->parent = child->parent;
> + __entry->lvl = child->parent->level;
> + __entry->numa_node = child->parent->numa_node;
> + __entry->numa_node = child->parent->num_children;

__entry->num_children ?

> + __entry->childmask = child->childmask;
> + ),
> +
> + TP_printk("group=%p childmask=%0x parent=%p lvl=%d numa=%d num_children=%d",
> + __entry->child, __entry->childmask, __entry->parent,
> + __entry->lvl, __entry->numa_node, __entry->num_children)
> +);
> +
> +TRACE_EVENT(tmigr_connect_cpu_parent,
> +
> + TP_PROTO(struct tmigr_cpu *tmc),
> +
> + TP_ARGS(tmc),
> +
> + TP_STRUCT__entry(
> + __field( void *, parent )
> + __field( unsigned int, cpu )
> + __field( unsigned int, lvl )
> + __field( unsigned int, numa_node )
> + __field( unsigned int, num_children )
> + __field( u32, childmask )
> + ),
> +
> + 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->numa_node = tmc->tmgroup->num_children;

Ditto.

Thanks.