diff options
Diffstat (limited to 'runtime/runtime.h')
-rw-r--r-- | runtime/runtime.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/runtime/runtime.h b/runtime/runtime.h index 1a70da3f..1be35b77 100644 --- a/runtime/runtime.h +++ b/runtime/runtime.h @@ -1,3 +1,12 @@ +/* main header file + * Copyright (C) 2005 Red Hat Inc. + * + * This file is part of systemtap, and is free software. You can + * redistribute it and/or modify it under the terms of the GNU General + * Public License (GPL); either version 2, or (at your option) any + * later version. + */ + #ifndef _RUNTIME_H_ #define _RUNTIME_H_ /** @file runtime.h @@ -20,7 +29,16 @@ #include <asm/uaccess.h> #include <linux/kallsyms.h> +#ifdef DEBUG +/** Prints debug line. + * This function prints a debug message immediately to stpd. + * If the last character is not a newline, then one is added. + * @param args A variable number of args in a format like printf. + */ +#define dbug(args...) _stp_dbug(__FUNCTION__, __LINE__, args) +#else #define dbug(args...) ; +#endif /* DEBUG */ /* atomic globals */ static atomic_t _stp_transport_failures = ATOMIC_INIT (0); |