0
0
mirror of https://github.com/yse/easy_profiler.git synced 2024-12-26 16:11:02 +08:00

Context switch logger: get the processor cycle counter instead of time of a day

This commit is contained in:
Sergey Yagovtsev 2018-01-07 18:38:49 +03:00
parent bbfe1896f8
commit a78c92c33f

View File

@ -14,7 +14,7 @@ probe scheduler.ctxswitch {
next next
//printf("Switch from %d(%s) to %d(%s) at %d\n",prev_tid, prev_task_name,next_tid,next_task_name, gettimeofday_ns()) //printf("Switch from %d(%s) to %d(%s) at %d\n",prev_tid, prev_task_name,next_tid,next_task_name, gettimeofday_ns())
printf("%d %d %d %s %d\n",gettimeofday_ns(),prev_tid, next_tid, next_task_name,next_pid ) printf("%d %d %d %s %d\n", get_cycles(), prev_tid, next_tid, next_task_name, next_pid)
//printf("%d %d %d\n",gettimeofday_ns(),prev_tid, next_tid ) //printf("%d %d %d\n",gettimeofday_ns(),prev_tid, next_tid )
} }