Alastair Robertson

Results 214 comments of Alastair Robertson

+1 I think methods will clean up the syntax a lot. The current syntax for `delete()` is pretty janky - it appears as if it's looking up a value in...

Closing in favour of #3499

Minimised repro: ``` #include BEGIN { IOC_WATCH_QUEUE_SET_FILTER; } ``` I assume it's a problem with our dodgy macro parsing code: https://github.com/bpftrace/bpftrace/blob/ce8f81a1945ac23ed94fe0db942c9592971a6320/src/lexer.l#L251-L287

`std::format` is probably too new to use, but C++ 20 brings a lot of other nice features that have been supported by GCC and Clang for years. C++ 23 is...

Done in #3297

> To assist with that, we add a new error for anyone trying to assign > a large string to a scratch variable along with a remediation. > > This...

This has been addressed in https://github.com/llvm/llvm-project/pull/96575 We should build bpftrace against the latest LLVM to validate it resolves our issue before closing.

The problem with `cat()`, `system()` and the proposed `readlink()` functions is that they're asynchronous. The file descriptor you're trying to work with could be closed and reused for a completely...

Yep, C++ appears to be done now, so we can tick that one off. For the other languages, we should test anything that we claim to support with them. Off...

I'm not sure that min/max are actually broken - I haven't been able to trigger any wrong-results except by putting these per-cpu values into tuples (which suggests tuples are the...