public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug translator/11871] New: cast failure
@ 2010-08-03 10:48 Menny_Hamburger at dell dot com
  2010-08-03 10:52 ` [Bug translator/11871] " Menny_Hamburger at dell dot com
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: Menny_Hamburger at dell dot com @ 2010-08-03 10:48 UTC (permalink / raw)
  To: systemtap

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.

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2010-08-31 21:12 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-03 10:48 [Bug translator/11871] New: cast failure Menny_Hamburger at dell dot com
2010-08-03 10:52 ` [Bug translator/11871] " Menny_Hamburger at dell dot com
2010-08-03 11:53 ` fche at redhat dot com
2010-08-03 11:53 ` fche at redhat dot com
2010-08-03 11:58 ` Menny_Hamburger at dell dot com
2010-08-03 12:07 ` fche at redhat dot com
2010-08-08  9:24 ` Menny_Hamburger at dell dot com
2010-08-08 10:54 ` Menny_Hamburger at dell dot com
2010-08-11 14:19 ` fche at redhat dot com
2010-08-31 21:12 ` fche at redhat dot com

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).