This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: Function send_a_relocation()
- From: Arkady <arkady dot miasnikov at gmail dot com>
- To: systemtap at sourceware dot org
- Date: Wed, 1 Mar 2017 13:28:36 +0200
- Subject: Re: Function send_a_relocation()
- Authentication-results: sourceware.org; auth=none
- References: <CANA-60qy9UW72pNLLE-8CMQZM8ATAeOyU5kGxnWQB4Za=bNJmQ@mail.gmail.com>
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.