From 2972246a08bfc7c516455ecc4ef976e10c0ddb2c Mon Sep 17 00:00:00 2001 From: hunt Date: Fri, 12 Oct 2007 19:42:32 +0000 Subject: 2007-10-12 Martin Hunt Changes to separate the symbols from the command channel. * cap.c (init_cap): Add CAP_DAC_OVERRIDE. * staprun.h: Change init_ctl_channel prototype. * ctl.c (init_ctl_channel): Modify to open either a command or symbol channel. Use ".cmd" and ".symbols" as the new names. * mainloop.c (init_stapio): Call init_ctl_channel(0); * staprun.c (cleanup): Call stop_symbol_thread(). (main): Call start_symbol_thread(). * staprun_funcs.c (handle_symbols): Make a thread. (start_symbol_thread): New. (stop_symbol_thread): New. --- runtime/staprun/staprun.h | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'runtime/staprun/staprun.h') diff --git a/runtime/staprun/staprun.h b/runtime/staprun/staprun.h index 685de294..c22cc4f3 100644 --- a/runtime/staprun/staprun.h +++ b/runtime/staprun/staprun.h @@ -35,12 +35,7 @@ #include #include -#define DEBUG -#ifdef DEBUG #define dbug(level, args...) {if (verbose>=level) {fprintf(stderr,"%s:%s:%d ",__name__,__FUNCTION__, __LINE__); fprintf(stderr,args);}} -#else -#define dbug(level, args...) ; -#endif /* DEBUG */ extern char *__name__; @@ -125,7 +120,7 @@ int send_request(int type, void *data, int len); void cleanup_and_exit (int); int do_module(void *); void do_kernel_symbols(void); -int init_ctl_channel(void); +int init_ctl_channel(int); void close_ctl_channel(void); int init_relayfs(void); void close_relayfs(void); @@ -145,7 +140,8 @@ int insert_module(const char *path, const char *special_options, char **options); int mountfs(void); int check_permissions(void); -void handle_symbols(void); +void start_symbol_thread(void); +void stop_symbol_thread(void); /* common.c functions */ void parse_args(int argc, char **argv); -- cgit