Alastair Robertson

Results 63 issues of Alastair Robertson

I'll wait for #2624 to go into master before I merge this, as there'll be conflicts. - Use move ctors for std::string and SizedType - Remove explicit keywords on multi-arg...

Run aggregations against a multi-threaded target program and validate that the results are correct. Work in progress. - I haven't worked out how to use signed integers for min/max aggregations...

This script should print "true": ``` BEGIN { @[1] = 1; @[2] = 2; $count = len(@); // Uncomment this line and it works //$count = 2; printf("count: %d\n", $count);...

bug
priority: high
reliability

Run `./build/tests/bpftrace_test`, leave it to run for a few seconds and then try pressing Ctrl-C. The tests won't terminate and will run to completion. It is only a subset of...

bug
tests

We already have support for user-defined C types, either by including a C header file or by defining a C struct at the top of a script: ``` struct MyStruct...

enhancement
RFC
language

The `len()` function currently works by iterating over all elements in a map. The kernel provides a kfunc `bpf_map_sum_elem_count` which does the same, more efficiently. It looks like this kfunc...

enhancement

In #2203, a signal handler for SIGUSR1 was added, which prints all maps when the signal is received. Note: it appears that the docs for this feature have been deleted...

enhancement
language
difficulty: medium

Uniform Function Call Syntax (UFCS) is a language feature which allows any function to be called using the syntax for methods calls. References: - https://en.wikipedia.org/wiki/Uniform_Function_Call_Syntax - https://tour.dlang.org/tour/en/gems/uniform-function-call-syntax-ufcs It provides a...

enhancement
RFC
language

Related to #3472. Multi-delete syntax: ``` @[10] = 100; delete(@[10], @[11]); // delete element with key 10 and element with key 11 ``` New delete syntax: ``` @[10] = 100;...

bug

Related to #3472. This script should compile (and delete nothing): ``` # bpftrace -e 'BEGIN { @["a"] = 1; delete(@, "abc") }' stdin:1:31-36: ERROR: Argument mismatch for @: trying to...

bug