Whether I can get one list of Linux system call arguments and their type by strace?
Pengfei Sun
shaotian330 at gmail.com
Sun Feb 23 20:54:08 UTC 2014
Hi Philippe,
I have contacted with the author of POP. He says POP program is still under
development and some features are still missing. Luckily, there is another
program 'parse-syscall-definitions<https://github.com/ssavvides/parse-syscall-definitions>'
in his github. This program works well.
Thank you very much!
Best Regards,
Pengfei
On Thu, Feb 20, 2014 at 5:49 PM, Pengfei Sun <shaotian330 at gmail.com> wrote:
> Hi Philippe,
>
> Thanks for your suggestion. I also think the best source you say is the
> best, but I don't work out good code to collect them. If list them in
> manually, it is huge work. I think the posix-omni-parser project will be
> helpful. I just try them, there are some errors. I will check the details
> and give you feedback.
>
> Thank you very much!
>
> Best Regards,
> Pengfei
>
>
>
>
> On Thu, Feb 20, 2014 at 4:14 PM, Philippe Ombredanne <pombredanne at nexb.com
> > wrote:
>
>> On Thu, Feb 20, 2014 at 8:48 PM, Pengfei Sun <shaotian330 at gmail.com>
>> wrote:
>> > I want to get the map among system call number, system call name, system
>> > call arguments and arguments type. One solution is whether I can write
>> one
>> > program to get this map or there has been this map in strace? I also
>> want to
>> > know whether I can get this map dynamically. I means when get the system
>> > call number from running program, can I get the system call name,
>> arguments
>> > and arguments type at the same time. I don't know whether strace
>> supports
>> > this function.
>>
>> The best source is the source ;) and is going to be system specific,
>> the second best source are the man 2 pages (i.e. man 2 <call name>)
>> I have not checked it in details, but this project seem to implement
>> some man page parser to use as some input to parsing strace output and
>> interpreting syscalls: https://github.com/ssavvides/posix-omni-parser/
>> and may be worth looking at. I have not tried it in any way or shape
>> though and I would be interested to know if it is any good.
>> --
>> Philippe Ombredanne
>>
>>
>> ------------------------------------------------------------------------------
>> Managing the Performance of Cloud-Based Applications
>> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
>> Read the Whitepaper.
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Strace-devel mailing list
>> Strace-devel at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/strace-devel
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20140223/1f1c9116/attachment.html>
More information about the Strace-devel
mailing list