Update authors
[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
27/* Registered traceable applications. Libust registers
28 * to the session daemon and a linked list is kept
29 * of all running traceable app.
30 */
31struct ltt_traceable_app {
32 struct cds_list_head list;
33 pid_t pid;
34 uid_t uid; /* User ID that owns the apps */
35};
36
37struct ltt_traceable_app *find_app_by_pid(pid_t pid);
38int register_traceable_app(pid_t pid, uid_t uid);
39void unregister_traceable_app(pid_t pid);
40void get_app_list_pids(pid_t *pids);
41unsigned int get_app_count(void);
42
43#endif /* _TRACEABLE_APP_H */
This page took 0.024828 seconds and 4 git commands to generate.