Jordan Rome

Results 346 comments of Jordan Rome

I think [blazesym](https://github.com/libbpf/blazesym), which we now use, can demangle Rust symbols. Keep me honest here @d-e-s-o

It looks like `cpp_demangle` defaults to true in the bpftrace config. So perhaps Rust demangling already works when Blazesym is used.

Closing as stale - please feel free to re-open

Closing this as stale since it doesn't seem we have a good solutions. Feel free to re-open if there is more info or discussion to be had here.

> I'm not seeing a verifier error - I get an error from LLVM about using too much stack space before it gets to the kernel Ah my bad. I...

@danobi Worked on fixing this recently: https://github.com/bpftrace/bpftrace/pull/3811

Note: for my example, you still have to clamp the initial string: ``` tracepoint:syscalls:sys_enter_execve { $s = str(*(args.envp), 20); if (strcontains($s,"USER")) { print(($s)); } print(("not found")); } ```

Thanks for the contribution! This could also use a few semantic analyser and runtime tests. @ajor @danobi @viktormalik - How do you feel about landing this change before we move...

@ZhangYet You need to run the codegen generation script. Basically from the root of the repo I run `./tests/codegen-tests.sh -u`, but you also need to have nix setup. https://github.com/bpftrace/bpftrace/blob/master/tests/README.md#codegen-tests