From mboxrd@z Thu Jan 1 00:00:00 1970 From: matthew.khouzam@ericsson.com (Matthew Khouzam) Date: Fri, 29 Nov 2013 10:39:54 -0500 Subject: [lttng-dev] Extracting System Call IDs By Using TMF In-Reply-To: References: Message-ID: <5298B54A.5080907@ericsson.com> 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/ >