Skip to content

Instantly share code, notes, and snippets.

View dave-tucker's full-sized avatar
🦀
Slowly oxidizing

Dave Tucker dave-tucker

🦀
Slowly oxidizing
View GitHub Profile
@dave-tucker
dave-tucker / ebpf-overhead.py
Created August 11, 2024 14:43
Measuring eBPF program overhead per process
# perf script event handlers, generated by perf script -g python
# Licensed under the terms of the GNU GPL License version 2
# The common_* event handler fields are the most useful fields common to
# all events. They don't necessarily correspond to the 'common_*' fields
# in the format files. Those fields not available as handler params can
# be retrieved using Python functions of the form common_*(context).
# See the perf-script-python Documentation for the list of available functions.
import os
@dave-tucker
dave-tucker / async-bpf-results.txt
Created May 23, 2024 10:22
Kepler Async Results
BPF ASYNC RESULTS
2.134379ms
2.633542ms
1.703522ms
2.444619ms
2.362205ms
2.38204ms
2.682641ms
@dave-tucker
dave-tucker / main-ebpf.rs
Created November 10, 2021 22:27
SkSkb Echo Example
#![no_std]
#![no_main]
use aya_bpf::{
bindings::sk_action,
macros::{map, stream_parser, stream_verdict},
maps::{SockMap},
programs::{SkSkbContext}};
#[map(name = "sockmap")]

Keybase proof

I hereby claim:

  • I am dave-tucker on github.
  • I am davetucker (https://keybase.io/davetucker) on keybase.
  • I have a public key ASB6avUwxNxJ0nE7E0y86Y82mj-3bZoFWscfc7-gh3Iatgo

To claim this, I am signing this object:

#
# Automatically generated file; DO NOT EDIT.
# Crosstool-NG Configuration
#
CT_CONFIGURE_has_xz=y
CT_MODULES=y
#
# Paths and misc options
#
#
# Automatically generated file; DO NOT EDIT.
# Crosstool-NG Configuration
#
CT_CONFIGURE_has_xz=y
CT_MODULES=y
#
# Paths and misc options
#
# compile libc/__aeabi_idiv0.o
/home/dave/dev/rumpkernel/rumprun/obj-evbearmhf-el-hw/rumptools/bin/arm--netbsdelf-eabihf-gcc -O2 -g -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -Wno-sign-compare -Wold-style-definition -Wsign-compare -Wformat=2 -Wno-format-zero-length -Wno-format -D__NetBSD__ -Ulinux -U__linux -U__linux__ -U__gnu_linux__ --sysroot=/home/dave/dev/rumpkernel/rumprun/obj-evbearmhf-el-hw/rumptools/dest -D_LIBC -DLIBC_SCCS -DSYSLIBC_SCCS -D_REENTRANT -D_DIAGNOSTIC -DHESIOD -DINET6 -DNLS -I/home/dave/dev/rumpkernel/rumprun/src-netbsd/lib/libc/include -I/home/dave/dev/rumpkernel/rumprun/src-netbsd/lib/libc -I. -I/home/dave/dev/rumpkernel/rumprun/src-netbsd/sys -I/home/dave/dev/rumpkernel/rumprun/src-netbsd/lib/libc/compat/../locale -I/home/dave/dev/rumpkernel/rumprun/src-netbsd/lib/libc/compat/stdlib -I/home/dave/dev/rumpkernel/ru
#
# Automatically generated file; DO NOT EDIT.
# Crosstool-NG Configuration
#
CT_CONFIGURE_has_xz=y
CT_MODULES=y
#
# Paths and misc options
#
package main
import (
"fmt"
"syscall"
)
func main() {
var mod = syscall.NewLazyDLL("kernel32.dll")
var proc = mod.NewProc("IsProcessorFeaturePresent")
Jan 11 21:32:49 scw-677a6e docker[30609]: time="2016-01-11T21:32:49.061699099Z" level=debug msg="Calling POST /v1.22/containers/create"
Jan 11 21:32:49 scw-677a6e docker[30609]: time="2016-01-11T21:32:49.061859902Z" level=debug msg="POST /v1.22/containers/create"
Jan 11 21:32:49 scw-677a6e docker[30609]: time="2016-01-11T21:32:49.063598623Z" level=debug msg="form data: {\"AttachStderr\":true,\"AttachStdin\":true,\"AttachStdout\":true,\"Cmd\":null,\"Domainname\":\"\",\"Entrypoint\":null,\"Env\":[],\"HostConfig\":{\"Binds\":null,\"BlkioDeviceReadBps\":null,\"BlkioDeviceReadIOps\":null,\"BlkioDeviceWriteBps\":null,\"BlkioDeviceWriteIOps\":null,\"BlkioWeight\":0,\"BlkioWeightDevice\":null,\"CapAdd\":null,\"CapDrop\":null,\"CgroupParent\":\"\",\"ConsoleSize\":[0,0],\"ContainerIDFile\":\"\",\"CpuPeriod\":0,\"CpuQuota\":0,\"CpuShares\":0,\"CpusetCpus\":\"\",\"CpusetMems\":\"\",\"Devices\":[],\"Dns\":[],\"DnsOptions\":[],\"DnsSearch\":[],\"ExtraHosts\":null,\"GroupAdd\":null,\"IpcMode\":\"\",\"Isolation\":\"\",\"Kern