Path: blob/master/arch/powerpc/platforms/cell/spufs/sputrace.h
26498 views
/* SPDX-License-Identifier: GPL-2.0 */1#if !defined(_TRACE_SPUFS_H) || defined(TRACE_HEADER_MULTI_READ)2#define _TRACE_SPUFS_H34#include <linux/tracepoint.h>5#include <linux/stringify.h>67#undef TRACE_SYSTEM8#define TRACE_SYSTEM spufs910TRACE_EVENT(spufs_context,11TP_PROTO(struct spu_context *ctx, struct spu *spu, const char *name),12TP_ARGS(ctx, spu, name),1314TP_STRUCT__entry(15__field(const char *, name)16__field(int, owner_tid)17__field(int, number)18),1920TP_fast_assign(21__entry->name = name;22__entry->owner_tid = ctx->tid;23__entry->number = spu ? spu->number : -1;24),2526TP_printk("%s (ctxthread = %d, spu = %d)",27__entry->name, __entry->owner_tid, __entry->number)28);2930#define spu_context_trace(name, ctx, spu) \31trace_spufs_context(ctx, spu, __stringify(name))32#define spu_context_nospu_trace(name, ctx) \33trace_spufs_context(ctx, NULL, __stringify(name))3435#endif /* _TRACE_SPUFS_H */3637#undef TRACE_INCLUDE_PATH38#define TRACE_INCLUDE_PATH .39#define TRACE_INCLUDE_FILE sputrace40#include <trace/define_trace.h>414243