From 82511fcec08f79b670561a255b16919d267d35c6 Mon Sep 17 00:00:00 2001 From: Adam Wujek <dev_public@wujek.eu> Date: Sat, 16 Nov 2024 03:44:33 +0100 Subject: [PATCH] [FEATURE: #333] userspace/libwr/include/libwr: uplift softpll_export.h (SPLL_STATS_VER==6) Add: --main_pll_kp --main_pll_ki --helper_pll_kp --helper_pll_ki Signed-off-by: Adam Wujek <dev_public@wujek.eu> --- userspace/libwr/include/libwr/softpll_export.h | 6 +++++- userspace/tools/wrs_dump_shmem.c | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/userspace/libwr/include/libwr/softpll_export.h b/userspace/libwr/include/libwr/softpll_export.h index 05e8647ce..6d6b2007b 100644 --- a/userspace/libwr/include/libwr/softpll_export.h +++ b/userspace/libwr/include/libwr/softpll_export.h @@ -60,7 +60,7 @@ #define ALIGN_STATE_WAIT_CLKIN 9 #define ALIGN_STATE_WAIT_PLOCK 10 -#define SPLL_STATS_VER 5 +#define SPLL_STATS_VER 6 #define SPLL_STATS_MAGIC 0x5b1157a7 #define SPLL_LOOP_HELPER -1 #define SPLL_LOOP_MAIN 0 @@ -89,6 +89,10 @@ struct spll_stats { int start_cnt; struct spll_build_id build_id; int ext_pps_latency_ps; + int main_pll_kp; + int main_pll_ki; + int helper_pll_kp; + int helper_pll_ki; }; extern struct spll_stats *stats; diff --git a/userspace/tools/wrs_dump_shmem.c b/userspace/tools/wrs_dump_shmem.c index 07abfd181..3829a4e8d 100644 --- a/userspace/tools/wrs_dump_shmem.c +++ b/userspace/tools/wrs_dump_shmem.c @@ -814,6 +814,10 @@ struct dump_info spll_stats_info[] = { DUMP_FIELD(int, M_y), DUMP_FIELD(int, del_cnt), DUMP_FIELD(int, start_cnt), + DUMP_FIELD(int, main_pll_kp), + DUMP_FIELD(int, main_pll_ki), + DUMP_FIELD(int, helper_pll_kp), + DUMP_FIELD(int, helper_pll_ki), DUMP_FIELD_SIZE(char, build_id.commit_id, 32), DUMP_FIELD_SIZE(char, build_id.build_date, 16), DUMP_FIELD_SIZE(char, build_id.build_time, 16), -- GitLab