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/23775] New: Pass 2 failed when generate a kernel module for stap script which uses kernel trace-point


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

            Bug ID: 23775
           Summary: Pass 2 failed when generate a kernel module for stap
                    script which uses kernel trace-point
           Product: systemtap
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: translator
          Assignee: systemtap at sourceware dot org
          Reporter: houtao1 at huawei dot com
  Target Milestone: ---

Pass 2 failed when generate a kernel module for stap script which use kernel
trace-point. A self-built kernel is used, and it is built by using option
O=output.

Environment:
system tap: version 4.0
Host: Fedora 27

Path illustration:
~/code/linux: the source directory for vanilla kernel v4.19-rc7
~/code/linux/newest: the build directory for kernel

Reproduction:
$ stap -v 4 --vp 04 -r ~/code/linux/newest/ -e 'probe
kernel.trace("block:block_rq_issue") { printf("got blk rq\n"); }'

WARNING: kernel release/architecture mismatch with host forces last-pass 4.
Pass 1: parsed user script and 494 library scripts using
291332virt/125992res/6500shr/119844data kb, in 260usr/40sys/294real ms.
derive-probes (location #0): kernel.trace("block:block_rq_issue") of keyword at
<input>:1:1
checking pattern '' vs. module 'kernel' file
'/home/htbegin/code/linux/newest//vmlinux'
Attempting to extract kernel debuginfo build ID from
/home/htbegin/code/linux/newest//vmlinux.id
Ignoring duplicate kernel source tree (DW_AT_comp_dir) at
'/home/htbegin/code/linux/newest'
Checking tracepoint glob
/home/htbegin/code/linux/newest//include/trace/events/*.h
Checking tracepoint glob /home/htbegin/code/linux/newest//include/trace/*.h
Checking tracepoint glob /home/htbegin/code/linux/newest//include/ras/*_event.h
Checking tracepoint glob
/home/htbegin/code/linux/newest//arch/x86/entry/vsyscall/*trace.h
Checking tracepoint glob
/home/htbegin/code/linux/newest//arch/x86/kernel/*trace.h
Checking tracepoint glob
/home/htbegin/code/linux/newest//arch/*/include/asm/*trace*.h
Checking tracepoint glob
/home/htbegin/code/linux/newest//arch/*/include/asm/trace/*.h
Checking tracepoint glob /home/htbegin/code/linux/newest//arch/*/kvm/*trace.h
Checking tracepoint glob
/home/htbegin/code/linux/newest//fs/xfs/linux-*/xfs_tr*.h
Checking tracepoint glob /home/htbegin/code/linux/newest//fs/*/*trace*.h
Checking tracepoint glob /home/htbegin/code/linux/newest//net/*/*trace*.h
Checking tracepoint glob /home/htbegin/code/linux/newest//sound/core/*_trace.h
Checking tracepoint glob /home/htbegin/code/linux/newest//sound/hda/*trace*.h
Checking tracepoint glob
/home/htbegin/code/linux/newest//sound/pci/hda/*_trace.h
Checking tracepoint glob
/home/htbegin/code/linux/newest//drivers/base/regmap/*trace*.h
Checking tracepoint glob
/home/htbegin/code/linux/newest//drivers/gpu/drm/*_trace.h
Checking tracepoint glob
/home/htbegin/code/linux/newest//drivers/gpu/drm/*/*_trace.h
Checking tracepoint glob
/home/htbegin/code/linux/newest//drivers/net/wireless/*/*/*trace*.h
Checking tracepoint glob
/home/htbegin/code/linux/newest//drivers/usb/host/*trace*.h
Checking tracepoint glob /home/htbegin/code/linux/newest//virt/kvm/*/*trace*.h
Pass 2: getting a tracepoint query for 0 headers: 
checking pattern '' vs. module 'kernel' file
'/home/htbegin/code/linux/newest//vmlinux'
checking pattern '' vs. module 'nandsim' file
'/home/htbegin/code/linux/newest/drivers/mtd/nand/raw/nandsim.ko'
blacklist regexps:
blfn:
^(atomic_notifier_call_chain|default_do_nmi|__die|die_nmi|do_debug|do_general_protection|do_int3|do_IRQ|do_page_fault|do_sparc64_fault|do_trap|dummy_nmi_callback|flush_icache_range|ia64_bad_break|ia64_do_page_fault|ia64_fault|io_check_error|mem_parity_error|nmi_watchdog_tick|notifier_call_chain|oops_begin|oops_end|program_check_exception|single_step_exception|sync_regs|unhandled_fault|unknown_nmi_error|xen_[gs]et_debugreg|xen_irq_.*|xen_.*_fl_direct.*|check_events|xen_adjust_exception_frame|xen_iret.*|xen_sysret64.*|test_ti_thread_flag.*|inat_get_opcode_attribute|system_call_after_swapgs|HYPERVISOR_[gs]et_debugreg|HYPERVISOR_event_channel_op|hash_64|hash_ptr|native_set_pte|.*raw_.*_lock.*|.*raw_.*_unlock.*|.*raw_.*_trylock.*|.*read_lock.*|.*read_unlock.*|.*read_trylock.*|.*write_lock.*|.*write_unlock.*|.*write_trylock.*|.*write_seqlock.*|.*write_sequnlock.*|.*spin_lock.*|.*spin_unlock.*|.*spin_trylock.*|.*spin_is_locked.*|rwsem_.*lock.*|.*mutex_.*lock.*|atomic_.*|atomic64_.*|get_bh|put_bh|.*apic.*|.*APIC.*|.*softirq.*|.*IRQ.*|.*_intr.*|__delay|.*kernel_text.*|get_current|current_.*|.*exception_tables.*|.*setup_rt_frame.*|.*preempt_count.*|preempt_schedule|__switch_to|special_mapping_.*|.*_pte_.*)$
blfn_ret: ^(do_exit|sys_exit|sys_exit_group)$
blfile:
^(kernel/kprobes\.c|arch/.*/kernel/kprobes\.c|.*/include/asm/io\.h|.*/include/asm/io-defs\.h|.*/include/asm/io_64\.h|.*/include/asm/bitops\.h|drivers/ide/ide-iops\.c|arch/.*/kernel/paravirt\.c|.*/include/asm/paravirt\.h|fs/seq_file\.c)$
blsection:
^(\.init\.|\.exit\.|\.devinit\.|\.devexit\.|\.cpuinit\.|\.cpuexit\.|\.meminit\.|\.memexit\.)
pattern '*' matches module 'kernel'
semantic error: resolution failed in tracepoint builder
   thrown from: elaborate.cxx:1077
semantic error: while resolving probe point: identifier 'kernel' at <input>:1:7
   thrown from: elaborate.cxx:1065
        source: probe kernel.trace("block:block_rq_issue") { printf("got blk
rq\n"); }
                      ^

semantic error: no match
   thrown from: elaborate.cxx:1028
deleting module_cache
tracepoint_builder releasing dwflpp
Pass 2: analyzed script: 0 probes, 0 functions, 0 embeds, 0 globals using
296120virt/131860res/7420shr/124632data kb, in 30usr/30sys/68real ms.
WARNING: unused command line option $1/@1
Pass 2: analysis failed.  [man error::pass2]
Running rm -rf /tmp/stap1Q8lBd
Spawn waitpid result (0x0): 0
Removed temporary directory "/tmp/stap1Q8lBd"

-- 
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]