[lttng-dev] Extracting System Call IDs By Using TMF

Matthew Khouzam matthew.khouzam at ericsson.com
Fri Nov 29 10:39:54 EST 2013


Hi Shariyar,

I would like to know what is the need for the syscall id? I looked at
kernel events, and they store the system call name, not the id? Is it
for performance reasons, or is there some functionality that can be
achieved from a call ID that cannot from a name?

On 13-11-28 07:29 PM, Shariyar wrote:
>
> I need information on how to extract system call ids from a kernel
> level trace by using TMF.
> For example, a sample code to iterate through a kernel trace in CTF
> format is given below.
>
> In this code, I am able to extract the system call name and its return
> value. However, from the *event.getContent()* function, I could not
> get the system call id for the corresponding system call name.
>
> Kindly let me know, how to extract the system call id? By system call
> id I mean the actual system call id assigned by Linux to a system call
> as shown on this site: http://syscalls.kernelgrok.com/
>




More information about the lttng-dev mailing list