Samples/syscount: add syscount application#29
Conversation
samples/syscount/.clang-format
Outdated
There was a problem hiding this comment.
Hi, could you remove this .clang-format file. We prefer not to inlucde this file in sample.
There was a problem hiding this comment.
And could you use .clang-format from linux kernel
There was a problem hiding this comment.
Like
clang-format -i --style=file:../../linux/.clang-format loader.c
There was a problem hiding this comment.
Sure, I will remove .clang-format
samples/syscount/loader.c
Outdated
| SHOW_BOTH | ||
| } stats_type_t; | ||
|
|
||
| void print_header(bool timestamp, stats_type_t type) { |
There was a problem hiding this comment.
This function should be static
samples/syscount/loader.c
Outdated
| exiting = true; | ||
| } | ||
|
|
||
| typedef enum { |
samples/syscount/loader.c
Outdated
| char *filter_syscalls; | ||
| }; | ||
|
|
||
| void print_usage(const char *prog_name) { |
There was a problem hiding this comment.
This function should also be static
|
Hi, could you help rewrite the commit message to follow our current style and signoff the commits. |
|
The last commit ( |
ddbd227 to
289de72
Compare
There was a problem hiding this comment.
Looks like this file is still not formatted?
jinghao-jia
left a comment
There was a problem hiding this comment.
LGTM, thanks for the hard work!
|
@hzy-hits it looks like the DCO check failure is because the author name and the sign-off name are different (both the first and the third commit have this problem): Are you directly using the |
Signed-off-by: Ivena <huangzhy77@outlook.com>
Signed-off-by: Ivena <huangzhy77@outlook.com>
Signed-off-by: Ivena <huangzhy77@outlook.com>
I rebased the commits and signed with author's name. Now all commits' sign-off are generated directly. Hope this time it would pass the workflow check. Thanks for your patience and guidance. I learn quite a lot from this PR |
No problem! Sorry that we requested so many changes ;) |
Three commits:
RawSyscallEnterCtxandRawSyscallExitCtxloader.cfor argument parsing using static methods.enumtypes throughout the codebase to align with the Linux Kernel coding style.syscount