bootchart.h revision 184d2ed770ccddbb9b6f6a452fdff42c16cb709f
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering This file is part of systemd.
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering Copyright (C) 2009-2013 Intel Coproration
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering Auke Kok <auke-jan.h.kok@intel.com>
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering systemd is free software; you can redistribute it and/or modify it
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering under the terms of the GNU Lesser General Public License as published by
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering the Free Software Foundation; either version 2.1 of the License, or
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering (at your option) any later version.
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering systemd is distributed in the hope that it will be useful, but
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering WITHOUT ANY WARRANTY; without even the implied warranty of
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering Lesser General Public License for more details.
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering You should have received a copy of the GNU Lesser General Public License
f2f1dbe50fea13abadc9c1e845a29031b90b40f3Lennart Poettering along with systemd; If not, see <http://www.gnu.org/licenses/>.
be808ea083fa07271116b4519c3c27fd20c5f077Tom Gundersen /* /proc/vmstat pgpgin & pgpgout */
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering /* /proc/schedstat fields 10 & 11 (after name) */
3c0cf502796be355431d4a64d738e75f543aa51dLennart Poettering/* per process, per sample data we will log */
eed857b71702f8551b46b66b31fa0d08583cf23cLennart Poettering /* /proc/<n>/schedstat fields 1 & 2 */
eed857b71702f8551b46b66b31fa0d08583cf23cLennart Poettering struct ps_sched_struct *cross; /* cross pointer */
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering LIST_FIELDS(struct list_sample_data, link); /* DLL */
91b14d6ff362b938a72db17b095ee9903d07381bTom Gundersen/* process info */
f4461e5641d53f27d6e76e0607bdaa9c0c58c1f6Lennart Poettering struct ps_struct *next_ps; /* SLL pointer */
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering /* must match - otherwise it's a new process with same PID */
0b58db658b5c3f586ac3a837427f1f7fec2abb2eLennart Poettering /* cache fd's */
0b58db658b5c3f586ac3a837427f1f7fec2abb2eLennart Poettering /* pointers to first/last seen timestamps */
eed857b71702f8551b46b66b31fa0d08583cf23cLennart Poettering /* records actual start time, may be way before bootchart runs */
0b58db658b5c3f586ac3a837427f1f7fec2abb2eLennart Poettering /* record human readable total cpu time */
0b58db658b5c3f586ac3a837427f1f7fec2abb2eLennart Poettering /* largest PSS size found */
4e945a6f7971fd7d1f6b2c62ee3afdaff3c95ce4Lennart Poettering /* for drawing connection lines later */
3e684349c2cead2e6fd2f816c34eb17daba23a49Lennart Poetteringextern double sampletime[];
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poetteringextern struct block_stat_struct blockstat[];
91b14d6ff362b938a72db17b095ee9903d07381bTom Gundersenextern double arg_hz;