From: "gmoreira at gmail dot com" <sourceware-bugzilla@sourceware.org>
To: systemtap@sourceware.org
Subject: [Bug tapsets/23827] New: Systemtap 3.3 - mipsel - semantic error: type definition 'task_struct' not found in 'kernel<linux/sched.h>'
Date: Fri, 26 Oct 2018 03:10:00 -0000 [thread overview]
Message-ID: <bug-23827-6586@http.sourceware.org/bugzilla/> (raw)
https://sourceware.org/bugzilla/show_bug.cgi?id=23827
Bug ID: 23827
Summary: Systemtap 3.3 - mipsel - semantic error: type
definition 'task_struct' not found in
'kernel<linux/sched.h>'
Product: systemtap
Version: unspecified
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: tapsets
Assignee: systemtap at sourceware dot org
Reporter: gmoreira at gmail dot com
Target Milestone: ---
This happens with SystemTap 3.3 on mipsel using kernel 4.9.75 with debug
symbols.
$ sudo stap -vvv -e 'probe begin { printf("pid: %d\n",
task_pid(task_current())); exit(); }'
Systemtap translator/driver (version 3.3/0.174, non-git sources)
Copyright (C) 2005-2018 Red Hat, Inc. and others
This is free software; see the source for copying conditions.
tested kernel versions: 2.6.18 ... 4.18-rc0
enabled features: AVAHI BPF PYTHON2 LIBSQLITE3 LIBVIRT LIBXML2 NLS NSS
Created temporary directory "/tmp/stapCHwMpx"
Session arch: mips release: 4.9.75
Parsed kernel "/lib/modules/4.9.75/build/.config", containing 3813 tuples
Parsed kernel "/lib/modules/4.9.75/build/Module.symvers", containing 6453
vmlinux exports
Kernel symbol table /lib/modules/4.9.75/build/System.map unavailable, (No such
file or directory)
Parsed kernel "/boot/System.map-4.9.75", containing 27061 symbols
...
WARNING: cannot find module
/root/.systemtap/cache/d0/typequery_d0ffda64edeffcc9cb82440375470b29_636.ko
debuginfo: no support library found for machine [man warning::debuginfo]
....
Eliding side-effect-free singleton block operator '{' at
/usr/local/share/systemtap/tapset/linux/task.stp:33:31
Eliding side-effect-free singleton block operator '{' at
/usr/local/share/systemtap/tapset/linux/task.stp:212:1
semantic error: while processing function task_current
thrown from: elaborate.cxx:5704
semantic error: type definition 'task_struct' not found in
'kernel<linux/sched.h>': operator '@cast' at
/usr/local/share/systemtap/tapset/linux/task.stpm:2:5
thrown from: elaborate.cxx:6380
source: @cast(@ptr, "task_struct", "kernel<linux/sched.h>")
^
in expansion of macro: operator '@task' at
/usr/local/share/systemtap/tapset/linux/task.stp:34:14
source: return & @task(%{ /* pure */ (unsigned long)current %})
^
$ ls -ld /lib/modules/4.9.75/build
lrwxrwxrwx 1 root root 29 Feb 26 2018 /lib/modules/4.9.75/build ->
/usr/src/linux-headers-4.9.75
$ grep "struct task_struct {"
/usr/src/linux-headers-4.9.75/include/linux/sched.h
struct task_struct {
$ dpkg -l | grep "4.9.75"
ii linux-firmware-image-4.9.75 4.9.75-39 mipsel
Linux kernel firmware, version 4.9.75
ii linux-headers-4.9.75 4.9.75-40 mipsel
Linux kernel headers for 4.9.75 on mipsel
ii linux-image-4.9.75 4.9.75-40 mipsel
Linux kernel, version 4.9.75
ii linux-image-4.9.75-dbg 4.9.75-40 mipsel
Linux kernel debugging symbols for 4.9.7
1) Is it missing any lib?
WARNING: cannot find module
/root/.systemtap/cache/d0/typequery_d0ffda64edeffcc9cb82440375470b29_636.ko
debuginfo: no support library found for machine [man warning::debuginfo]
2) task_struct is in linux/sched.h and everything seems to be in the right
place, why systemtap cannot find it?
--
You are receiving this mail because:
You are the assignee for the bug.
next reply other threads:[~2018-10-26 3:10 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-26 3:10 gmoreira at gmail dot com [this message]
2018-11-01 13:56 ` [Bug tapsets/23827] " dsmith at redhat dot com
2018-11-01 14:01 ` mark at klomp dot org
2018-11-01 14:17 ` gmoreira at gmail dot com
2018-11-01 15:04 ` fche at redhat dot com
2018-11-08 5:14 ` gmoreira at gmail dot com
2018-11-08 9:41 ` mark at klomp dot org
2023-11-29 16:30 ` wcohen at redhat dot com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-23827-6586@http.sourceware.org/bugzilla/ \
--to=sourceware-bugzilla@sourceware.org \
--cc=systemtap@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).