public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* another Bug
@ 2005-09-12 19:06 James Dickens
  2005-09-12 19:44 ` Frank Ch. Eigler
  0 siblings, 1 reply; 2+ messages in thread
From: James Dickens @ 2005-09-12 19:06 UTC (permalink / raw)
  To: systemtap

I decided to look a activating smaller groups of probes, so far in my
tests nfs and ext have both failed in the same way.

the script i'm using

probe module("ext3").function("*")
{
   if (target() == pid())
  i++;
}

probe timer.jiffies(100) { exit(); }

here is the errors from ext 

/tmp/stap2llCXg/stap_29556.c: In function âsystemtap_module_initâ:
/tmp/stap2llCXg/stap_29556.c:126672: warning: integer constant is too
large for long type
/tmp/stap2llCXg/stap_29556.c:127008: warning: integer constant is too
large for long type
/tmp/stap2llCXg/stap_29556.c:130512: warning: integer constant is too
large for long type
/tmp/stap2llCXg/stap_29556.c:132648: warning: integer constant is too
large for long type
/tmp/stap2llCXg/stap_29556.c:132808: warning: integer constant is too
large for long type
/tmp/stap2llCXg/stap_29556.c:133776: warning: integer constant is too
large for long type


here are the functions that are causing the error   register 203 is
good... 204 and after are bad, looks like sometype of overflow error.

 /* register 203 */  
  /* module("ext3").function("ext3_alloc_block@fs/ext3/inode.c:238") */
  dwarf_kprobe_203.addr = (void *) 0xd28aff00;
  rc = register_kprobe (&dwarf_kprobe_203);
  if (unlikely (rc)) {
    atomic_set (&session_state, STAP_SESSION_ERROR);
    goto unregister_202;
  }
  /* register 204 */
  /* module("ext3").function("ext3_block_to_path@fs/ext3/inode.c:298") */
  dwarf_kprobe_204.addr = (void *) 0xbfbc52d80000004f;
  rc = register_kprobe (&dwarf_kprobe_204);
  if (unlikely (rc)) {
    atomic_set (&session_state, STAP_SESSION_ERROR);
    goto unregister_203;
  }
  /* register 205 */
  /* module("ext3").function("ext3_get_branch@fs/ext3/inode.c:366") */
  dwarf_kprobe_205.addr = (void *) 0xd28b0027;
  rc = register_kprobe (&dwarf_kprobe_205);
  if (unlikely (rc)) {
    atomic_set (&session_state, STAP_SESSION_ERROR);
    goto unregister_204;
  }


if anyone is wondering why i would want to do such a thing, here is
one example.

if I want to make module blah faster, so i want to see what function
gets  called the most, and which takes the most time. the script above
doesn't do that but could be expanded to complete the required tasks.

James Dickens

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

* Re: another Bug
  2005-09-12 19:06 another Bug James Dickens
@ 2005-09-12 19:44 ` Frank Ch. Eigler
  0 siblings, 0 replies; 2+ messages in thread
From: Frank Ch. Eigler @ 2005-09-12 19:44 UTC (permalink / raw)
  To: jamesd.wi; +Cc: systemtap


jamesd.wi wrote:

> [...]
> here is the errors from [...]
> /tmp/stap2llCXg/stap_29556.c:126672: warning: integer constant is too
> large for long type
> [...]

This is known as bug #1260.


- FChE

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

end of thread, other threads:[~2005-09-12 19:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-12 19:06 another Bug James Dickens
2005-09-12 19:44 ` Frank Ch. Eigler

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