Re: [PATCH v5 2/2] kallsyms: make kallsyms_show_value() as generic function

From: Luis Chamberlain
Date: Thu Jun 08 2023 - 15:28:24 EST


On Thu, Jun 08, 2023 at 09:01:19AM +0530, Maninder Singh wrote:
> This change makes function kallsyms_show_value() as
> generic function without dependency on CONFIG_KALLSYMS.
>
> Now module address will be displayed with lsmod and /proc/modules.
>
> Earlier:
> =======
> / # insmod test.ko
> / # lsmod
> test 12288 0 - Live 0x0000000000000000 (O) // No Module Load address
> / #
>
> With change:
> ==========
> / # insmod test.ko
> / # lsmod
> test 12288 0 - Live 0xffff800000fc0000 (O) // Module address
> / # cat /proc/modules
> test 12288 0 - Live 0xffff800000fc0000 (O)
>
> Co-developed-by: Onkarnath <onkarnath.1@xxxxxxxxxxx>
> Signed-off-by: Onkarnath <onkarnath.1@xxxxxxxxxxx>
> Signed-off-by: Maninder Singh <maninder1.s@xxxxxxxxxxx>
> Reviewed-by: Zhen Lei <thunder.leizhen@xxxxxxxxxx>

Thanks! Pushed to modules-next.

Luis