Need some help with minix!!! To put it simple,what i want is,when i execute a system call, me or the OS,to also print a random message followed be the system call's name i just used.
Any help would be appreciated.
Printable View
Need some help with minix!!! To put it simple,what i want is,when i execute a system call, me or the OS,to also print a random message followed be the system call's name i just used.
Any help would be appreciated.
You will have to add code in the system call function itself to produce this information. This is implemented in most Unix varieties for the strace command.
--
Mats
i need to print the msg with the name of system call ,whatever system call i use.when i typing ls for example with what order this call execute?
if i want to print just something when a call is executing i can put a printf in exec right?but what about the name of the call?
strace doesnt work in minix...:(
no other way to 'capture' the system call's name??
am not ignoring it:) how can i use it?
It is, I just did. Not quite as helpful as you'd think, though.
i use man ptrace and says
Note: This manual page has no relation to Minix. Someone who
knows
ptrace() has to check, or rewrite, this page. :P
Well, Minix is getting old in the tooth. If there's no good manual out there anymore, then the OP will have to resort to random hacking.
Most UNIX-like operating systems provide equivalent functionality through ptrace(), but the details are all slightly different.
You could also look at the source of ptrace. I think it's the kernel function do_trace, here:
https://gforge.cs.vu.nl/plugins/scms...ix&view=markup
can i ask something ?maybe is wrong or stupid:P a call is executing through exec right?which is the function that reads from shell and l8r other fuction/call call exec??