blob: b8675fd0b739e1af3afa72ac115f72a5a6f1b8c2 (
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
|
////////////////////////////////////////////////////////////////////////////////////
//
// FILE: us_proc_inst.h
//
// DESCRIPTION:
//
// SEE ALSO: us_proc_inst.c
// AUTHOR: A.Gerenkov
// COMPANY NAME: Samsung Research Center in Moscow
// DEPT NAME: Advanced Software Group
// CREATED: 2008.06.02
// VERSION: 1.0
// REVISION DATE: 2008.12.03
//
////////////////////////////////////////////////////////////////////////////////////
/*
Functions in "us_proc_inst.h" file .
*/
#if !defined(__US_PROC_INST_H__)
#define __US_PROC_INST_H__
#include <linux/signal.h> // struct sigpending
#include "sspt/ip.h"
/* Instruments or schedules pending instrumentation of user space process. */
extern int inst_usr_space_proc (void);
extern int deinst_usr_space_proc (void);
extern pid_t gl_nNotifyTgid;
/* forward declarations */
struct task_struct;
struct pt_regs;
struct us_proc_ip_t;
struct us_ip;
struct sspt_file;
struct sspt_page;
struct vm_area_struct;
enum US_FLAGS;
int is_us_instrumentation(void);
int register_usprobe(struct us_ip *ip);
int unregister_usprobe(struct us_ip *ip);
struct dentry *dentry_by_path(const char *path);
int check_vma(struct vm_area_struct *vma);
#endif /* !defined(__US_PROC_INST_H__) */
|