News for hackers. Stuff that matters.
Re:Good Logging by masklinn on Friday July 24, 2020 @08:20AM (#23938594)
To me that's why the original promise of dtrace was so nice, the idea of being able to dynamically turn logging on and off from the outside at locations never intended to log anything without even touching the source code sounded wonderful.

Sadly $dayjob runs servers on linux and isn't going to merge the dtrace patches in there, and python's systemtap probes are… limited.

Apparently bcc can hook into USDT probes though, I should look into that: https://ish-ar.io/python_ebpf_tracing/

Re:Good Logging by wsargent on Saturday July 25, 2020 @01:51PM (#23951096)
I know this doesn't help for Python, but... You can do that in Java with instrumentation. Things like ByteBuddy [1] or ReactorDebugAgent [2] will add debugging statements into your code without you having to touch anything.

If you want more advanced, then you can look at libstapsdt [3] which enables JVM applications to create USDT probes.

[1] https://tersesystems.github.io/terse-logback/guide/instrumen...

[2] https://github.com/reactor/reactor-tools#reactor-debug-agent...

[3] https://github.com/goldshtn/libstapsdt-jni

Re:Good Logging by pjmlp on Friday July 24, 2020 @08:25AM (#23938630)
Depends on which flavour of Linux one goes by.

https://docs.oracle.com/en/operating-systems/oracle-linux/dt...

Regarding BPF, the book is a must have for anyone doing serious stuff with it.

https://www.informit.com/store/bpf-performance-tools-9780136...

Re:Good Logging by masklinn on Friday July 24, 2020 @08:26AM (#23938643)
I would strongly doubt the sanity of anyone getting their linux distro from oracle.
Re:Good Logging by pjmlp on Friday July 24, 2020 @08:31AM (#23938675)
Luckily most Fortune 500 management boards think otherwise, so I get to enjoy nice tools.
Re:Good Logging by kyuudou on Friday July 24, 2020 @05:22PM (#23944605)
In cases like HPC and other performance-centric workloads, mainline kernel just doesn't have the hardware support needed for more exotic stuff like Infiniband and Mellanox cards, high-end SSD etc. Oracle got tired of waiting for sufficient support to be included which is why IIRC OEL UEK was created.

If such hardware isn't being used, then yes, sanity should be questioned for supporting Uncle Larry's Linux.