Systemd/man
Karel Zak c358d728e7 bootchart: don't parse /proc/uptime, use CLOCK_BOOTTIME
* systemd-bootchart always parses /proc/uptime, although the
  information is unnecessary when --rel specified

* use /proc/uptime is overkill, since Linux 2.6.39 we have
  clock_gettime(CLOCK_BOOTTIME, ...). The backend on kernel side is
  get_monotonic_boottime() in both cases.

* main() uses "if (graph_start <= 0.0)" to detect that /proc is
  available.

  This is fragile solution as graph_start is always smaller than zero
  on all systems after suspend/resume (e.g. laptops), because in this
  case the system uptime includes suspend time and uptime is always
  greater number than monotonic time. For example right now difference
  between uptime and monotonic time is 37 hours on my laptop.

  Note that main() calls log_uptime() (to parse /proc/uptime) for each
  sample when it believes that /proc is not available. So on my laptop
  systemd-boochars spends all live with /proc/uptime parsing +
  nanosleep(), try

    strace  /usr/lib/systemd/systemd-bootchart

  to see the never ending loop.

  This patch uses access("/proc/vmstat", F_OK) to detect procfs.
2014-08-03 01:12:53 -04:00
..
.gitignore build-sys,man: use XML entities to substite strings 2013-03-29 20:30:21 -04:00
Makefile build-sys: add small redirecting Makefiles to simplify compilation from within emacs 2010-05-17 01:44:03 +02:00
binfmt.d.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
bootchart.conf.xml bootchart: add control group option 2014-04-24 19:21:51 -04:00
bootctl.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
bootup.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
busctl.xml man: xinclude --host/--machine 2014-02-20 22:43:27 -05:00
coredump.conf.xml docs: remove repeating words from man/*xml 2014-07-23 08:47:19 -04:00
coredumpctl.xml man: add systemd-coredump(8) and a bunch of links 2014-07-13 21:11:07 -04:00
crypttab.xml man: document x-systemd.device-timeout for crypttab 2014-07-10 22:52:23 -04:00
custom-html.xsl man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
custom-man.xsl man: always supply quotes around literals 2013-06-26 08:05:14 -04:00
daemon.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
file-hierarchy.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
halt.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
hostname.xml man: document systemd-firstboot(1) 2014-07-07 18:49:17 +02:00
hostnamectl.xml hostnamed: introduce new location machin-info field, too 2014-07-11 15:50:32 +02:00
journalctl.xml journalctl,man: allow + only between terms 2014-07-19 21:13:08 -04:00
journald.conf.xml journald: turn ForwardToSyslog= off by default 2014-07-11 15:34:40 +02:00
kernel-command-line.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
kernel-install.xml os-release: define /usr/lib/os-release as fallback for /etc/os-release 2014-06-13 20:11:59 +02:00
less-variables.xml man: use xinclude to de-deduplicate common text 2014-02-12 01:10:31 -05:00
libsystemd-pkgconfig.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
locale.conf.xml man: document systemd-firstboot(1) 2014-07-07 18:49:17 +02:00
localectl.xml man: document systemd-firstboot(1) 2014-07-07 18:49:17 +02:00
localtime.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
loginctl.xml man: xinclude --host/--machine 2014-02-20 22:43:27 -05:00
logind.conf.xml man: logind.conf: fix grammar issues, unclear wording, and unclear default values 2014-05-16 23:10:11 -04:00
machine-id.xml man: document systemd-firstboot(1) 2014-07-07 18:49:17 +02:00
machine-info.xml hostnamed: introduce new location machin-info field, too 2014-07-11 15:50:32 +02:00
machinectl.xml machinectl: reimplement machinectl's "reboot" verb on top of "kill", and add new verb "poweroff" 2014-03-18 04:48:26 +01:00
modules-load.d.xml man: wording and grammar updates 2013-09-12 22:09:57 +02:00
nss-myhostname.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
os-release.xml doc: grammatical corrections 2014-06-28 00:06:30 -04:00
pam_systemd.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
resolved.conf.xml resolved: add daemon to manage resolv.conf 2014-05-19 18:14:56 +02:00
runlevel.xml Revert back to /var/run at a couple of problems 2014-02-26 02:47:43 +01:00
sd-daemon.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
sd-id128.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
sd-journal.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
sd-login.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
sd-readahead.xml man: improvements to comma placement 2013-12-25 22:53:46 -05:00
sd_booted.xml man: xinclude pkg-config note 2014-02-20 22:43:27 -05:00
sd_bus_creds_get_pid.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
sd_bus_creds_new_from_pid.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
sd_bus_error.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
sd_bus_message_append.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
sd_bus_message_append_array.xml docs: remove repeating words from man/*xml 2014-07-23 08:47:19 -04:00
sd_bus_message_append_basic.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
sd_bus_message_append_string_memfd.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
sd_bus_message_append_strv.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
sd_bus_message_get_cookie.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
sd_bus_message_get_monotonic_usec.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
sd_bus_negotiate_fds.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
sd_bus_new.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
sd_bus_open_user.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
sd_bus_path_encode.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
sd_bus_request_name.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
sd_event_add_time.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
sd_event_new.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
sd_get_seats.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
sd_id128_get_machine.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
sd_id128_randomize.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
sd_id128_to_string.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
sd_is_fifo.xml doc: balance C indirections in function prototypes 2014-05-07 20:13:27 -04:00
sd_journal_add_match.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
sd_journal_get_catalog.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
sd_journal_get_cursor.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
sd_journal_get_cutoff_realtime_usec.xml man,journal: add note about sd_journal_get_cutoff_monotonic_usec return value 2014-07-18 21:44:36 -04:00
sd_journal_get_data.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
sd_journal_get_fd.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
sd_journal_get_realtime_usec.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
sd_journal_get_usage.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
sd_journal_next.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
sd_journal_open.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
sd_journal_print.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
sd_journal_query_unique.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
sd_journal_seek_head.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
sd_journal_stream_fd.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
sd_listen_fds.xml man: xinclude pkg-config note 2014-02-20 22:43:27 -05:00
sd_login_monitor_new.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
sd_notify.xml man: xinclude pkg-config note 2014-02-20 22:43:27 -05:00
sd_pid_get_session.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
sd_readahead.xml man: improvements to comma placement 2013-12-25 22:53:46 -05:00
sd_seat_get_active.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
sd_session_is_active.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
sd_uid_get_state.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
sd_watchdog_enabled.xml man: fix sd_watchdog_enabled() prototype in man page 2014-06-27 19:51:14 +02:00
shutdown.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
standard-options.xml man: xinclude --help/--version/--no-pager 2014-02-20 22:43:27 -05:00
sysctl.d.xml doc: typographical improvements and choice of words 2014-06-28 00:06:31 -04:00
systemctl.xml docs: remove repeating words from man/*xml 2014-07-23 08:47:19 -04:00
systemd-activate.xml man: xinclude --help/--version/--no-pager 2014-02-20 22:43:27 -05:00
systemd-analyze.xml man: merge systemd-verify with systemd-analyze 2014-07-21 22:33:51 -04:00
systemd-ask-password-console.service.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
systemd-ask-password.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
systemd-backlight@.service.xml man: fix typos in backlight/rfkill page 2013-10-19 12:33:47 +02:00
systemd-binfmt.service.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
systemd-bootchart.xml bootchart: don't parse /proc/uptime, use CLOCK_BOOTTIME 2014-08-03 01:12:53 -04:00
systemd-bus-proxyd.xml man: xinclude --help/--version/--no-pager 2014-02-20 22:43:27 -05:00
systemd-bus-proxyd@.service.xml Use /var/run/dbus/system_bus_socket for the D-Bus socket 2014-02-25 21:26:42 -05:00
systemd-cat.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
systemd-cgls.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
systemd-cgtop.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
systemd-coredump.xml man: add systemd-coredump(8) and a bunch of links 2014-07-13 21:11:07 -04:00
systemd-cryptsetup-generator.xml man: wording and grammar updates 2013-10-15 08:19:49 -04:00
systemd-cryptsetup@.service.xml build-sys: create Makefile-man.am automatically 2013-02-06 23:16:16 -05:00
systemd-debug-generator.xml doc: grammatical corrections 2014-06-28 00:06:30 -04:00
systemd-delta.xml man: xinclude --help/--version/--no-pager 2014-02-20 22:43:27 -05:00
systemd-detect-virt.xml man: xinclude --help/--version/--no-pager 2014-02-20 22:43:27 -05:00
systemd-efi-boot-generator.xml man: wording and grammar updates 2013-09-10 18:34:41 +02:00
systemd-escape.xml man: document systemd-escape(1) 2014-07-07 22:48:25 +02:00
systemd-firstboot.xml man: document systemd-firstboot(1) 2014-07-07 18:49:17 +02:00
systemd-fsck@.service.xml man: beef up systemd-fsck description 2014-06-30 18:41:17 -04:00
systemd-fstab-generator.xml man: document fail/nofail, auto/noauto 2013-12-25 23:22:05 -05:00
systemd-getty-generator.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
systemd-gpt-auto-generator.xml doc: comma placement corrections and word order 2014-05-07 20:13:27 -04:00
systemd-halt.service.xml man: document fail/nofail, auto/noauto 2013-12-25 23:22:05 -05:00
systemd-hostnamed.service.xml man: improve grammar and word formatting in numerous man pages 2013-07-02 23:06:22 -04:00
systemd-inhibit.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
systemd-initctl.service.xml man: reword man page titles 2012-07-16 18:08:25 +02:00
systemd-journal-gatewayd.service.xml man: xinclude --help/--version/--no-pager 2014-02-20 22:43:27 -05:00
systemd-journal-remote.xml docs: remove repeating words from man/*xml 2014-07-23 08:47:19 -04:00
systemd-journal-upload.xml man: document systemd-journal-upload 2014-07-15 22:34:41 -04:00
systemd-journald.service.xml man: add systemd-coredump(8) and a bunch of links 2014-07-13 21:11:07 -04:00
systemd-localed.service.xml build-sys: create Makefile-man.am automatically 2013-02-06 23:16:16 -05:00
systemd-logind.service.xml man: document machinectl and systemd-machined 2013-07-06 22:23:31 -04:00
systemd-machine-id-setup.xml man: document systemd-firstboot(1) 2014-07-07 18:49:17 +02:00
systemd-machined.service.xml man: fix typo in documentation of systemd-machined 2013-08-04 21:47:14 -04:00
systemd-modules-load.service.xml man: remove "wine" from unrelated man pages 2013-08-15 18:07:47 +02:00
systemd-networkd-wait-online.service.xml doc: comma placement corrections and word order 2014-05-07 20:13:27 -04:00
systemd-networkd.service.xml resolved: add daemon to manage resolv.conf 2014-05-19 18:14:56 +02:00
systemd-notify.xml man: xinclude --help/--version/--no-pager 2014-02-20 22:43:27 -05:00
systemd-nspawn.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
systemd-path.xml path: add new "systemd-path" utility for querying paths described in file-hierarchy(7) 2014-07-02 12:23:36 +02:00
systemd-quotacheck.service.xml build-sys: create Makefile-man.am automatically 2013-02-06 23:16:16 -05:00
systemd-random-seed.service.xml fix lingering references to /var/lib/{backlight,random-seed} 2013-10-02 07:51:06 -04:00
systemd-readahead-replay.service.xml man: readahead: fix cmdline switch inconsistency between readahead.c and docs 2014-05-16 17:13:03 +02:00
systemd-remount-fs.service.xml man: add various filenames to the index 2013-05-03 01:00:42 -04:00
systemd-resolved.service.xml man: untabify systemd-resolved.service.xml 2014-06-22 12:26:09 -04:00
systemd-rfkill@.service.xml man: fix typos in backlight/rfkill page 2013-10-19 12:33:47 +02:00
systemd-run.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
systemd-shutdownd.service.xml man: reword man page titles 2012-07-16 18:08:25 +02:00
systemd-sleep.conf.xml man: multiple sleep modes are to be separated by whitespace, not commas 2014-03-11 05:24:22 +01:00
systemd-socket-proxyd.xml man: xinclude --help/--version/--no-pager 2014-02-20 22:43:27 -05:00
systemd-suspend.service.xml man: fix path for system-sleep hook directory 2014-07-23 23:36:22 +02:00
systemd-sysctl.service.xml man: remove "wine" from unrelated man pages 2013-08-15 18:07:47 +02:00
systemd-system-update-generator.xml man: fix invalid links to generator wiki pages 2012-10-02 11:52:29 -04:00
systemd-system.conf.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
systemd-sysusers.xml man: document the sysusers tool 2014-06-29 22:27:07 +02:00
systemd-timedated.service.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
systemd-timesyncd.service.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
systemd-tmpfiles.xml tmpfiles: add --root option to operate on an alternate fs tree 2014-03-14 09:31:34 -04:00
systemd-tty-ask-password-agent.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
systemd-udevd.service.xml man: add udev.conf(5) 2014-07-31 08:56:03 -04:00
systemd-update-done.service.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
systemd-update-utmp.service.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
systemd-user-sessions.service.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
systemd-vconsole-setup.service.xml build-sys: create Makefile-man.am automatically 2013-02-06 23:16:16 -05:00
systemd.automount.xml man: wording and grammar updates 2013-09-12 22:09:57 +02:00
systemd.device.xml man: grammar and wording improvements 2013-12-25 22:53:46 -05:00
systemd.exec.xml man: proper link for dmesg 2014-07-10 22:52:23 -04:00
systemd.journal-fields.xml docs: remove repeating words from man/*xml 2014-07-23 08:47:19 -04:00
systemd.kill.xml doc: update punctuation 2014-02-17 19:03:07 -05:00
systemd.link.xml man: split systemd.network(5) and related into various sections for better readability 2014-06-27 20:50:08 +02:00
systemd.mount.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
systemd.netdev.xml networkd: add support for bond options 2014-07-21 20:35:21 +02:00
systemd.network.xml man: fix outdated example in systemd.network 2014-07-30 18:35:53 +02:00
systemd.path.xml man: wording and grammar updates 2013-09-12 22:09:57 +02:00
systemd.preset.xml man: resolve word omissions 2013-12-25 22:53:45 -05:00
systemd.resource-control.xml man: reword StartupCPUShares= description 2014-05-24 18:50:21 -04:00
systemd.scope.xml man: wording and grammar updates 2013-10-15 08:19:49 -04:00
systemd.service.xml man: reference RestartForceExitStatus= from the Restart= description 2014-07-03 15:37:46 +02:00
systemd.slice.xml man: Searching for an explanation of what a "slice unit" was, found this, felt compelled to send in fixes for the obvious typos 2014-06-10 18:05:58 +02:00
systemd.snapshot.xml man: update scope unit man page a bit 2013-07-19 19:04:17 +02:00
systemd.socket.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
systemd.special.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
systemd.swap.xml man: improvements to comma placement 2013-12-25 22:53:46 -05:00
systemd.target.xml man: use <literal> not <filename> for suffixes 2013-07-12 01:09:25 -04:00
systemd.time.xml man: document yearly and annually in systemd.time(7) 2014-07-16 22:18:16 -04:00
systemd.timer.xml doc: comma placement corrections and word order 2014-05-07 20:13:27 -04:00
systemd.unit.xml man: add systemd-verify(1) 2014-07-20 19:48:16 -04:00
systemd.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
sysusers.d.xml docs: remove repeating words from man/*xml 2014-07-23 08:47:19 -04:00
telinit.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
timedatectl.xml man: add a mapping for external manpages 2014-07-07 18:36:55 -04:00
tmpfiles.d.xml doc: typographical improvements and choice of words 2014-06-28 00:06:31 -04:00
udev.conf.xml man: add udev.conf(5) 2014-07-31 08:56:03 -04:00
udev.xml man: add missing comma 2014-07-31 08:56:03 -04:00
udevadm.xml man: add udev.conf(5) 2014-07-31 08:56:03 -04:00
user-system-options.xml man: document that systemctl's -H may now be used to connect directly to a container on a remote host 2014-07-03 20:37:10 +02:00
vconsole.conf.xml man: add various filenames to the index 2013-05-03 01:00:42 -04:00