Devidas Jadhav
Devidas Jadhav
Yes Now I can compile. Linker error. as it is using linker '/usr/local/go/pkg/tool/linux_386/link' ``` bash CC=clang CGO_CFLAGS="--target=aarch64-unknown-linux" GOARCH=arm64 CGO_ENABLED=1 go build \ -ldflags "-w -s \ -X 'github.com/cilium/pwru/internal/pwru.Version=2f22f3f'" # github.com/cilium/pwru...
here is execsnoop output. ``` $ sudo /usr/share/bcc/tools/execsnoop PCOMM PID PPID RET ARGS go 38007 1266 0 /usr/local/go/bin/go build -ldflags -w -s -X 'github.com/cilium/pwru/internal /pwru.Version=2f22f3f' clang 38081 38080 0 /usr/lib/llvm-14/bin/clang...
@protik77 1. can you please try without -f option just to narrow down the issue. if that doesn't give the error then 2. can you try [this stack counr version...
thanks. here is work temporary around. ``` diff diff --git a/tools/stackcount.py b/tools/stackcount.py index 1691ef68..2e811ef2 100755 --- a/tools/stackcount.py +++ b/tools/stackcount.py @@ -356,7 +356,7 @@ class Tool(object): reversed(user_stack)] + \ (self.need_delimiter and...
root-cause ------------ in `print("%s %d" % (";".join(line), v.value))` `line` is expected to be list of 'str' type. so with following patch we are ensuring any non string char is converted...
I have changed code. cause of this was `b` before `";". from [python bug 24892](https://bugs.python.org/issue24892) ``` >>> x = b'foo' >>> y = b'barbaz' >>> x.join(y) Traceback (most recent call...
correct now you can use flamegraph. if it works close the issue
even tracepoint from tracefs shows same. ` echo 1 > /sys/kernel/tracing/events/signal/signal_generate/enable ` sh-72340 [003] dN.2. 9457.683068: signal_generate: sig=17 errno=0 code=1 comm=python pid=1258 grp=1 res=1 grep-72348 [002] dN.2. 9458.691583: signal_generate: sig=17...
surprisingly with `-k` its working fine. So Now in my setup tracepoint version of code is not performing as expected. Can @chenhengqi please verify if its working in your setup...
probable cause is [linux code](https://elixir.bootlin.com/linux/v5.2.21/source/kernel/trace/bpf_trace.c#L413) ```c static __always_inline u64 __bpf_perf_event_output(struct pt_regs *regs, struct bpf_map *map, u64 flags, struct perf_sample_data *sd) { ......... if (unlikely(event->oncpu != cpu)) return -EOPNOTSUPP; return perf_event_output(event,...