From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 86298 invoked by alias); 26 Oct 2018 03:10:18 -0000 Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org Received: (qmail 86243 invoked by uid 48); 26 Oct 2018 03:10:13 -0000 From: "gmoreira at gmail dot com" To: systemtap@sourceware.org Subject: [Bug tapsets/23827] New: Systemtap 3.3 - mipsel - semantic error: type definition 'task_struct' not found in 'kernel' Date: Fri, 26 Oct 2018 03:10:00 -0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: systemtap X-Bugzilla-Component: tapsets X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gmoreira at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: systemtap at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-q4/txt/msg00058.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=3D23827 Bug ID: 23827 Summary: Systemtap 3.3 - mipsel - semantic error: type definition 'task_struct' not found in 'kernel' 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(); }'=20 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 s= uch 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': operator '@cast' at /usr/local/share/systemtap/tapset/linux/task.stpm:2:5 thrown from: elaborate.cxx:6380 source: @cast(@ptr, "task_struct", "kernel") ^ 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=20 struct task_struct { $ dpkg -l | grep "4.9.75" ii linux-firmware-image-4.9.75 4.9.75-39 mips= el=20=20 Linux kernel firmware, version 4.9.75 ii linux-headers-4.9.75 4.9.75-40 mips= el=20=20 Linux kernel headers for 4.9.75 on mipsel ii linux-image-4.9.75 4.9.75-40 mips= el=20=20 Linux kernel, version 4.9.75 ii linux-image-4.9.75-dbg 4.9.75-40 mips= el=20=20 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? --=20 You are receiving this mail because: You are the assignee for the bug.