login
Header Space

 
 

Re: System call instrumentation

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Ingo Molnar <mingo@...>
Cc: <linux-kernel@...>, <systemtap@...>, Frank Ch. Eigler <fche@...>
Date: Monday, May 5, 2008 - 6:59 am

* Ingo Molnar (mingo@elte.hu) wrote:

That would work for all system calls that doesn't have parameters like
"const char __user *filename".


Hrm, not sure about that :

grep asmlinkage include/linux/syscalls.h|wc -l
321

grep -e asmlinkage.*__user include/linux/syscalls.h | wc -l
162

So about 50% of system calls have to get pointers from userspace.



The goal of my second syscall table was to call callbacks to extract the
__user parameters, nothing else, really. I currently extract the system
call function names by iterating on the real system call table and by
using kallsyms (it could be turned into a built-time extraction since
the system call table is static to the kernel core).


Yup. That's ok with me.



Given we already have the syscall table, I am not sure we would need any
supplementary debuginfo support. Plus, the syscall table gives us the
mapping between the syscall number and the symbol of the system call
function, which is exactly what we need. The only thing I dislike in my
current approach is that I depend on kallsyms; it would be good to have
the system call symbols without depending on it.

Mathieu


-- 
Mathieu Desnoyers
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
System call instrumentation, Mathieu Desnoyers, (Sun May 4, 9:48 am)
Re: System call instrumentation, Ingo Molnar, (Mon May 5, 2:55 am)
Re: System call instrumentation, Mathieu Desnoyers, (Mon May 5, 6:59 am)
Re: System call instrumentation, Ingo Molnar, (Mon May 5, 7:10 am)
Re: System call instrumentation, Mathieu Desnoyers, (Mon May 5, 7:30 am)
Re: System call instrumentation, Ingo Molnar, (Mon May 5, 8:28 am)
Re: System call instrumentation, Mathieu Desnoyers, (Mon May 19, 11:44 pm)
Re: System call instrumentation, Arjan van de Ven, (Tue May 20, 10:18 am)
Re: System call instrumentation, Mathieu Desnoyers, (Thu May 22, 8:47 am)
Re: System call instrumentation, Masami Hiramatsu, (Tue May 6, 4:52 pm)
speck-geostationary