Skip to content

Commit

Permalink
test commit
Browse files Browse the repository at this point in the history
  • Loading branch information
saleha-muzammil committed Aug 3, 2024
1 parent e04542c commit 88fa30a
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 236 deletions.
1 change: 1 addition & 0 deletions probe_src/libprobe/generated/libc_hooks.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include <ftw.h>
#include <sys/wait.h>
#include <threads.h>
#include "../src/prov_enable.c"

static FILE * (*unwrapped_fopen)(const char *filename, const char *opentype);
static FILE * (*unwrapped_freopen)(const char *filename, const char *opentype, FILE *stream);
Expand Down
Empty file.
1 change: 1 addition & 0 deletions probe_src/libprobe/include/general.h
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#pragma once
233 changes: 0 additions & 233 deletions probe_src/libprobe/src/fd_table.c

This file was deleted.

3 changes: 0 additions & 3 deletions probe_src/libprobe/src/prov_buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@
#define likely(x) __builtin_expect(!!(x), 1)
#endif

#define clone_op_code 1
#define exec_op_code 2

static void prov_log_save() {
/*
* Before I was using mmap-arena, I needed to explicitly save stuff.
Expand Down
3 changes: 3 additions & 0 deletions probe_src/libprobe/src/prov_ops.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
#include <sys/types.h>
#include <limits.h>
#include <linux/stat.h>
#include "../generated/libc_hooks.h"
#include "../include/prov_ops.h"

#define BORROWED
#ifndef likely
#define likely(x) __builtin_expect((x), 1)
Expand Down

0 comments on commit 88fa30a

Please sign in to comment.