Skip to content

Instantly share code, notes, and snippets.

Output from zig test suite:
run blocks: error: the following command terminated with signal 9 (expected exited with code 0):
/tmp/build_rpz/zig-0.12.0/zig-0.12.0/zig-cache/o/22d8368ac9f2e8a052a6f4d05c51b9e7/blocks
run blocks: error: the following command terminated with signal 9 (expected exited with code 0):
/tmp/build_rpz/zig-0.12.0/zig-0.12.0/zig-cache/o/2c510bec3a90471080d72bd821f79538/blocks
Output from dtrace if I attempt to run the first executable manually:
rpz@kalm:/tmp/build_rpz/zig-0.11.0$ file zig-0.11.0-build/build.amd64/stage3/bin/zig
zig-0.11.0-build/build.amd64/stage3/bin/zig: ELF 64-bit LSB executable AMD64 Version 1, dynamically linked, stripped
rpz@kalm:/tmp/build_rpz/zig-0.11.0$ ./zig-0.11.0-build/build.amd64/stage3/bin/zig version
0.11.0
@rzezeski
rzezeski / gist:56a9d9c1255e47af35af5f544a0bd42d
Created August 31, 2023 19:00
zig2 attempting to build zig3 executable on illumos
[pid: 27607, argc: 27] rename /tmp/build_rpz/zig-0.11.0/zig-0.11.0/zig-cache/o/1d7326cd6c2c57bf3bb21b623a8dc60b/build.tmpc3ad6f0 => /tmp/build_rpz/zig-0.11.0/zig-0.11.0/zig-cache/o/1d7326cd6c2c57bf3bb21b623a8dc60b/build
argv[0]: /tmp/build_rpz/zig-0.11.0/zig-0.11.0-build/build.amd64/zig2
argv[1]: ld.lld
argv[2]: --error-limit=0
argv[3]: -O0
argv[4]: -z
argv[5]: stack-size=16777216
argv[6]: --gc-sections
argv[7]: --eh-frame-hdr
argv[8]: -znow
#!/bin/bash
set -eu
#OMICRON_HOME=~/oxidecomputer/omicron
OMICRON_HOME=~/omi-integration-2/omicron
MY_ORG=all-lucky-sevens
MY_PROJ=remake
trap "kill 0" EXIT
@rzezeski
rzezeski / gist:9122652cb3cb669c8e0bf070d289ce74
Created November 22, 2021 18:30
build issue with manifest verification
==== Validating manifests against proto area ====
Entries present in proto area but not manifests:
file kernel/drv/amd64/ena group=group mode=0755 owner=owner path=kernel/drv/amd64/ena
file kernel/drv/ena.conf group=group mode=0644 owner=owner path=kernel/drv/ena.conf
file usr/share/man/man7d/ena.7d group=group mode=0444 owner=owner path=usr/share/man/man7d/ena.7d
@rzezeski
rzezeski / snoop-mac-example.d
Created May 12, 2021 20:14
snoop any function
/*
* Print basic Ethernet frame and IP header info for all IPv4 traffic
* that hits mac_rx_classify().
*
* $ pfexec dtrace -I /usr/include/sys/ -Cqs ~/snoop-mac-example.d
*/
#pragma D option quiet
#include <inttypes.h>
#include <sys/types.h>
These are my tests notes for the recent round of i40e updates, based on rm's branch:
https://github.com/rmustacc/illumos-gate/tree/i40e-dev
I believe related to this thread:
https://illumos.topicbox.com/groups/developer/Tccb1492df7a2b29c/test-request-and-code-review-i40e-updates
All tests run on DEBUG kernel.
@rzezeski
rzezeski / mac_rx_ip_group_and_ring.d
Created October 18, 2020 15:46
Intercept all IP packets arriving at mac_rx_common() and print basic header info along with mac group + ring.
/*
* Print basic Ethernet frame and IP header info for all IPv4 traffic
* that hits mac_rx_common() along with the group and ring it came in
* on.
*/
#pragma D option quiet
#include <inttypes.h>
#include <sys/types.h>
#include <sys/pattr.h>
@rzezeski
rzezeski / enav0-perf.adoc
Last active October 4, 2020 22:04
ENAv0 performance
Table of Contents

ENA Version 0 iperf3 runs

This is with the simplest data path possible. Sender and receiver are both illumos intances in the same subnet.

  • 9216 MTU.

  • All bcopy.

  • No Tx offloads.

@rzezeski
rzezeski / panic.txt
Created September 17, 2020 22:10
first panic
ifconfig: #pf Page fault
Bad kernel fault at addr=0xa0
pid=100090, pc=0xfffffffff7de9a6c, sp=0xfffffe00046624b0, eflags=0x10246
cr0: 80050033<pg,wp,ne,et,mp,pe> cr4: 3606f8<smap,smep,osxsav,pcide,xmme,fxsr,pge,mce,pae,pse,de>
cr2: a0 cr3: 1b5d2000 cr8: 0
rdi: 0 rsi: fffffe0004662508 rdx: 0
rcx: fffffe0379ffbb80 r8: 0 r9: 1
rax: 3ff rbx: 0 rbp: fffffe00046624f0