Skip to content

netatop: use const ptr struct for micro-op and readability - #393

Open
GermanAizek wants to merge 1 commit into
Atoptool:masterfrom
GermanAizek:netatop-const-ptr-struct
Open

netatop: use const ptr struct for micro-op and readability#393
GermanAizek wants to merge 1 commit into
Atoptool:masterfrom
GermanAizek:netatop-const-ptr-struct

Conversation

@GermanAizek

Copy link
Copy Markdown
Contributor

Minor change use const pointer for code readability and better codegeneration by compiler (stack params function).

@Atoptool,
If you are interested in how assembly code on -O3 is micro-optimized in gcc, I can throw off asm listing images before and after calling fill_networkcnt() function. Example in netatop_bpf_exitfind()

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

Successfully merging this pull request may close these issues.

1 participant