![]() |
| | #1 |
| Registered User Join Date: Apr 2008
Posts: 11
| Minix and system calls!!!help! Any help would be appreciated. |
| squeezah is offline | |
| | #2 |
| Kernel hacker Join Date: Jul 2007 Location: Farncombe, Surrey, England
Posts: 15,686
| 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
__________________ Compilers can produce warnings - make the compiler programmers happy: Use them! Please don't PM me for help - and no, I don't do help over instant messengers. |
| matsp is offline | |
| | #3 |
| Registered User Join Date: Apr 2008
Posts: 11
| 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? |
| squeezah is offline | |
| | #4 |
| Senior software engineer Join Date: Mar 2007 Location: Portland, OR
Posts: 5,768
| Capturing a process's system calls is usually done with ptrace(). I have no idea if Minix has it, but I assume it does. |
| brewbuck is offline | |
| | #5 |
| Registered User Join Date: Apr 2008
Posts: 11
| strace doesnt work in minix... |
| squeezah is offline | |
| | #6 |
| Senior software engineer Join Date: Mar 2007 Location: Portland, OR
Posts: 5,768
| |
| brewbuck is offline | |
| | #7 |
| Registered User Join Date: Apr 2008
Posts: 11
| no other way to 'capture' the system call's name?? |
| squeezah is offline | |
| | #8 |
| Senior software engineer Join Date: Mar 2007 Location: Portland, OR
Posts: 5,768
| |
| brewbuck is offline | |
| | #9 |
| Registered User Join Date: Apr 2008
Posts: 11
| am not ignoring it how can i use it? |
| squeezah is offline | |
| | #10 |
| Senior software engineer Join Date: Mar 2007 Location: Portland, OR
Posts: 5,768
| |
| brewbuck is offline | |
| | #11 |
| Cat without Hat Join Date: Apr 2003
Posts: 8,492
| It is, I just did. Not quite as helpful as you'd think, though.
__________________ All the buzzt! CornedBee"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code." - Flon's Law |
| CornedBee is offline | |
| | #12 |
| Registered User Join Date: Apr 2008
Posts: 11
| 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 |
| squeezah is offline | |
| | #13 | |
| Senior software engineer Join Date: Mar 2007 Location: Portland, OR
Posts: 5,768
| Quote:
Most UNIX-like operating systems provide equivalent functionality through ptrace(), but the details are all slightly different. | |
| brewbuck is offline | |
| | #14 |
| Cat without Hat Join Date: Apr 2003
Posts: 8,492
| 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
__________________ All the buzzt! CornedBee"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code." - Flon's Law |
| CornedBee is offline | |
| | #15 |
| Registered User Join Date: Apr 2008
Posts: 11
| 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?? |
| squeezah is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| minix system call pls help for project | porvas | Linux Programming | 2 | 06-14-2009 02:40 AM |
| Access file's info in MINIX | Zuko | Linux Programming | 3 | 01-07-2008 10:14 AM |
| starting linux's source code and kernel | sawer | Linux Programming | 9 | 08-01-2006 07:46 AM |