Skip to content

Instantly share code, notes, and snippets.

View hillu's full-sized avatar

Hilko Bengen hillu

View GitHub Profile
@hillu
hillu / aya_log.c
Last active May 24, 2025 10:43
A subset of aya_log_ebpf functionality re-implemented in C
#include <linux/bpf/vmlinux.h>
#include <bpf/bpf_core_read.h>
#include <bpf/bpf_endian.h>
#include <bpf/bpf_helpers.h>
#include <bpf/bpf_tracing.h>
#include "aya_log.h"
static size_t strlen(const char* s)
/*
dump-pagemap.c - Dump pagemap entries associated with mappings of a given process
Copyright 2021 Hilko Bengen <[email protected]>
License: GPL3 or later
Based on information from:
- linux/Documentation/filesystems/proc.txt
- linux/Documentation/admin-guide/mm/pagemap.rst
*/

Keybase proof

I hereby claim:

  • I am hillu on github.
  • I am hillu (https://keybase.io/hillu) on keybase.
  • I have a public key whose fingerprint is AE73 1055 442A 1D96 CF4D 4C78 75B7 1063 5C21 3A7E

To claim this, I am signing this object: