This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug translator/23747] New: Unknown section .note.Linux in kernel module cause tests with --all-modules to fail to compile


https://sourceware.org/bugzilla/show_bug.cgi?id=23747

            Bug ID: 23747
           Summary: Unknown  section .note.Linux in kernel module cause
                    tests with --all-modules to fail to compile
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: translator
          Assignee: systemtap at sourceware dot org
          Reporter: wcohen at redhat dot com
  Target Milestone: ---

On x86_64 Fedora rawhide running kernel-4.19.0-0.rc6.git4.1.fc30.x86_64 a
number of the testsuite/systemtap.example script fail when using --all-modules
like the following ioctl_handler.stp test:

meta taglines 'test_check: stap -p4 ioctl_handler.stp --all-modules' tag
'test_check' value 'stap -p4 ioctl_handler.stp --all-modules'
attempting command stap -p4 ioctl_handler.stp --all-modules
OUT snd_pcm has unknown section .note.Linux for sym _note_6
child process exited abnormally
RC 1
FAIL: systemtap.examples/profiling/ioctl_handler build

It appears that the problem is triggered by problem dwarf information read in
when using the "--all-modules" option:

[wcohen@localhost profiling]$ pwd
/usr/share/systemtap/testsuite/systemtap.examples/profiling
[wcohen@localhost profiling]$ sudo stap ioctl_handler.stp -v --all-modules -T 1
Pass 1: parsed user script and 486 library scripts using
304388virt/80584res/9428shr/70928data kb, in 140usr/60sys/210real ms.
Pass 2: analyzed script: 6 probes, 10 functions, 103 embeds, 6 globals using
515848virt/293656res/10960shr/282388data kb, in 1460usr/1060sys/2609real ms.
snd_pcm has unknown section .note.Linux for sym _note_6
[wcohen@localhost profiling]$ sudo stap ioctl_handler.stp -v -T 1
Pass 1: parsed user script and 486 library scripts using
304380virt/80736res/9592shr/70920data kb, in 140usr/60sys/206real ms.
Pass 2: analyzed script: 6 probes, 10 functions, 103 embeds, 6 globals using
515844virt/293620res/10932shr/282384data kb, in 1530usr/1030sys/2668real ms.
Pass 3: using cached
/root/.systemtap/cache/75/stap_75e578472449c78fef5243b6a4788a37_67706.c
Pass 4: using cached
/root/.systemtap/cache/75/stap_75e578472449c78fef5243b6a4788a37_67706.ko
Pass 5: starting run.
Per execname ioctl information
Pass 5: run completed in 0usr/80sys/1382real ms.

$ lsmod |grep snd_pcm
snd_pcm               151552  3 snd_hda_intel,snd_hda_codec,snd_hda_core
snd_timer              36864  2 snd_seq,snd_pcm
snd                   102400  16
snd_hda_codec_generic,snd_seq,snd_seq_device,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_timer,snd_pcm

$ eu-readelf --all
/usr/lib/debug/lib/modules/4.19.0-0.rc6.git4.1.fc30.x86_64/kernel/sound/core/snd-pcm.ko.debug
|grep .note.linux
...
Symbol table [78] '.symtab' contains 842 entries:
...
   53: 0000000000000000     52 OBJECT  LOCAL  DEFAULT        2 _note_6
...
Note section [ 2] '.note.Linux' of 52 bytes at offset 0x64:
  Owner          Data size  Type
  Linux                 32  <unknown>: 256

-- 
You are receiving this mail because:
You are the assignee for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]