main.c
add lseek part setting offset value in trace structure in trace_node