Skip to content

Instantly share code, notes, and snippets.

View walidbr's full-sized avatar

Walid BEN ROMDHANE walidbr

  • Arm
  • Cambridge, UK
View GitHub Profile
@ikrishagarwal
ikrishagarwal / setup-zsh-in-codespaces.md
Last active November 22, 2025 12:16
Setup starship, zsh suggestions and syntax highlight for your codespaces.
@ibireme
ibireme / kpc_demo.c
Last active December 1, 2025 00:45
A demo shows how to read Intel or Apple M1 CPU performance counter in macOS.
// =============================================================================
// XNU kperf/kpc demo
// Available for 64-bit Intel/Apple Silicon, macOS/iOS, with root privileges
//
//
// Demo 1 (profile a function in current thread):
// 1. Open directory '/usr/share/kpep/', find your CPU PMC database.
// M1 (Pro/Max/Ultra): /usr/share/kpep/a14.plist
// M2 (Pro/Max): /usr/share/kpep/a15.plist
// M3: /usr/share/kpep/as1.plist