Embedded_linux [SOLVED]: When is kallsyms created in the kernel?

Embedded_linux [SOLVED]: When is kallsyms created in the kernel?

Home Forums Embedded Linux Embedded_linux [SOLVED]: When is kallsyms created in the kernel?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #4334

    Anonymous

    QuestionQuestion

    Where is the kallsyms created in the start_kernel function? I mean we have lot of function calls in the start_kernel function. Is it there that kallsyms is created. If not,can you please point out in which function call is it created.

    And is it possible to use kallsyms during early bootup process i.e.,Can we create kallsyms before say setup_arch function of start_kernel?
    It is for ARM architecture.

    #4335

    Anonymous

    Accepted AnswerAnswer

    If the configuration option CONFIG_KALLSYMS is enabled, the kallsyms feature shall be enabled. However, note that the it is a proc file and the /proc/kallsyms shall be created when the kernel boots up. The /proc/kallsyms shall contain all functions of the kernel.

    start_kernel() takes care most of the Linux kernel initializations. This in turn uses the routines like setup_arch which is an architecture based set-up function that performs CPU specific initialization.

    Source: http://stackoverflow.com/questions/41658062/when-is-kallsyms-created-in-the-kernel
    Author: Karthik Balaguru
    Creative Commons License
    This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.