Skip to content

Instantly share code, notes, and snippets.

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <linux/perf_event.h>
#include <asm/unistd.h>
#include <sys/ioctl.h>
static inline
int sys_perf_event_open(struct perf_event_attr *attr,
pid_t pid, int cpu, int group_fd,
@chaosgame
chaosgame / WebKit.diff
Created March 31, 2011 16:39
PIN Branch Predictor for ARM + correlation with JSC vPC
Index: Source/JavaScriptCore/interpreter/Interpreter.cpp
===================================================================
--- Source/JavaScriptCore/interpreter/Interpreter.cpp (revision 80598)
+++ Source/JavaScriptCore/interpreter/Interpreter.cpp (working copy)
@@ -75,6 +75,8 @@
namespace JSC {
+Instruction* globalVPC;
+
@chaosgame
chaosgame / Getting Started
Created November 1, 2012 20:07
Facebook Midwest Hackathon
heroku login
heroku apps:create
git clone [email protected]:<your-url-here>.git -o heroku
vim index.php (or emacs index.php or notepad index.php)
git add .
git commit
git push heroku master
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.