Jordan Rome
Jordan Rome
Maybe a tangent but just curious: what should the output of this be? ``` $ sudo ./build/src/bpftrace -e 'BEGIN { print(@) } END { @ = 1 }' ``` Should...
Issue filed for the empty map printing: https://github.com/bpftrace/bpftrace/issues/3006
LGTM. Can you also update the example file: https://github.com/iovisor/bpftrace/blob/master/tools/tcpretrans_example.txt ?
cc @chantra
While working on this issue, I realized it brought up other inconsistencies in printing e.g. ``` 'BEGIN { @a["0"] = "123"; @b[0] = 123; exit(); }' ``` Prints: ``` @a[0]:...
@ajor We don't quote strings in normal print output so in what special cases should we be quoting? Just tuples and maps? Maybe that's where it makes sense the most...
I'm looking into fixing this across the board for `print` but it's a more involved change than I anticipated. Also I assume we want to handle `debugf` the same way...
@xh4n3 Happy New Year and gentle ping :)
I'm sure there are still things we can do to improve documentation but we've done an initial pass and merged the adoc with the reference doc.
How about this? https://github.com/bpftrace/bpftrace/pull/2992