Re: btrace(8) allow to store kstack in a map

2023-06-27 Thread Klemens Nanni
On Tue, Jun 27, 2023 at 03:27:55PM +0200, Claudio Jeker wrote: > On Mon, Jun 26, 2023 at 08:58:47PM +, Klemens Nanni wrote: > > On Mon, Jun 26, 2023 at 10:52:20PM +0200, Claudio Jeker wrote: > > > count() is strange since it only works on maps (at least from what I > > > figured out). I need to

Re: btrace(8) allow to store kstack in a map

2023-06-27 Thread Claudio Jeker
On Mon, Jun 26, 2023 at 08:58:47PM +, Klemens Nanni wrote: > On Mon, Jun 26, 2023 at 10:52:20PM +0200, Claudio Jeker wrote: > > count() is strange since it only works on maps (at least from what I > > figured out). I need to double check how min() and max() work. Since the > > usage also seems

Re: btrace(8) allow to store kstack in a map

2023-06-26 Thread Klemens Nanni
On Mon, Jun 26, 2023 at 10:52:20PM +0200, Claudio Jeker wrote: > count() is strange since it only works on maps (at least from what I > figured out). I need to double check how min() and max() work. Since the > usage also seems non-intuitive. > > I find the documentation of bt(5) rather weak. So m

Re: btrace(8) allow to store kstack in a map

2023-06-26 Thread Claudio Jeker
On Mon, Jun 26, 2023 at 04:53:45PM +, Klemens Nanni wrote: > On Mon, Jun 26, 2023 at 05:24:53PM +0200, Claudio Jeker wrote: > > I created this simple btrace script to help find malloc(9) leaks but > > it did not work. First step was adding kstack support to the map > > implementation. But then

Re: btrace(8) allow to store kstack in a map

2023-06-26 Thread Klemens Nanni
On Mon, Jun 26, 2023 at 05:24:53PM +0200, Claudio Jeker wrote: > I created this simple btrace script to help find malloc(9) leaks but > it did not work. First step was adding kstack support to the map > implementation. But then it still did not work because btrace did not > enable the kstack report