Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
sputrace.h File Reference
#include <linux/tracepoint.h>
#include <trace/define_trace.h>

Go to the source code of this file.

Macros

#define _TRACE_SPUFS_H
 
#define TRACE_SYSTEM   spufs
 
#define spu_context_trace(name, ctx, spu)   trace_spufs_context(ctx, spu, __stringify(name))
 
#define spu_context_nospu_trace(name, ctx)   trace_spufs_context(ctx, NULL, __stringify(name))
 
#define TRACE_INCLUDE_PATH   .
 
#define TRACE_INCLUDE_FILE   sputrace
 

Functions

 TRACE_EVENT (spufs_context, TP_PROTO(struct spu_context *ctx, struct spu *spu, const char *name), TP_ARGS(ctx, spu, name), TP_STRUCT__entry(__field(const char *, name) __field(int, owner_tid) __field(int, number)), TP_fast_assign(__entry->name=name;__entry->owner_tid=ctx->tid;__entry->number=spu?spu->number:-1;), TP_printk("%s (ctxthread = %d, spu = %d)", __entry->name, __entry->owner_tid, __entry->number))
 

Macro Definition Documentation

#define _TRACE_SPUFS_H

Definition at line 2 of file sputrace.h.

#define spu_context_nospu_trace (   name,
  ctx 
)    trace_spufs_context(ctx, NULL, __stringify(name))

Definition at line 31 of file sputrace.h.

#define spu_context_trace (   name,
  ctx,
  spu 
)    trace_spufs_context(ctx, spu, __stringify(name))

Definition at line 29 of file sputrace.h.

#define TRACE_INCLUDE_FILE   sputrace

Definition at line 38 of file sputrace.h.

#define TRACE_INCLUDE_PATH   .

Definition at line 37 of file sputrace.h.

#define TRACE_SYSTEM   spufs

Definition at line 7 of file sputrace.h.

Function Documentation

TRACE_EVENT ( spufs_context  ,
TP_PROTO(struct spu_context *ctx, struct spu *spu, const char *name ,
TP_ARGS(ctx, spu, name ,
TP_STRUCT__entry(__field(const char *, name) __field(int, owner_tid) __field(int, number))  ,
TP_fast_assign(__entry->name=name;__entry->owner_tid=ctx->tid;__entry->number=spu?spu->number:-1;)  ,
TP_printk("%s (ctxthread = %d, spu = %d)", __entry->name, __entry->owner_tid, __entry->number  
)