This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/11871] New: cast failure
- From: "Menny_Hamburger at dell dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 3 Aug 2010 10:48:15 -0000
- Subject: [Bug translator/11871] New: cast failure
- Reply-to: sourceware-bugzilla at sourceware dot org
I am using systemtap over a 32 bit Samba running in a 64 bit machine.
I added the folllowing type declarations to /tmp/mytpe.h:
%{
typedef struct exa_dent_name {
size_t len;
char *name;
} exa_dent_name;
struct xattr_stat {
struct stat stat;
uint32_t createtime_sec;
uint32_t createtime_nsec;
};
typedef struct exanet_dir {
int magic;
int path_len;
char *path;
const connection_struct *conn;
int dirfd;
void *buf;
void *bufp;
int buf_id;
int buf_size;
uint64_t cookie;
int eod;
exa_dent_name prev_name;
struct xattr_stat *prev_stat;
dev_t st_dev;
blksize_t st_blksize;
char nfs_fh[32];
void* prev_dir_pos;
short int override_seekdir;
} exanet_dir;
%}
I then used the following probe:
probe process(/usr/local/samba/lib/vfs/fs.so").function("fs_readdir")
{
printf("%s: dir magic is %d\n",
@cast($dir, "exanet_dir", "</tmp/mytype.h>")->magic)
}
I got the following error:
semantic error: type definition 'exanet_dir' not found: identifier '@cast'
at ./smbd_guru1.stp:9:3
source: @cast($dir, "exanet_dir", "</tmp/mytype.h>")-
>magic)
This does not seem a 32 over 64 bit issue but since I am attaching the binary,
It is important to mention this.
--
Summary: cast failure
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: translator
AssignedTo: systemtap at sources dot redhat dot com
ReportedBy: Menny_Hamburger at dell dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=11871
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.