* [Bug releng/14655] New: kallsyms_lookup_name is not exported by kernel versions prior to 2.6.33
@ 2012-10-02 8:26 alexander.lochmann@tu-dortmund.de
2012-10-02 9:10 ` [Bug releng/14655] " alexander.lochmann@tu-dortmund.de
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: alexander.lochmann@tu-dortmund.de @ 2012-10-02 8:26 UTC (permalink / raw)
To: systemtap
http://sourceware.org/bugzilla/show_bug.cgi?id=14655
Bug #: 14655
Summary: kallsyms_lookup_name is not exported by kernel
versions prior to 2.6.33
Product: systemtap
Version: unspecified
Status: NEW
Severity: minor
Priority: P2
Component: releng
AssignedTo: systemtap@sourceware.org
ReportedBy: alexander.lochmann@tu-dortmund.de
Classification: Unclassified
The current systemtap release uses "kallsyms_lookup_name" which is exported by
the kernel since version 2.6.33.
If a version prior to this one is used, the compilation of a script just places
a warning "WARNING: "kallsyms_lookup_name" [/tmp/stapu1Ne9G/alexv8.ko]
undefined!".
Loading the modules will fail because of an undefined symbol.
I used the linux kernel 2.6.29 (android qemu)..
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug releng/14655] kallsyms_lookup_name is not exported by kernel versions prior to 2.6.33
2012-10-02 8:26 [Bug releng/14655] New: kallsyms_lookup_name is not exported by kernel versions prior to 2.6.33 alexander.lochmann@tu-dortmund.de
@ 2012-10-02 9:10 ` alexander.lochmann@tu-dortmund.de
2012-10-03 21:22 ` dsmith at redhat dot com
2012-10-09 18:46 ` fche at redhat dot com
2 siblings, 0 replies; 4+ messages in thread
From: alexander.lochmann@tu-dortmund.de @ 2012-10-02 9:10 UTC (permalink / raw)
To: systemtap
http://sourceware.org/bugzilla/show_bug.cgi?id=14655
--- Comment #1 from Alex Lochmann <alexander.lochmann@tu-dortmund.de> 2012-10-02 09:10:11 UTC ---
Created attachment 6661
--> http://sourceware.org/bugzilla/attachment.cgi?id=6661
first draft for a patch
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug releng/14655] kallsyms_lookup_name is not exported by kernel versions prior to 2.6.33
2012-10-02 8:26 [Bug releng/14655] New: kallsyms_lookup_name is not exported by kernel versions prior to 2.6.33 alexander.lochmann@tu-dortmund.de
2012-10-02 9:10 ` [Bug releng/14655] " alexander.lochmann@tu-dortmund.de
@ 2012-10-03 21:22 ` dsmith at redhat dot com
2012-10-09 18:46 ` fche at redhat dot com
2 siblings, 0 replies; 4+ messages in thread
From: dsmith at redhat dot com @ 2012-10-03 21:22 UTC (permalink / raw)
To: systemtap
http://sourceware.org/bugzilla/show_bug.cgi?id=14655
David Smith <dsmith at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dsmith at redhat dot com
--- Comment #2 from David Smith <dsmith at redhat dot com> 2012-10-03 21:22:00 UTC ---
I've taken a look at your patch. I know this is a first draft, but it misses
use of kallsyms_lookup_name() in runtime/stp_task_work.c and
runtime/transport/transport.c.
In general, kernel version checks don't work well. Systemtap tries to work
with so many kernels, which may or may not have a feature enabled, backported,
etc. to it.
Here's a possible different approach. Instead of a kernel version check, do an
output_exportconf() test to see if kallsyms_lookup_name is exported (in
buildrun.cxx). If not, define STAPCONF_KALLSYMS_LOOKUP_NAME_UNEXPORTED (or
some better name). If that is defined, define a dummy kallsyms_lookup_name()
function in the runtime that either warns or errors and always returns NULL.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug releng/14655] kallsyms_lookup_name is not exported by kernel versions prior to 2.6.33
2012-10-02 8:26 [Bug releng/14655] New: kallsyms_lookup_name is not exported by kernel versions prior to 2.6.33 alexander.lochmann@tu-dortmund.de
2012-10-02 9:10 ` [Bug releng/14655] " alexander.lochmann@tu-dortmund.de
2012-10-03 21:22 ` dsmith at redhat dot com
@ 2012-10-09 18:46 ` fche at redhat dot com
2 siblings, 0 replies; 4+ messages in thread
From: fche at redhat dot com @ 2012-10-09 18:46 UTC (permalink / raw)
To: systemtap
http://sourceware.org/bugzilla/show_bug.cgi?id=14655
Frank Ch. Eigler <fche at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |fche at redhat dot com
Resolution| |FIXED
--- Comment #3 from Frank Ch. Eigler <fche at redhat dot com> 2012-10-09 18:45:51 UTC ---
commit 15cf950
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-10-09 18:46 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-02 8:26 [Bug releng/14655] New: kallsyms_lookup_name is not exported by kernel versions prior to 2.6.33 alexander.lochmann@tu-dortmund.de
2012-10-02 9:10 ` [Bug releng/14655] " alexander.lochmann@tu-dortmund.de
2012-10-03 21:22 ` dsmith at redhat dot com
2012-10-09 18:46 ` fche at redhat dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).