arch/s390/include/asm/trace/ap.h

Source file repositories/reference/linux-study-clean/arch/s390/include/asm/trace/ap.h

File Facts

System
Linux kernel
Corpus path
arch/s390/include/asm/trace/ap.h
Extension
.h
Size
2948 bytes
Lines
88
Domain
Architecture Layer
Bucket
arch/s390
Inferred role
Architecture Layer: implementation source
Status
source implementation candidate

Why This File Exists

CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.

Dependency Surface

Detected Declarations

Annotated Snippet

#undef TRACE_SYSTEM
#define TRACE_SYSTEM s390

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

#include <linux/tracepoint.h>

DECLARE_EVENT_CLASS(s390_ap_nqapdqap_template,
		    TP_PROTO(u16 card, u16 dom, u32 status, u64 psmid),
		    TP_ARGS(card, dom, status, psmid),
		    TP_STRUCT__entry(
			    __field(u16, card)
			    __field(u16, dom)
			    __field(u32, status)
			    __field(u64, psmid)),
		    TP_fast_assign(
			    __entry->card = card;
			    __entry->dom = dom;
			    __entry->status = status;
			    __entry->psmid = psmid;),
		    TP_printk("card=%u dom=%u status=0x%08x psmid=0x%016lx",
			      (unsigned short)__entry->card,
			      (unsigned short)__entry->dom,
			      (unsigned int)__entry->status,
			      (unsigned long)__entry->psmid)
);

/**
 * trace_s390_ap_nqap - ap msg nqap tracepoint function
 * @card:   Crypto card number addressed.
 * @dom:    Domain within the crypto card addressed.
 * @status: AP queue status (GR1 on return of nqap).
 * @psmid:  Unique id identifying this request/reply.
 *
 * Called immediately after a request has been enqueued into
 * the AP firmware queue with the NQAP command.
 */
DEFINE_EVENT(s390_ap_nqapdqap_template,
	     s390_ap_nqap,
	     TP_PROTO(u16 card, u16 dom, u32 status, u64 psmid),
	     TP_ARGS(card, dom, status, psmid)
);

/**
 * trace_s390_ap_dqap - ap msg dqap tracepoint function
 * @card:  Crypto card number addressed.
 * @dom:   Domain within the crypto card addressed.
 * @status: AP queue status (GR1 on return of dqap).
 * @psmid: Unique id identifying this request/reply.
 *
 * Called immediately after a reply has been dequeued from
 * the AP firmware queue with the DQAP command.
 */
DEFINE_EVENT(s390_ap_nqapdqap_template,
	     s390_ap_dqap,
	     TP_PROTO(u16 card, u16 dom, u32 status, u64 psmid),
	     TP_ARGS(card, dom, status, psmid)
);

#endif /* _TRACE_S390_AP_H */

/* This part must be outside protection */

#undef TRACE_INCLUDE_PATH
#undef TRACE_INCLUDE_FILE

#define TRACE_INCLUDE_PATH asm/trace
#define TRACE_INCLUDE_FILE ap

#include <trace/define_trace.h>

Annotation

Implementation Notes