Skip to content

Instantly share code, notes, and snippets.

View aalexand's full-sized avatar

Alexey Alexandrov aalexand

View GitHub Profile
@tcnksm
tcnksm / talk.md
Last active December 8, 2018 04:55
Stackdriver Profiler at Mercari
@jld
jld / bp_test.c
Created August 5, 2014 22:26
Example of using a perf_event breakpoint counter to crash on write to a specific location.
#include <fcntl.h>
#include <linux/hw_breakpoint.h>
#include <linux/perf_event.h>
#include <signal.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/syscall.h>
#include <sys/types.h>