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
|
#ifndef __SSPT_PROC__
#define __SSPT_PROC__
/*
* Dynamic Binary Instrumentation Module based on KProbes
* modules/driver/sspt/sspt_procs.h
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* Copyright (C) Samsung Electronics, 2013
*
* 2013 Vyacheslav Cherkashin <v.cherkashin@samsung.com>
*
*/
#include <linux/types.h>
#include "sspt_file.h"
struct sspt_procs {
struct list_head list;
pid_t tgid;
struct dentry *dentry;
struct list_head file_list;
};
struct sspt_procs *sspt_procs_create(struct dentry* dentry, pid_t tgid);
struct sspt_procs *sspt_procs_copy(struct sspt_procs *procs, struct task_struct *task);
void sspt_procs_free(struct sspt_procs *procs);
void sspt_procs_free_all(void);
void sspt_procs_add_ip_data(struct sspt_procs *procs, struct dentry* dentry,
const char *name, struct ip_data *ip_d);
struct sspt_file *sspt_procs_find_file(struct sspt_procs *procs, struct dentry *dentry);
struct sspt_file *sspt_procs_find_file_or_new(struct sspt_procs *procs,
struct dentry *dentry, const char *name);
#endif /* __SSPT_PROC__ */
|