From fa5cba3b10702f07416a603ac24c45a55b56d184 Mon Sep 17 00:00:00 2001 From: William Cohen Date: Thu, 1 Feb 2024 13:31:43 -0500 Subject: [PATCH] Fix tast_start_time for newer kernels Kernel git commit cf25e24db61cc9d renames real_start_time member of the task_struct to start_boottime. The task_start_time function needs to be adjusted to handle this new name. --- tapset/linux/task_time.stp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tapset/linux/task_time.stp b/tapset/linux/task_time.stp index 501ef964a..6a086df9f 100644 --- a/tapset/linux/task_time.stp +++ b/tapset/linux/task_time.stp @@ -131,6 +131,9 @@ function task_start_time:long (tid:long) { time_sec = task->real_start_time->tv_sec time_nsec = task->real_start_time->tv_nsec return time_sec * 1000000000 + time_nsec + } else if (@defined(@task(0)->start_boottime)) { + // renamed to start_boottime kernel commit cf25e24db61cc9d + return task->start_boottime } else { // simple u64 in ns since kernel commit 57e0be041d9e2 return task->real_start_time -- 2.43.5