Skip to content

MacOS development: add a setting to override virtiofs paths#489

Draft
r1viollet wants to merge 2 commits intomainfrom
r1viollet/maos-fix-vir
Draft

MacOS development: add a setting to override virtiofs paths#489
r1viollet wants to merge 2 commits intomainfrom
r1viollet/maos-fix-vir

Conversation

@r1viollet
Copy link
Collaborator

@r1viollet r1viollet commented Feb 12, 2026

What does this PR do?

Add a setting to override file paths.

Motivation

This makes it easier to develop inside docker on macos.

Use the following

./tools/launch_local_build.sh -u 24
# usual build commands
./test/simple-malloc-ut.sh

Additional Notes

NA

How to test the change?

On MacOS inside docker.

On macOS with Docker / virtiofs, /proc/pid/maps exposes host paths
(e.g. /run/host_virtiofs/Users/.../build/...) instead of the
in-container path (/app/build/...).  Add DDPROF_WORKSPACE_ROOT env
variable support to remap these paths so libdwfl can locate ELF files.

The launch_local_build.sh script sets this variable automatically on
macOS.
@r1viollet r1viollet marked this pull request as ready for review February 12, 2026 15:52
@r1viollet r1viollet requested a review from nsavoire as a code owner February 12, 2026 15:52
@pr-commenter
Copy link

pr-commenter bot commented Feb 12, 2026

Benchmark results for collatz

Parameters

Baseline Candidate
config baseline candidate
profiler-version ddprof 0.23.0+dee61e6b.94317364 ddprof 0.23.0+f9865f0d.96114237

Summary

Found 0 performance improvements and 0 performance regressions! Performance is the same for 1 metrics, 0 unstable metrics.

See unchanged results
scenario Δ mean execution_time
scenario:ddprof -S bench-collatz --preset cpu_only collatz_runner.sh same

@pr-commenter
Copy link

pr-commenter bot commented Feb 12, 2026

Benchmark results for BadBoggleSolver_run

Parameters

Baseline Candidate
config baseline candidate
profiler-version ddprof 0.23.0+dee61e6b.94317364 ddprof 0.23.0+f9865f0d.96114237

Summary

Found 0 performance improvements and 0 performance regressions! Performance is the same for 1 metrics, 0 unstable metrics.

See unchanged results
scenario Δ mean execution_time
scenario:ddprof -S bench-bad-boggle-solver BadBoggleSolver_run work 1000 same

void DsoHdr::init_workspace_remap() {
_workspace_host_prefix.clear();
_workspace_container_root.clear();
if (const char *workspace_env = std::getenv("DDPROF_WORKSPACE_ROOT");
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

todo: naming needs to be adjusted

@r1viollet r1viollet marked this pull request as draft February 12, 2026 15:57
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