-
Notifications
You must be signed in to change notification settings - Fork 43
Description
Description
While comparing traces from lurk and strace, I've noticed a couple of areas where lurk could potentially enhance its output for better clarity and completeness. Specifically:
-
execveArguments Display: Theexecvecall inlurk's output doesn't display the full details of the arguments, environment variables, and the command being executed. In contrast,straceprovides a more detailed view of these parameters, which is helpful for debugging and analysis purposes. -
Special Flags Interpretation: There are instances where
lurkdisplays certain special values (e.g.,NULL,AT_FDCWD) as their raw numerical equivalents (e.g.,0x0forNULL,4294967196forAT_FDCWD). This raw display might not be immediately clear to users unfamiliar with these values' significance. In comparison,stracetranslates these into more understandable representations.
Examples
-
lurkoutput forexecve:
[10063] execve("", "", "") = 0 -
straceoutput forexecve:
execve("/usr/sbin/ls", ["ls"], 0x7fff550534c0 /* 68 vars */) = 0 -
Special flags:
-
lurkshowsAT_FDCWDas4294967196. -
lurkdisplaysNULLas0x0.
Suggested Enhancements
-
Enhance
execveOutput: It would be beneficial forlurkto include more details in theexecveoutput, similar tostrace. This might include the full command, arguments array, and environment variables block. -
Improve Special Flags Interpretation: For special constants like
AT_FDCWDandNULL, translating these values into their well-known symbolic names (or at least including the symbolic names alongside the raw values) would enhance readability and user understanding.
These enhancements could significantly improve the utility and user experience of lurk for tracing system calls, especially for users transitioning from or comparing outputs with strace.
Additional Information
- Lurk Version: 0.3.4
Thank you for considering these suggestions to improve lurk.