This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |