derickson2402 / Dockerized-CAEN

Containerized dev environment that plugs into VS Code so you can test on CAEN without the hassle
GNU General Public License v3.0
5 stars 1 forks source link

Perf breaks when redirecting file input #24

Closed derickson2402 closed 2 years ago

derickson2402 commented 2 years ago

Somewhere between adding #6 and adding #2, perf was not tested very thoroughly. Perf is working (although has a now-resolved issue with privileges), but when redirecting file input to the program being recorded perf just outputs gibberish. I think this has to do with the translation from my macOS host to the container, and maybe perf doesn't handle it right since it is monitoring low-level kernel calls.

Temporary workaround: specify --privileged for CAEN_ARGS, and just launch a bash shell. When the file is redirected from inside the container, it will work correctly.

May be related to #21 , where piping into/out-of the container is not always working right

derickson2402 commented 2 years ago

I haven't been able to find anything online regarding this... I'm still not sure what's even causing the issue. I guess it's possible that perf is not actually gaining --privileged status? Need to verify this.

derickson2402 commented 2 years ago

Marking this as wontfix and closing. I reopened #6 instead.