Commit 67101268 authored by Joanne Hugé's avatar Joanne Hugé

Fix kernel timestamp being printed incorrectly

parent fd20bd9e
...@@ -235,7 +235,7 @@ int main(int argc, char *argv[]) { ...@@ -235,7 +235,7 @@ int main(int argc, char *argv[]) {
if (enable_timestamps) { if (enable_timestamps) {
int64_t user_space_time = stats->packet_info.userspace_exit_ts - stats->packet_info.userspace_enter_ts; int64_t user_space_time = stats->packet_info.userspace_exit_ts - stats->packet_info.userspace_enter_ts;
int64_t kernel_space_time = stats->packet_info.kernelspace_ts - stats->packet_info.userspace_exit_ts; int64_t kernel_space_time = stats->packet_info.userspace_enter_ts - stats->packet_info.kernelspace_ts;
printf(", U: %*" PRIi64 ", K: %*" PRIi64 ", D: %*s, L: %*d\n", printf(", U: %*" PRIi64 ", K: %*" PRIi64 ", D: %*s, L: %*d\n",
10, user_space_time, 10, user_space_time,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment