From cf4325b5355b8343aeb3e3e5ac298b84144b7f5f Mon Sep 17 00:00:00 2001 From: Champ-Goblem Date: Thu, 24 Apr 2025 11:42:01 +0200 Subject: [PATCH] kernel: Add CONFIG_TASKSTATS (and related) configs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Knowing that the upstream project provides a "ready to use" version of the kernel, it's good to include an easy way to users to monitor performance, and that's what we're doing by enabling the TASKSTATS (and related) kernel configs. This has been present as part of older kernels, but I couldn't reasonably find the reason why it's been dropped. Signed-off-by: Champ-Goblem Signed-off-by: Fabiano FidĂȘncio --- tools/packaging/kernel/configs/fragments/common/base.conf | 8 ++++++++ tools/packaging/kernel/kata_config_version | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/tools/packaging/kernel/configs/fragments/common/base.conf b/tools/packaging/kernel/configs/fragments/common/base.conf index edde15837..48940fe91 100644 --- a/tools/packaging/kernel/configs/fragments/common/base.conf +++ b/tools/packaging/kernel/configs/fragments/common/base.conf @@ -50,3 +50,11 @@ CONFIG_PERF_EVENTS=y # CONFIG_BLK_DEV_LOOP needs CONFIG_BLOCK=y CONFIG_BLK_DEV=y + +# Allow the kernel to collect and report per-task status to userspace +# +# This is super useful for performance monitoring +CONFIG_TASKSTATS=y +CONFIG_TASK_DELAY_ACCT=y +CONFIG_TASK_XACCT=y +CONFIG_TASK_IO_ACCOUNTING=y diff --git a/tools/packaging/kernel/kata_config_version b/tools/packaging/kernel/kata_config_version index 1b9cba4ae..492dff089 100644 --- a/tools/packaging/kernel/kata_config_version +++ b/tools/packaging/kernel/kata_config_version @@ -1 +1 @@ -151 +152