Birch-san

Results 175 comments of Birch-san

The following is not really a 'pattern' as such, but it's certainly a simple way that's supported well by the API: ```js const store = createStore({ lols: 5, }); const...

Here's the pattern I settled on: ```js const store = createStore({ ready: false, lols: 5, }); const actions = (store) => ({ increment(state) { return {...state, lols: state.lols+1 } },...

thanks for confirming how the attempt went. 🙂 if you end up trying again on BPE, it'll certainly be interesting to see whether that fares any better.

@tyroguru out of interest: what kind of script do you have that needs big strings? Clear use-cases are valuable for framing the conversation. I had another thought… Ferrying the strings...

@tyroguru thanks for the example. agreed; we need way bigger strings to attack that use-case. I've had a look at how [probe_read](https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=2541517c32be2531e0da59dfd7efc1ce844644f5) and [probe_read_str](https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a5e8c07059d0f0b31737408711d44794928ac218) are implemented in the kernel. I...

Oh, apparently it used to be possible to probe_read directly into a BPF map value? https://github.com/iovisor/bcc/issues/900#issuecomment-272049764 > if you want to work on data bigger than 512 bytes don't use...

I had a stab at implementing some new kernel helpers (probe_read/probe_read_str which can write into map value). branched from: ``` Ubuntu 18.04.1 LTS 4.15.0-45-generic git://kernel.ubuntu.com/ubuntu/ubuntu-bionic.git commit ffdd392b819682b66da292cd0d13569d07a1a7c2 (tag: Ubuntu-4.15.0-45.48, origin/master,...

@brendangregg thanks for pointing me to the right people. mailing lists are a new world to me, so I'm lurking for a bit first. then I'll ask whether probe_read_* was...

@mmarchini I'm indeed interested; thanks for progressing this. ==== The reason I believe that probe_read_str() refuses to write into a BPF map value (and will only write onto the BPF...

`-DCMAKE_VERBOSE_MAKEFILE=1` creates the following makefile at: `build-llvm12/src/CMakeFiles/bpftrace.dir/build.make` ``` CMAKE_COMMAND = /usr/bin/cmake src/bpftrace: src/CMakeFiles/bpftrace.dir/link.txt @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --bold --progress-dir=/home/alex/git/bpftrace/build-llvm12/CMakeFiles --progress-num=$(CMAKE_PROGRESS_2) "Linking CXX executable bpftrace" cd /home/alex/git/bpftrace/build-llvm12/src && $(CMAKE_COMMAND) -E...