NewMadeleine

Documentation

« back to PM2 home.
nm_trace.h File Reference

Definitions for traces. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define NM_TRACE_EVENT_CONNECT   ((nm_trace_event_t)0x0100)
 
#define NM_TRACE_EVENT_DISCONNECT   ((nm_trace_event_t)0x0101)
 
#define NM_TRACE_EVENT_CLOCK_SYNCHRONIZE   ((nm_trace_event_t)0x0102)
 Event used to synchronize nmad traces with others.
 
#define NM_TRACE_EVENT_VAR_N_PACKS   ((nm_trace_event_t)0x0200)
 current number of pending packs
 
#define NM_TRACE_EVENT_VAR_N_UNPACKS   ((nm_trace_event_t)0x0201)
 current number of pending unpacks
 
#define NM_TRACE_EVENT_CORE_PACK_SUBMIT   ((nm_trace_event_t)0x0211)
 pack submitted to nmad, still in submission list
 
#define NM_TRACE_EVENT_CORE_PACK_FLUSH   ((nm_trace_event_t)0x0212)
 pack flushed out of submission list, submitting to strat
 
#define NM_TRACE_EVENT_CORE_PACK_RDV   ((nm_trace_event_t)0x0213)
 rdv for this pack is packed
 
#define NM_TRACE_EVENT_CORE_PACK_RTR   ((nm_trace_event_t)0x0214)
 rtr has been received for this pack
 
#define NM_TRACE_EVENT_CORE_PACK_IN_PW   ((nm_trace_event_t)0x0215)
 first chunk of data packed in a pw, ready to send
 
#define NM_TRACE_EVENT_CORE_PACK_PW_POSTED   ((nm_trace_event_t)0x0216)
 pw containing first chunk of data has been posted
 
#define NM_TRACE_EVENT_CORE_PACK_COMPLETED   ((nm_trace_event_t)0x0217)
 
#define NM_TRACE_EVENT_CORE_UNPACK_SUBMIT   ((nm_trace_event_t)0x0221)
 
#define NM_TRACE_EVENT_CORE_UNPACK_RDV   ((nm_trace_event_t)0x0222)
 a rdv has been received for this unpack
 
#define NM_TRACE_EVENT_CORE_UNPACK_RTR   ((nm_trace_event_t)0x0223)
 a rtr has been sent for this unpack
 
#define NM_TRACE_EVENT_CORE_UNPACK_MATCH_FIRST   ((nm_trace_event_t)0x0224)
 first fragment matches
 
#define NM_TRACE_EVENT_CORE_UNPACK_MATCH_LAST   ((nm_trace_event_t)0x0225)
 last fragment matches
 
#define NM_TRACE_EVENT_CORE_UNPACK_COMPLETED   ((nm_trace_event_t)0x0226)
 
#define NM_TRACE_EVENT_PW_SEND_POST   ((nm_trace_event_t)0x0411)
 pw send posted to the driver
 
#define NM_TRACE_EVENT_PW_SEND_POLL   ((nm_trace_event_t)0x0412)
 polling the pw (unused)
 
#define NM_TRACE_EVENT_PW_SEND_COMPLETE   ((nm_trace_event_t)0x0413)
 pw send is completed
 
#define NM_TRACE_EVENT_PW_SEND_DESTROY   ((nm_trace_event_t)0x0414)
 pw is destroyed after send
 
#define NM_TRACE_EVENT_PW_RECV_PENDING   ((nm_trace_event_t)0x0421)
 pw ready for recv, not posted yet
 
#define NM_TRACE_EVENT_PW_RECV_POST   ((nm_trace_event_t)0x0422)
 pw recv posted to the driver
 
#define NM_TRACE_EVENT_PW_RECV_POLL   ((nm_trace_event_t)0x0423)
 polling the given pw (unused)
 
#define NM_TRACE_EVENT_PW_RECV_COMPLETE   ((nm_trace_event_t)0x0424)
 pw recv is completed
 
#define NM_TRACE_EVENT_PW_RECV_DESTROY   ((nm_trace_event_t)0x0425)
 pw is destroyed after recv
 
#define NM_TRACE_STATE_CORE_NONE   ((nm_trace_event_t)0x0800)
 
#define NM_TRACE_STATE_CORE_STRATEGY   ((nm_trace_event_t)0x0801)
 
#define NM_TRACE_STATE_CORE_POLLING   ((nm_trace_event_t)0x0802)
 
#define NM_TRACE_STATE_CORE_TASK_FLUSH   ((nm_trace_event_t)0x0803)
 
#define NM_TRACE_STATE_CORE_DISPATCHING   ((nm_trace_event_t)0x0804)
 
#define NM_TRACE_STATE_CORE_UNPACK_NEXT   ((nm_trace_event_t)0x0805)
 
#define NM_TRACE_STATE_CORE_COMPLETED_PW   ((nm_trace_event_t)0x0806)
 
#define NM_TRACE_STATE_CORE_PACK_SUBMIT   ((nm_trace_event_t)0x0807)
 
#define NM_TRACE_STATE_CORE_HANDLER   ((nm_trace_event_t)0x0808)
 
#define NM_TRACE_FILTER_GLOBAL   0x0100
 
#define NM_TRACE_FILTER_PACK   0x0200
 
#define NM_TRACE_FILTER_DRIVER   0x0400
 
#define NM_TRACE_FILTER_CORE   0x0800
 
#define NM_TRACE_FILTER_LINK   0x1000
 
#define NM_TRACE_FILTER_ALL   0xFF00
 
#define NM_TRACE_FILTER_PW_SEND   0x0410
 
#define NM_TRACE_FILTER_PW_RECV   0x0420
 

Typedefs

typedef int nm_trace_event_t
 

Functions

static void nm_trace_var (nm_trace_event_t event, int value, struct nm_gate_s *p_gate, struct nm_drv_s *p_drv)
 
static void nm_trace_state (nm_trace_event_t event, struct nm_gate_s *p_gate, struct nm_drv_s *p_drv)
 
static void nm_trace_event (nm_trace_event_t event, void *value, struct nm_gate_s *p_gate, struct nm_drv_s *p_drv, nm_core_tag_t core_tag, nm_seq_t seq, nm_len_t len)
 

Detailed Description

Definitions for traces.

Definition in file nm_trace.h.

Macro Definition Documentation

◆ NM_TRACE_EVENT_CLOCK_SYNCHRONIZE

#define NM_TRACE_EVENT_CLOCK_SYNCHRONIZE   ((nm_trace_event_t)0x0102)

Event used to synchronize nmad traces with others.

Definition at line 30 of file nm_trace.h.

◆ NM_TRACE_EVENT_CONNECT

#define NM_TRACE_EVENT_CONNECT   ((nm_trace_event_t)0x0100)

Definition at line 28 of file nm_trace.h.

◆ NM_TRACE_EVENT_CORE_PACK_COMPLETED

#define NM_TRACE_EVENT_CORE_PACK_COMPLETED   ((nm_trace_event_t)0x0217)

Definition at line 43 of file nm_trace.h.

◆ NM_TRACE_EVENT_CORE_PACK_FLUSH

#define NM_TRACE_EVENT_CORE_PACK_FLUSH   ((nm_trace_event_t)0x0212)

pack flushed out of submission list, submitting to strat

Definition at line 38 of file nm_trace.h.

◆ NM_TRACE_EVENT_CORE_PACK_IN_PW

#define NM_TRACE_EVENT_CORE_PACK_IN_PW   ((nm_trace_event_t)0x0215)

first chunk of data packed in a pw, ready to send

Definition at line 41 of file nm_trace.h.

◆ NM_TRACE_EVENT_CORE_PACK_PW_POSTED

#define NM_TRACE_EVENT_CORE_PACK_PW_POSTED   ((nm_trace_event_t)0x0216)

pw containing first chunk of data has been posted

Definition at line 42 of file nm_trace.h.

◆ NM_TRACE_EVENT_CORE_PACK_RDV

#define NM_TRACE_EVENT_CORE_PACK_RDV   ((nm_trace_event_t)0x0213)

rdv for this pack is packed

Definition at line 39 of file nm_trace.h.

◆ NM_TRACE_EVENT_CORE_PACK_RTR

#define NM_TRACE_EVENT_CORE_PACK_RTR   ((nm_trace_event_t)0x0214)

rtr has been received for this pack

Definition at line 40 of file nm_trace.h.

◆ NM_TRACE_EVENT_CORE_PACK_SUBMIT

#define NM_TRACE_EVENT_CORE_PACK_SUBMIT   ((nm_trace_event_t)0x0211)

pack submitted to nmad, still in submission list

Definition at line 37 of file nm_trace.h.

◆ NM_TRACE_EVENT_CORE_UNPACK_COMPLETED

#define NM_TRACE_EVENT_CORE_UNPACK_COMPLETED   ((nm_trace_event_t)0x0226)

Definition at line 50 of file nm_trace.h.

◆ NM_TRACE_EVENT_CORE_UNPACK_MATCH_FIRST

#define NM_TRACE_EVENT_CORE_UNPACK_MATCH_FIRST   ((nm_trace_event_t)0x0224)

first fragment matches

Definition at line 48 of file nm_trace.h.

◆ NM_TRACE_EVENT_CORE_UNPACK_MATCH_LAST

#define NM_TRACE_EVENT_CORE_UNPACK_MATCH_LAST   ((nm_trace_event_t)0x0225)

last fragment matches

Definition at line 49 of file nm_trace.h.

◆ NM_TRACE_EVENT_CORE_UNPACK_RDV

#define NM_TRACE_EVENT_CORE_UNPACK_RDV   ((nm_trace_event_t)0x0222)

a rdv has been received for this unpack

Definition at line 46 of file nm_trace.h.

◆ NM_TRACE_EVENT_CORE_UNPACK_RTR

#define NM_TRACE_EVENT_CORE_UNPACK_RTR   ((nm_trace_event_t)0x0223)

a rtr has been sent for this unpack

Definition at line 47 of file nm_trace.h.

◆ NM_TRACE_EVENT_CORE_UNPACK_SUBMIT

#define NM_TRACE_EVENT_CORE_UNPACK_SUBMIT   ((nm_trace_event_t)0x0221)

Definition at line 45 of file nm_trace.h.

◆ NM_TRACE_EVENT_DISCONNECT

#define NM_TRACE_EVENT_DISCONNECT   ((nm_trace_event_t)0x0101)

Definition at line 29 of file nm_trace.h.

◆ NM_TRACE_EVENT_PW_RECV_COMPLETE

#define NM_TRACE_EVENT_PW_RECV_COMPLETE   ((nm_trace_event_t)0x0424)

pw recv is completed

Definition at line 61 of file nm_trace.h.

◆ NM_TRACE_EVENT_PW_RECV_DESTROY

#define NM_TRACE_EVENT_PW_RECV_DESTROY   ((nm_trace_event_t)0x0425)

pw is destroyed after recv

Definition at line 62 of file nm_trace.h.

◆ NM_TRACE_EVENT_PW_RECV_PENDING

#define NM_TRACE_EVENT_PW_RECV_PENDING   ((nm_trace_event_t)0x0421)

pw ready for recv, not posted yet

Definition at line 58 of file nm_trace.h.

◆ NM_TRACE_EVENT_PW_RECV_POLL

#define NM_TRACE_EVENT_PW_RECV_POLL   ((nm_trace_event_t)0x0423)

polling the given pw (unused)

Definition at line 60 of file nm_trace.h.

◆ NM_TRACE_EVENT_PW_RECV_POST

#define NM_TRACE_EVENT_PW_RECV_POST   ((nm_trace_event_t)0x0422)

pw recv posted to the driver

Definition at line 59 of file nm_trace.h.

◆ NM_TRACE_EVENT_PW_SEND_COMPLETE

#define NM_TRACE_EVENT_PW_SEND_COMPLETE   ((nm_trace_event_t)0x0413)

pw send is completed

Definition at line 56 of file nm_trace.h.

◆ NM_TRACE_EVENT_PW_SEND_DESTROY

#define NM_TRACE_EVENT_PW_SEND_DESTROY   ((nm_trace_event_t)0x0414)

pw is destroyed after send

Definition at line 57 of file nm_trace.h.

◆ NM_TRACE_EVENT_PW_SEND_POLL

#define NM_TRACE_EVENT_PW_SEND_POLL   ((nm_trace_event_t)0x0412)

polling the pw (unused)

Definition at line 55 of file nm_trace.h.

◆ NM_TRACE_EVENT_PW_SEND_POST

#define NM_TRACE_EVENT_PW_SEND_POST   ((nm_trace_event_t)0x0411)

pw send posted to the driver

Definition at line 54 of file nm_trace.h.

◆ NM_TRACE_EVENT_VAR_N_PACKS

#define NM_TRACE_EVENT_VAR_N_PACKS   ((nm_trace_event_t)0x0200)

current number of pending packs

Definition at line 34 of file nm_trace.h.

◆ NM_TRACE_EVENT_VAR_N_UNPACKS

#define NM_TRACE_EVENT_VAR_N_UNPACKS   ((nm_trace_event_t)0x0201)

current number of pending unpacks

Definition at line 35 of file nm_trace.h.

◆ NM_TRACE_FILTER_ALL

#define NM_TRACE_FILTER_ALL   0xFF00

Definition at line 82 of file nm_trace.h.

◆ NM_TRACE_FILTER_CORE

#define NM_TRACE_FILTER_CORE   0x0800

Definition at line 80 of file nm_trace.h.

◆ NM_TRACE_FILTER_DRIVER

#define NM_TRACE_FILTER_DRIVER   0x0400

Definition at line 79 of file nm_trace.h.

◆ NM_TRACE_FILTER_GLOBAL

#define NM_TRACE_FILTER_GLOBAL   0x0100

Definition at line 77 of file nm_trace.h.

◆ NM_TRACE_FILTER_LINK

#define NM_TRACE_FILTER_LINK   0x1000

Definition at line 81 of file nm_trace.h.

◆ NM_TRACE_FILTER_PACK

#define NM_TRACE_FILTER_PACK   0x0200

Definition at line 78 of file nm_trace.h.

◆ NM_TRACE_FILTER_PW_RECV

#define NM_TRACE_FILTER_PW_RECV   0x0420

Definition at line 85 of file nm_trace.h.

◆ NM_TRACE_FILTER_PW_SEND

#define NM_TRACE_FILTER_PW_SEND   0x0410

Definition at line 84 of file nm_trace.h.

◆ NM_TRACE_STATE_CORE_COMPLETED_PW

#define NM_TRACE_STATE_CORE_COMPLETED_PW   ((nm_trace_event_t)0x0806)

Definition at line 71 of file nm_trace.h.

◆ NM_TRACE_STATE_CORE_DISPATCHING

#define NM_TRACE_STATE_CORE_DISPATCHING   ((nm_trace_event_t)0x0804)

Definition at line 69 of file nm_trace.h.

◆ NM_TRACE_STATE_CORE_HANDLER

#define NM_TRACE_STATE_CORE_HANDLER   ((nm_trace_event_t)0x0808)

Definition at line 73 of file nm_trace.h.

◆ NM_TRACE_STATE_CORE_NONE

#define NM_TRACE_STATE_CORE_NONE   ((nm_trace_event_t)0x0800)

Definition at line 65 of file nm_trace.h.

◆ NM_TRACE_STATE_CORE_PACK_SUBMIT

#define NM_TRACE_STATE_CORE_PACK_SUBMIT   ((nm_trace_event_t)0x0807)

Definition at line 72 of file nm_trace.h.

◆ NM_TRACE_STATE_CORE_POLLING

#define NM_TRACE_STATE_CORE_POLLING   ((nm_trace_event_t)0x0802)

Definition at line 67 of file nm_trace.h.

◆ NM_TRACE_STATE_CORE_STRATEGY

#define NM_TRACE_STATE_CORE_STRATEGY   ((nm_trace_event_t)0x0801)

Definition at line 66 of file nm_trace.h.

◆ NM_TRACE_STATE_CORE_TASK_FLUSH

#define NM_TRACE_STATE_CORE_TASK_FLUSH   ((nm_trace_event_t)0x0803)

Definition at line 68 of file nm_trace.h.

◆ NM_TRACE_STATE_CORE_UNPACK_NEXT

#define NM_TRACE_STATE_CORE_UNPACK_NEXT   ((nm_trace_event_t)0x0805)

Definition at line 70 of file nm_trace.h.

Typedef Documentation

◆ nm_trace_event_t

typedef int nm_trace_event_t

Definition at line 24 of file nm_trace.h.

Function Documentation

◆ nm_trace_event()

static void nm_trace_event ( nm_trace_event_t  event,
void *  value,
struct nm_gate_s p_gate,
struct nm_drv_s p_drv,
nm_core_tag_t  core_tag,
nm_seq_t  seq,
nm_len_t  len 
)
inlinestatic

Definition at line 108 of file nm_trace.h.

◆ nm_trace_state()

static void nm_trace_state ( nm_trace_event_t  event,
struct nm_gate_s p_gate,
struct nm_drv_s p_drv 
)
inlinestatic

Definition at line 105 of file nm_trace.h.

◆ nm_trace_var()

static void nm_trace_var ( nm_trace_event_t  event,
int  value,
struct nm_gate_s p_gate,
struct nm_drv_s p_drv 
)
inlinestatic

Definition at line 102 of file nm_trace.h.