Cleanup comments and bad indent
[lttng-tools.git] / ltt-sessiond / traceable-app.h
CommitLineData
91d76f53
DG
1/*
2 * Copyright (C) 2011 - David Goulet <david.goulet@polymtl.ca>
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
82a3637f
DG
6 * as published by the Free Software Foundation; only version 2
7 * of the License.
91d76f53
DG
8 *
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.
13 *
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.
17 */
18
19#ifndef _TRACEABLE_APP_H
20#define _TRACEABLE_APP_H
21
22/* Traceable application list */
23struct ltt_traceable_app_list {
24 struct cds_list_head head;
25};
26
050349bb
DG
27/* Registered traceable applications. Libust registers to the session daemon
28 * and a linked list is kept of all running traceable app.
91d76f53
DG
29 */
30struct ltt_traceable_app {
31 struct cds_list_head list;
32 pid_t pid;
33 uid_t uid; /* User ID that owns the apps */
34};
35
36struct ltt_traceable_app *find_app_by_pid(pid_t pid);
37int register_traceable_app(pid_t pid, uid_t uid);
38void unregister_traceable_app(pid_t pid);
39void get_app_list_pids(pid_t *pids);
40unsigned int get_app_count(void);
41
42#endif /* _TRACEABLE_APP_H */
This page took 0.028979 seconds and 4 git commands to generate.