This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug testsuite/4254] New: testsuite/buildok/twenty.stp needs change for 2.6.21-rc1 and above kernel.
- From: "srinivasa at in dot ibm dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 22 Mar 2007 12:12:04 -0000
- Subject: [Bug testsuite/4254] New: testsuite/buildok/twenty.stp needs change for 2.6.21-rc1 and above kernel.
- Reply-to: sourceware-bugzilla at sourceware dot org
Since there has been change in the kernel, testsuite/buildok/twent.stp doesn't
work and hence fails.
We need to change this testcase to make it work.
Earlier testcase looks like this.
===================================================
#! stap -gp4
# Test for writing to target variables, PR 1131
probe kernel.function("vfs_readdir")
{
$file->f_dentry->d_name->len = 1
}
=============================================
Which has to be changed to this
========================================
#! stap -gp4
# Test for writing to target variables, PR 1131
probe kernel.function("vfs_readdir")
{
$file->f_path->dentry->d_name->len = 1;
}
=================================================
Due to this change in include/linux/file.h
===================================
struct file {
/*
* fu_list becomes invalid after file_free is called and queued via
* fu_rcuhead for RCU freeing
*/
union {
struct list_head fu_list;
struct rcu_head fu_rcuhead;
} f_u;
struct path f_path; ====> change
#define f_dentry f_path.dentry
#define f_vfsmnt f_path.mnt
const struct file_operations *f_op;
atomic_t f_count;
unsigned int f_flags;
mode_t f_mode;
loff_t f_pos;
=============================================
Please let me know your comments on this.
--
Summary: testsuite/buildok/twenty.stp needs change for 2.6.21-rc1
and above kernel.
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: testsuite
AssignedTo: systemtap at sources dot redhat dot com
ReportedBy: srinivasa at in dot ibm dot com
CC: ananth at in dot ibm dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=4254
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.