]> The Tcpdump Group git mirrors - tcpdump/commitdiff
instrument functions: Remove tcpdump_ prefix from flag files
authorFrancois-Xavier Le Bail <[email protected]>
Wed, 2 Feb 2022 10:52:05 +0000 (11:52 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Wed, 2 Feb 2022 10:56:59 +0000 (11:56 +0100)
This make easier to use instrument-functions.c in other projects.

.gitignore
Makefile.in
instrument-functions.c

index a633695b2ffc3ba74f0cf666b3a4ec17fbd3c266..64ac3ee7a8abed4d935c31efbe6293422f56c0f6 100644 (file)
@@ -43,5 +43,5 @@ tcpdump.sln
 .vs/
 .passed
 .failed
 .vs/
 .passed
 .failed
-tcpdump_instrument_functions_global.devel
-tcpdump_instrument_functions_off.devel
+instrument_functions_global.devel
+instrument_functions_off.devel
index 40fb1cfc268b10f5ab1e22425e45c27036a94b4e..074263858a210f47a0784f58625c865d382c0f3f 100644 (file)
@@ -393,16 +393,16 @@ $(PROG): $(OBJ) @V_PCAPDEP@ $(LIBNETDISSECT)
        $(CC) $(FULL_CFLAGS) $(LDFLAGS) -o $@ $(OBJ) $(LIBNETDISSECT) $(LIBS)
 
 instrument_all: $(PROG)
        $(CC) $(FULL_CFLAGS) $(LDFLAGS) -o $@ $(OBJ) $(LIBNETDISSECT) $(LIBS)
 
 instrument_all: $(PROG)
-       @rm -f $(PROG)_instrument_functions_global.devel
-       @rm -f $(PROG)_instrument_functions_off.devel
+       @rm -f instrument_functions_global.devel
+       @rm -f instrument_functions_off.devel
 
 instrument_global: $(PROG)
 
 instrument_global: $(PROG)
-       @touch $(PROG)_instrument_functions_global.devel
-       @rm -f $(PROG)_instrument_functions_off.devel
+       @touch instrument_functions_global.devel
+       @rm -f instrument_functions_off.devel
 
 instrument_off: $(PROG)
 
 instrument_off: $(PROG)
-       @touch $(PROG)_instrument_functions_off.devel
-       @rm -f $(PROG)_instrument_functions_global.devel
+       @touch instrument_functions_off.devel
+       @rm -f instrument_functions_global.devel
 
 $(LIBNETDISSECT): $(LIBNETDISSECT_OBJ)
        @rm -f $@
 
 $(LIBNETDISSECT): $(LIBNETDISSECT_OBJ)
        @rm -f $@
index ba87be9ad8ed4213b3be324ba17f692a8397df0e..5c546125b0a28f6f65a0711ef690b9848ac7fefa 100644 (file)
@@ -74,10 +74,10 @@ __cyg_profile_func_exit(void *this_fn, void *call_site)
 }
 
 /* If this file exists, print only the global functions */
 }
 
 /* If this file exists, print only the global functions */
-#define ND_FILE_FLAG_GLOBAL "tcpdump_instrument_functions_global.devel"
+#define ND_FILE_FLAG_GLOBAL "instrument_functions_global.devel"
 
 /* If this file exists, print nothing, like with no instrumentation */
 
 /* If this file exists, print nothing, like with no instrumentation */
-#define ND_FILE_FLAG_OFF "tcpdump_instrument_functions_off.devel"
+#define ND_FILE_FLAG_OFF "instrument_functions_off.devel"
 
 static void print_debug(void *this_fn, void *call_site, action_type action)
 {
 
 static void print_debug(void *this_fn, void *call_site, action_type action)
 {