int ret = TTRACE_VALID;
int msg_len = sizeof(struct sched_message);
- gettimeofday(&(packet->ts));
+ gettimeofday(&(packet->ts), NULL);
packet->event_type = (int8_t)'s';
packet->pid = getpid();
packet->codelen = TTRACE_CODE_VARIABLE | msg_len;
msg_len = TTRACE_MSG_BYTES;
}
- gettimeofday(&(packet->ts));
+ gettimeofday(&(packet->ts), NULL);
packet->event_type = (int8_t)type;
packet->pid = getpid();
packet->codelen = TTRACE_CODE_VARIABLE | msg_len;
int create_packet_u(struct trace_packet *packet, char type, int8_t uid)
{
int ret = 0;
- gettimeofday(&(packet->ts));
+ gettimeofday(&(packet->ts), NULL);
packet->event_type = type;
packet->pid = getpid();
packet->codelen = TTRACE_CODE_UNIQUE | uid;