blob: 1be35b776c81c9af8d714bddba0233d3727c410b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
/* 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
* @brief Main include file for runtime functions.
*/
#include <linux/module.h>
#include <linux/ctype.h>
#include <linux/kernel.h>
#include <linux/miscdevice.h>
#include <linux/init.h>
#include <linux/hash.h>
#include <linux/string.h>
#include <linux/kprobes.h>
#include <linux/proc_fs.h>
#include <linux/vmalloc.h>
#include <linux/time.h>
#include <linux/spinlock.h>
#include <linux/hardirq.h>
#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);
#ifndef STP_NETLINK_ONLY
static struct
{
atomic_t ____cacheline_aligned_in_smp seq;
} _stp_seq = { ATOMIC_INIT (0) };
#define _stp_seq_inc() (atomic_inc_return(&_stp_seq.seq))
#endif
#include "print.c"
#include "string.c"
#endif /* _RUNTIME_H_ */
|