LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 02-22-2011, 07:34 PM   #1
salalimo
LQ Newbie
 
Registered: Feb 2011
Posts: 3

Rep: Reputation: 0
file system calls tracing


I would like to be able to trace system calls especially ones made to the file system.

i dont only want the api calls like read and write but i want to be able to determine whether the read resulted from a read from cache or from disk.

any tools or settings that would help is greatly appreciated.

thank you.
 
Old 02-22-2011, 11:32 PM   #2
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,731
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
Does strace/ltrace help someway?
 
Old 02-22-2011, 11:52 PM   #3
salalimo
LQ Newbie
 
Registered: Feb 2011
Posts: 3

Original Poster
Rep: Reputation: 0
thank you for your response

honestly i didnt try ltrace but i knew about strace

when i run strace i get the following
Process 2933 attached - interrupt to quit
futex(....., futex_wait, 2934 null)

i am running a java jar file that i wrote using command line from a terminal

and then strace does not register any actions, maybe i am using the wrong process id but its the one that says java

ltrace does nothing

but for gedit strace and ltrace seems to work fine, ltrace outputs tons of more calls and i think might serve the purpose looking at it first glance.

would there be something in the kernel that i can enable that actually traces only file system calls?

any other alternatives?

thanks in advance
 
Old 02-22-2011, 11:56 PM   #4
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,731
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
ptrace?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Tracing a user's system calls. JonhQ Linux - General 6 03-30-2010 10:44 AM
Tracing function calls... How? ik_nitk Programming 3 06-05-2006 07:05 AM
Tracing system calls of sendmail sOldFiSh Programming 2 11-30-2005 02:34 PM
Tracing the system calls arunachalam Linux - Software 2 09-24-2005 02:41 AM
System Calls file Hady Programming 1 12-13-2003 12:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 05:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration