Skip to content

Instantly share code, notes, and snippets.

/*
* Example program to test tracing open syscall using BPF.
* Compile with: g++ -g3 -O0 test-open.cpp -o test-open -lbcc
* Run with: sudo ./test-open
*/
#include <bcc/BPF.h>
#include <iostream>
#include <string>
#include <unistd.h>
@rohgarg
rohgarg / maze.c
Last active July 11, 2018 02:21
2-D Maze Solver
#include<stdio.h>
#include<stdlib.h>
#define DEFAULT_MAZE_INPUT_FILE "./file1.txt"
#define EAST 1
#define WEST 2
#define NORTH 3
#define SOUTH 4