Skip to content

Instantly share code, notes, and snippets.

View avadhpatel's full-sized avatar

Avadh Patel avadhpatel

  • SUNY Binghamton - Computer Science
View GitHub Profile
@avadhpatel
avadhpatel / graphs.r
Created May 3, 2012 13:53
Small R Script to generate graphs from periodic dump files for Marss and similar tools
#!/usr/bin/env Rscript
# First read in the file
args <- commandArgs(trailingOnly=TRUE)
# print(args)
# Arguments are like following:
# Operation output_file <operation specific #options...>
# Create a png image
@avadhpatel
avadhpatel / checkpoint_after.c
Created March 27, 2012 18:21
Checkpoint after fast-forward specific amount of instructions in MARSS
/*
* checkpoint_after.c
*
* Create a checkpoint after Specifiec amount of user-level-instructions.
*
* Usage: ./checkpoint_after N CHK_NAME
* N Number of user-level-instructions to fast-forward
* CHK_NAME Name of checkpoint
*
* To change instruction counting from user level to all, in line 36 change
@avadhpatel
avadhpatel / sem_helper.h
Created September 27, 2011 21:22
System V Semaphore based barrier across multiple processes
/* This file provides basic function to synchronize multiple processes using
* System V Semaphores. It uses semaphore id 786 so please make sure none of
* your benchmarks uses that ID. */
#ifndef SEM_HELPER_H
#define SEM_HELPER_H
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>