Bug 519314
Summary: | "type definition 'task_struct' not found" in task_pid() function | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | dongjibing <hdong> |
Component: | systemtap | Assignee: | Frank Ch. Eigler <fche> |
Status: | CLOSED ERRATA | QA Contact: | BaseOS QE <qe-baseos-auto> |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | 5.4 | CC: | mjw, qcai, syeghiay |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2010-03-30 09:06:18 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 515829 | ||
Bug Blocks: |
Description
dongjibing
2009-08-26 03:15:18 UTC
require to have the kernel debuginfo package installed -- Fedora Bugzappers volunteer triage team https://fedoraproject.org/wiki/BugZappers Could you give a full example? With the following version: $ stap -V SystemTap translator/driver (version 0.9.7/0.141 non-git sources) Copyright (C) 2005-2009 Red Hat, Inc. and others This is free software; see the source for copying conditions. $ rpm -q systemtap kernel kernel-debuginfo systemtap-0.9.7-5.el5 kernel-2.6.18-155.el5 kernel-debuginfo-2.6.18-155.el5 The following works fine for me: $ stap -e 'probe begin { printf("pid: %d\n", task_pid(task_current())); exit(); }' pid: 3190 Without kernel-debuginfo, @cast() can do the job, but only if one identifies the header file that declares the type. @cast(ptr,"task_struct","kernel<linux/sched.h>" Perhaps this change belongs to the tapset. systemtap upstream commit 8aa140d includes the fix from comment #3. An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2010-0308.html |