Function send_a_relocation()

Arkady arkady.miasnikov@gmail.com
Wed Mar 1 11:29:00 GMT 2017


I will add a background here. I was trying to insmod the precompiled
driver without reliance on systemtap_runtime package. I have had a
crazy idea to package the kernel module in an RPM without dependency
on systemtap_runtime.rpm

I come up with the following Python script
https://github.com/larytet/YALAS/blob/master/scripts/generate_messages.py
Essentially I send
    STP_READY
    STP_PRIVILEGE_CREDENTIALS
    STP_RELOCATION
    STAP_START

I wonder if it is possible to load the driver without a need to access
/proc/kallsyms first.

Thanks.

On Mon, Feb 27, 2017 at 7:01 PM, Arkady <arkady.miasnikov@gmail.com> wrote:
> Hi,
>
> In the file staprun.c there is a comment
> "We do this under protest.  The kernel ought expose this data to
> modules such as ourselves"
>
> Does not the function kallsyms_lookup_name() expose the exported symbols?
>
> Thanks.



More information about the Systemtap mailing list