public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* ocfs2 functions probe not working like ext4 ones ?
@ 2010-01-25 11:42 Damien HARDY
  2010-01-25 12:13 ` Mark Wielaard
  2010-01-25 12:13 ` Eugeniy Meshcheryakov
  0 siblings, 2 replies; 6+ messages in thread
From: Damien HARDY @ 2010-01-25 11:42 UTC (permalink / raw)
  To: systemtap

Hello,

My Project is to log the fs changes on a drbd device to manage eventual
split-brain (each side is an autonome master during network link
interruption), by merging modifications from one side to other based on
a changelog (file deleted|created|modified) and discard first side
changes to resync with the other.

So I try to do some changelog for some filesystem under ocfs2.
I add probe on the function "ocfs2_create" in the file
"fs/ocfs2/namei.c" to log creation of a new file.

Here is my simple script :
#!/usr/bin/env stap

probe begin {
   print ("Log Start\n")
}

#probe kernel.function("ext4_create@fs/ext4/namei.c") {
probe kernel.function("ocfs2_create@fs/ocfs2/namei.c") {
   name = $dentry->d_name->name
   printf ("%s \n", kernel_string(name))
}

probe end {
   print ("log End\n")
}
###END OF SCRIPT


When I execute this script I get the error :
   semantic error: no match while resolving probe point
kernel.function("ocfs2_create@fs/ocfs2/namei.c")

I have done some test for ext4 based filesystem and the analog script
work well ... I get the name of the file "test" I created on the ext4
filesystem.

   Log Start
   test
   log End

What did I miss ?

Thank you for your answers.

-- 
Damien

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

end of thread, other threads:[~2010-01-25 16:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-25 11:42 ocfs2 functions probe not working like ext4 ones ? Damien HARDY
2010-01-25 12:13 ` Mark Wielaard
2010-01-25 13:05   ` RE : " Damien HARDY
2010-01-25 15:04     ` Eugeniy Meshcheryakov
2010-01-25 16:15       ` RE : " Damien HARDY
2010-01-25 12:13 ` Eugeniy Meshcheryakov

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