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

TracingPolicy examples: use portable symbols for syscalls #886

Merged
merged 1 commit into from Apr 6, 2023

Conversation

mtardy
Copy link
Member

@mtardy mtardy commented Apr 5, 2023

This patch includes the change done by this command:

find . -type f -name '*' -print0 | xargs -0 sed -i 's/call: "__x64_sys_/call: "sys_/g'

Apart from that, it highlights the issue that for the user, the symbol declared sys_write will be different than the symbol he can see from the logs __x64_sys_write or __arm64_sys_write. Should we do something about it? We could:

  • retranslate __x64_sys_write to sys_write at the agent level so that all logs contain this symbol name;
  • just provide a translation in tetra;
  • nothing.

This patch includes the change done by this command:
find . -type f -name '*' -print0 | xargs -0 sed -i 's/call: "__x64_sys_/call: "sys_/g'

Signed-off-by: Mahe Tardy <mahe.tardy@gmail.com>
@mtardy mtardy added the arch/arm64 arm64 issues label Apr 5, 2023
@mtardy mtardy requested a review from a team as a code owner April 5, 2023 09:24
@mtardy mtardy requested a review from tixxdz April 5, 2023 09:24
@mtardy mtardy mentioned this pull request Apr 6, 2023
Copy link
Contributor

@kkourt kkourt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

With respect to the output, I'm not sure. I can see cases where the prefix is useful and others where it is not. Let's leave it as is for now and we can revisit it when a specific need arises.

@kkourt kkourt merged commit 2432502 into main Apr 6, 2023
17 checks passed
@kkourt kkourt deleted the pr/mtardy/tracingpolicy-portable branch April 6, 2023 08:45
@errordeveloper
Copy link

A small follow up fix #891

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

Successfully merging this pull request may close these issues.

None yet

3 participants