Fix benchmark scripts to wait PID
[lttng-tools.git] / benchmark / measures.h
CommitLineData
b25a8868
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
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 _MEASURES_H
20#define _MEASURES_H
21
22/* Session daemon main() time */
23cycles_t time_sessiond_boot_start;
24cycles_t time_sessiond_boot_end;
25
26/* Session daemon thread manage kconsumerd time */
27cycles_t time_sessiond_th_kcon_start;
28cycles_t time_sessiond_th_kcon_poll;
29
30/* Session daemon thread manage kernel time */
31cycles_t time_sessiond_th_kern_start;
32cycles_t time_sessiond_th_kern_poll;
33
34/* Session daemon thread manage apps time */
35cycles_t time_sessiond_th_apps_start;
36cycles_t time_sessiond_th_apps_poll;
37
62d53818
DG
38/* Session daemon thread registration apps time */
39cycles_t time_sessiond_th_reg_start;
40cycles_t time_sessiond_th_reg_poll;
41
b25a8868
DG
42/* Session daemon thread manage client time */
43cycles_t time_sessiond_th_cli_start;
44cycles_t time_sessiond_th_cli_poll;
45
3c6bae61
DG
46/* Create tracing session values */
47cycles_t time_create_session_start;
48cycles_t time_create_session_end;
49
50/* Destroy tracing session values */
51cycles_t time_destroy_session_start;
52cycles_t time_destroy_session_end;
53
62d53818
DG
54/*
55 * UST registration time
56 *
57 * Start time is taken *after* the poll() has detected activity on the apps
58 * socket and right *before* the accept(). There is a malloc() after that
59 * accept and then we recv() the request from the client. We need to measure
60 * the complete process.
61 */
62cycles_t time_ust_register_start;
63/*
64 * The stop time is measured right after the futex() wake up.
65 */
66cycles_t time_ust_register_stop;
67
68/*
69 * UST dispatch registration request time
70 *
71 * Start time taken *after* the dequeue which is a blocking call.
72 */
73cycles_t time_ust_dispatch_register_start;
74/*
75 * Stop time taken *before* the futex() wait so at this point, the registration
76 * was sent to the manage apps thread.
77 */
78cycles_t time_ust_dispatch_register_stop;
79
80/*
81 * UST managing registration time
82 *
83 * Start *before* the thread reads the pipe containing the registration data.
84 */
85cycles_t time_ust_manage_register_start;
86/*
87 * Stop time taken *after* the register command is sent to the application.
88 */
89cycles_t time_ust_manage_register_stop;
90
91/*
92 * UST notification time (using the shm/futex scheme). Those times were break
93 * down in seperate time for each big action step.
94 *
95 * Start time taken *before* we create/get the SHM mmap.
96 */
97cycles_t time_ust_notify_apps_start;
98/*
99 * Stop time taken after waiting all processes (futex_wait_update()).
100 */
101cycles_t time_ust_notify_apps_stop;
102/* mmap() call */
103cycles_t time_ust_notify_mmap_start;
104cycles_t time_ust_notify_mmap_stop;
105/* Permissions time (chmod/chown) */
106cycles_t time_ust_notify_perms_start;
107cycles_t time_ust_notify_perms_stop;
108/* Fork process */
109cycles_t time_ust_notify_fork_start;
110cycles_t time_ust_notify_fork_stop;
111/* shm_open call */
112cycles_t time_ust_notify_shm_start;
113cycles_t time_ust_notify_shm_stop;
114
b25a8868 115#endif /* _MEASURES_H */
This page took 0.045106 seconds and 4 git commands to generate.