Better HN
topnewbestaskshowjobs
Log inSign up

danobi

76 karma · joined Jun 16, 2014 (12y ago) · 37 submissions

github.com/danobi
Submissions

comment 1y ago · link · parent

https://github.com/thinking-machines-lab/tinker-cookbook

comment 2y ago · link · parent

bpftrace has support for outputting pcap files now.

comment 2y ago · link · parent

SEEKING VOLUNTEERS: bpftrace

As non-profit as it get! Intersection of operating systems, compilers, and observability. C/C++/LLVM.

https://github.com/bpftrace/bpftrace

"good first issue" or "easy" tag in issues is a good place to start looking for something to do. Or DM me and we can find something interesting.

4.

Pull request review: still files(dxuuu.xyz ↗)

2 points · by danobi · 2y ago · discuss

comment 2y ago · link · parent

What kind of events were being lost, and under what conditions? I'd like to see if it can be fixed.

comment 3y ago · link · parent

Above two comments are very helpful, thanks. I've corrected the -m32 issue.

And thanks for pointing out the x86/ABI assumptions. Had not considered that. It's certainly interesting to think about.

comment 3y ago · link · parent

I think it has to keep it for externally visible functions, right?

comment 3y ago · link · parent

BPF_PROG_RUN is great but unfortunately depends on the running kernel version. To that end, I wrote `vmtest` (https://dxuuu.xyz/vmtest.html) which is designed for the BPF_PROG_RUN use case.

9.

Vmtest: Run your tests in virtual machines(dxuuu.xyz ↗)

3 points · by danobi · 3y ago · discuss

comment 3y ago · link · parent

I use stock ios and mobius sync works pretty well. No issues so far over 1y+ of use.

11.

File capabilities and procfs(dxuuu.xyz ↗)

1 points · by danobi · 4y ago · discuss

comment 4y ago · link · parent

Was threading support ever added? I recall there being a few attempts. I tried aerc out for quite a bit but ultimately had to give it up for neomutt b/c mailing list discussions were impossible to follow without threading support.

comment 4y ago · link · parent

Are there any docs for how it's implemented?

comment 5y ago · link · parent

Completely agree. FWIW, I think procedural macros make a huge difference for ergonomics. For example, a "similar" library in C++ (libcereal) is still a PITA to use and debug.

comment 5y ago · link · parent

Because you can’t add a feature with a knob. And not all changes can be made in a module (eg core kernel). And even if they could, kernel internals are not stable and you would still need to rebase your out of tree modules.

comment 5y ago · link · parent

Your metabolism can change during your life. Different people can also have different metabolisms.

17.

Bpftrace v0.12 Released(github.com ↗)

3 points · by danobi · 5y ago · discuss

comment 5y ago · link · parent

Both parts (compiler backends & fuzzing) are immensely complicated stuff on their own. I can only imagine the trickery and head scratching that comes with the combination.

I’ve worked on simpler approximations of both [0][1] before and can attest even the simple parts are hard to get working reliably.

[0]: https://github.com/danobi/btrfs-fuzz

[1]: https://github.com/iovisor/bpftrace

comment 5y ago · link · parent

Yes, exactly.

> It looks like systemd-oomd is related to (based on? from the same people as?) Facebook's oomd

Yep, I authored the original standalone oomd (along with many others' help) and Anita has been working on systemd-oomd. There's plans to converge and simplify everything that's been learned from oomd into systemd-oomd so the community can benefit from all our experiments.

comment 5y ago · link · parent

When a cgroup hits its memory.max the kernel OOM killer is invoked. systemd-oomd enables finer grained policy than the kernel OOM killer. systemd-oomd can also prevent livelocks (which memory.max does not).

21.

Libbpf-rs: eBPF for the Rust ecosystem(dxuuu.xyz ↗)

3 points · by danobi · 5y ago · discuss

comment 6y ago · link · parent

A possibly lighter weight alternative is libbpf-rs [0]. libbpf-rs is designed to take advantage of BPF's Compile-Once-Run-Everywhere functionality where you can ship a pre-compiled object file to production instead of an entire compiler toolchain.

Disclaimer: I wrote libbpf-rs.

[0]: https://github.com/libbpf/libbpf-rs

23.

Understanding Btrfs Internals(dxuuu.xyz ↗)

1 points · by danobi · 6y ago · discuss

24.

Below: Interactive TUI System Monitor(github.com ↗)

2 points · by danobi · 6y ago · discuss

25.

/proc/[pid] and the missing threads(dxuuu.xyz ↗)

2 points · by danobi · 6y ago · discuss

26.

Bpftrace 0.10.0 Release Notes(github.com ↗)

1 points · by danobi · 6y ago · 1 comment

comment 6y ago · link · parent

It's explained in the second paragraph in the article.

comment 6y ago · link · parent

What if openat() or read() fails? More generally, what if there's a chain of syscalls and you _want_ one of them to fail?

29.

Bpftrace – high level tracing language for Linux(bpftrace.org ↗)

4 points · by danobi · 6y ago · discuss

30.

Bpftrace 0.9.3 Released(github.com ↗)

1 points · by danobi · 7y ago · discuss

12