Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance output for system calls by making them more detailed and human-readable #47

Open
odiferousmint opened this issue Sep 11, 2024 · 0 comments

Comments

@odiferousmint
Copy link

Hello. Any plans to include more detailed and human-readable output? For example:

strace:

prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0

lurk:

[6314] prlimit64(0, 3, 0x0, 0x7FFFFFFFB750) = 0

So, it would be nice if it would have a detailed and human-readable information about system calls and their parameters by converting raw values into more understandable formats. strace translates the raw data into meaningful descriptions by interpreting the arguments and constants associated with them. You would need to have a predefined list of constants that map integer values to their symbolic names (e.g. RLIMIT_STACK). In this case the raw value 0x7FFFFFFFB750 is dereferenced to read the rlimit64 structure it points to, and it extracts the values of rlim_cur and rlim_max from the structure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant