datadog-agent
datadog-agent copied to clipboard
[CSM] Hook ftruncate
What does this PR do?
This PR hooks the ftruncate syscall.
Motivation
This syscall was forgotten in the list of hooked syscalls. We currently support truncate but forgot ftruncate.
Describe how to test/QA your changes
A functional test was added.
[Fast Unit Tests Report]
On pipeline 36895747 (CI Visibility). The following jobs did not run any unit tests:
Jobs:
- tests_windows-x64
If you modified Go files and expected unit tests to run in these jobs, please double check the job logs. If you think tests should have been executed reach out to #agent-developer-experience
Test changes on VM
Use this command from test-infra-definitions to manually test this PR changes on a VM:
inv create-vm --pipeline-id=36895747 --os-family=ubuntu
Note: This applies to commit 657a9cdd