Skip to content

Instantly share code, notes, and snippets.

View pedroexenberger's full-sized avatar

pedroexenberger

View GitHub Profile
@nasacj
nasacj / benchmark_tsc.c
Last active December 22, 2023 12:01
How to Benchmark Code Execution Times on Intel® IA-32 and IA-64 Instruction Set Architectures
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/hardirq.h>
#include <linux/preempt.h>
#include <linux/sched.h>
#include <linux/slab.h>
#define SIZE_OF_STAT 100000
#define BOUND_OF_LOOP 1000
@0xjac
0xjac / private_fork.md
Last active July 21, 2024 21:03
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare git@github.com:usi-systems/easytrace.git