Motr  M0
Collaboration diagram for Timestamp:

Data Structures

struct  m0_net_test_timestamp
 

Functions

void m0_net_test_timestamp_init (struct m0_net_test_timestamp *t, uint64_t seq)
 
m0_bcount_t m0_net_test_timestamp_serialize (enum m0_net_test_serialize_op op, struct m0_net_test_timestamp *t, struct m0_bufvec *bv, m0_bcount_t bv_offset)
 

Detailed Description

end of NetTestStatsDFS group

Used to transmit m0_time_t value in ping/bulk buffers.

See also
m0_net_test_timestamp_init(), m0_net_test_timestamp_serialize().

Function Documentation

◆ m0_net_test_timestamp_init()

void m0_net_test_timestamp_init ( struct m0_net_test_timestamp t,
uint64_t  seq 
)

Initialize timestamp. Set m0_net_test_timestamp.ntt_time to m0_time_now().

Parameters
ttimestamp structure
seqsequence number
Precondition
t != NULL

Definition at line 185 of file stats.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ m0_net_test_timestamp_serialize()

m0_bcount_t m0_net_test_timestamp_serialize ( enum m0_net_test_serialize_op  op,
struct m0_net_test_timestamp t,
struct m0_bufvec bv,
m0_bcount_t  bv_offset 
)

Serialize/deserialize timestamp. Deserialize will fail if magic mismatch.

See also
m0_net_test_serialize().

Definition at line 200 of file stats.c.

Here is the call graph for this function:
Here is the caller graph for this function: