| | |
how can I save process histroy
![]() |
•
•
Join Date: Oct 2009
Posts: 2
Reputation:
Solved Threads: 0
I am working in Linux 2.14 kernel, and I have an assignment.
I want to save for every process , the files it opens and closes , and the time he did that.
for example :
for process aaa :
opening "file1"
opening "file2"
closing "file1"
opening "file3"
closing "file3"
closing "file2"
I could save a linked-list , the question is where to save that , and how to update it.
I want to save for every process , the files it opens and closes , and the time he did that.
for example :
for process aaa :
opening "file1"
opening "file2"
closing "file1"
opening "file3"
closing "file3"
closing "file2"
I could save a linked-list , the question is where to save that , and how to update it.
0
#2 26 Days Ago
•
•
•
•
I am working in Linux 2.14 kernel, and I have an assignment.
I want to save for every process , the files it opens and closes , and the time he did that.
for example :
for process aaa :
opening "file1"
opening "file2"
closing "file1"
opening "file3"
closing "file3"
closing "file2"
I could save a linked-list , the question is where to save that , and how to update it.
http://www.faqs.org/docs/kernel/x931.html
Last edited by gerard4143; 26 Days Ago at 5:08 pm.
•
•
Join Date: Oct 2009
Posts: 2
Reputation:
Solved Threads: 0
0
#3 25 Days Ago
•
•
•
•
If its an old kernel then hi-jack the system calls and get then to send some information to the log file...here's an example of hi-jacking a system call
http://www.faqs.org/docs/kernel/x931.html
I will ask you more simple request :
I want to Update the kernel , that if one process wants to open a file , then we print to the screen " process %pid tries to open the file %file"
thanks in advance.
0
#4 25 Days Ago
Well when you hijack the system call make sure it prints a message to the screen when a process opens or closes a file...I'm not sure what your looking for...I gave you a coded example and from that you should be able to get all the info you need...
Last edited by gerard4143; 25 Days Ago at 12:32 pm.
![]() |
Other Threads in the C Forum
- Previous Thread: Calulator
- Next Thread: List at least two possible ways for linking against the math library.
| Thread Tools | Search this Thread |
age amd apple avatar bbc bluegene c++ canonical centos chips citrix cloudcomputing computer database debian dell desktop desktops development distributions dos economy energy enterprise fedora file firefox france gadgets gnome google gos gpl hardware hp ibm ibm.news intel intelibm java kde kernel kvm laptop laptops linustorvalds linux linuxfoundation mac macosx medicine memory microsoft mobile netbooks news novell open openoffice opensolaris opensource opensuse operatingsystem operatingsystems oracle os osx output patents pc programming ps3 python read recession redhat russia sco security servers slackware software solaris source sun supercomputer supercomputing support technology tivo trends ubuntu unix virtualization vista vmware windows working x86 xen






