tools/thermal/thermal-engine: Fix format string bug in thermal-engineThe error message in the daemon() failure path uses %p format specifierwithout providing a corresponding pointer argument, resu
tools/thermal/thermal-engine: Fix format string bug in thermal-engineThe error message in the daemon() failure path uses %p format specifierwithout providing a corresponding pointer argument, resulting in undefinedbehavior and printing garbage values.Replace %p with %m to properly print the errno error message, which isthe intended behavior when daemon() fails.This fix ensures proper error reporting when daemonization fails.Signed-off-by: Malaya Kumar Rout <mrout@redhat.com>Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>Link: https://patch.msgid.link/20251124104401.374856-1-mrout@redhat.com
show more ...
tools/thermal/thermal-engine: Take into account the thresholds APIEnhance the thermal-engine skeleton with the thresholds added in thekernel and use the API exported by the thermal library.Signe
tools/thermal/thermal-engine: Take into account the thresholds APIEnhance the thermal-engine skeleton with the thresholds added in thekernel and use the API exported by the thermal library.Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>Link: https://patch.msgid.link/20241022155147.463475-6-daniel.lezcano@linaro.orgSigned-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
tools/thermal: Add thermal daemon skeletonThis change provides a simple daemon skeleton. It is an example of howto use the thermal library which wraps all the complex code related tothe netlink a
tools/thermal: Add thermal daemon skeletonThis change provides a simple daemon skeleton. It is an example of howto use the thermal library which wraps all the complex code related tothe netlink and transforms it into a callback oriented code.The goal of this skeleton is to give a base brick for anyoneinterested in writing its own thermal engine or as an example to relyon to write its own thermal monitoring implementation.In the future, it will evolve with more features and hopefully morelogic.Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>Tested-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>Link: https://lore.kernel.org/r/20220420160933.347088-5-daniel.lezcano@linaro.org