2 * Copyright (C) 2011 - David Goulet <david.goulet@polymtl.ca>
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 2
7 * of the License, or (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19 #ifndef _TRACEABLE_APP_H
20 #define _TRACEABLE_APP_H
22 /* Traceable application list */
23 struct ltt_traceable_app_list
{
24 struct cds_list_head head
;
27 /* Registered traceable applications. Libust registers
28 * to the session daemon and a linked list is kept
29 * of all running traceable app.
31 struct ltt_traceable_app
{
32 struct cds_list_head list
;
34 uid_t uid
; /* User ID that owns the apps */
37 struct ltt_traceable_app
*find_app_by_pid(pid_t pid
);
38 int register_traceable_app(pid_t pid
, uid_t uid
);
39 void unregister_traceable_app(pid_t pid
);
40 void get_app_list_pids(pid_t
*pids
);
41 unsigned int get_app_count(void);
43 #endif /* _TRACEABLE_APP_H */
This page took 0.032959 seconds and 5 git commands to generate.