Adding LTTng UST 2.0 ABI
[lttng-tools.git] / ltt-sessiond / traceable-app.h
... / ...
CommitLineData
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
6 * as published by the Free Software Foundation; only version 2
7 * of the License.
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#include <urcu/list.h>
23
24/* Traceable application list */
25struct ltt_traceable_app_list {
26 struct cds_list_head head;
27};
28
29/* Registered traceable applications. Libust registers to the session daemon
30 * and a linked list is kept of all running traceable app.
31 */
32struct ltt_traceable_app {
33 struct cds_list_head list;
34 pid_t pid;
35 uid_t uid; /* User ID that owns the apps */
36};
37
38struct ltt_traceable_app *find_app_by_pid(pid_t pid);
39int register_traceable_app(pid_t pid, uid_t uid);
40void unregister_traceable_app(pid_t pid);
41void get_app_list_pids(pid_t *pids);
42unsigned int get_app_count(void);
43
44#endif /* _TRACEABLE_APP_H */
This page took 0.022526 seconds and 4 git commands to generate.