diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-09-13 18:54:32 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-09-13 18:54:32 +0200 |
commit | 915b375388231ed97cad2929ab948756bfc77c42 (patch) | |
tree | 9396ec2815d3e0fda9d593130533b2b739e6483c /src/core/dbus-manager.c | |
parent | e50d5048652a3f481ab730e17c90e874d967aa90 (diff) |
manager: extend performance measurement interface to include firmware/loader times
This only adds the fields to the D-Bus interfaces but doesn't fill them
in with anything useful yet. Gummiboot exposes the necessary bits of
information to use however and as soon as I get my fingers on a proper
UEFI laptop I'll hook up the remaining bits.
Since we want to stabilize the D-Bus interface soon and include it in
the stability promise we should get the last fixes in, hence this change
now.
Diffstat (limited to 'src/core/dbus-manager.c')
-rw-r--r-- | src/core/dbus-manager.c | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/src/core/dbus-manager.c b/src/core/dbus-manager.c index c341d36a6b..557b3e4763 100644 --- a/src/core/dbus-manager.c +++ b/src/core/dbus-manager.c @@ -214,6 +214,8 @@ " <arg name=\"result\" type=\"s\"/>\n" \ " </signal>" \ " <signal name=\"StartupFinished\">\n" \ + " <arg name=\"firmware\" type=\"t\"/>\n" \ + " <arg name=\"loader\" type=\"t\"/>\n" \ " <arg name=\"kernel\" type=\"t\"/>\n" \ " <arg name=\"initrd\" type=\"t\"/>\n" \ " <arg name=\"userspace\" type=\"t\"/>\n" \ @@ -226,10 +228,16 @@ " <property name=\"Distribution\" type=\"s\" access=\"read\"/>\n" \ " <property name=\"Features\" type=\"s\" access=\"read\"/>\n" \ " <property name=\"Tainted\" type=\"s\" access=\"read\"/>\n" \ + " <property name=\"FirmwareTimestamp\" type=\"t\" access=\"read\"/>\n" \ + " <property name=\"FirmwareTimestampMonotonic\" type=\"t\" access=\"read\"/>\n" \ + " <property name=\"LoaderTimestamp\" type=\"t\" access=\"read\"/>\n" \ + " <property name=\"LoaderTimestampMonotonic\" type=\"t\" access=\"read\"/>\n" \ + " <property name=\"KernelTimestamp\" type=\"t\" access=\"read\"/>\n" \ + " <property name=\"KernelTimestampMonotonic\" type=\"t\" access=\"read\"/>\n" \ " <property name=\"InitRDTimestamp\" type=\"t\" access=\"read\"/>\n" \ " <property name=\"InitRDTimestampMonotonic\" type=\"t\" access=\"read\"/>\n" \ - " <property name=\"StartupTimestamp\" type=\"t\" access=\"read\"/>\n" \ - " <property name=\"StartupTimestampMonotonic\" type=\"t\" access=\"read\"/>\n" \ + " <property name=\"UserspaceTimestamp\" type=\"t\" access=\"read\"/>\n" \ + " <property name=\"UserspaceTimestampMonotonic\" type=\"t\" access=\"read\"/>\n" \ " <property name=\"FinishTimestamp\" type=\"t\" access=\"read\"/>\n" \ " <property name=\"FinishTimestampMonotonic\" type=\"t\" access=\"read\"/>\n" \ " <property name=\"LogLevel\" type=\"s\" access=\"readwrite\"/>\n" \ @@ -520,10 +528,16 @@ static const BusProperty bus_systemd_properties[] = { static const BusProperty bus_manager_properties[] = { { "Tainted", bus_manager_append_tainted, "s", 0 }, + { "FirmwareTimestamp", bus_property_append_uint64, "t", offsetof(Manager, firmware_timestamp.realtime) }, + { "FirmwareTimestampMonotonic", bus_property_append_uint64,"t", offsetof(Manager, firmware_timestamp.monotonic)}, + { "LoaderTimestamp", bus_property_append_uint64, "t", offsetof(Manager, loader_timestamp.realtime) }, + { "LoaderTimestampMonotonic", bus_property_append_uint64, "t", offsetof(Manager, loader_timestamp.monotonic) }, + { "KernelTimestamp", bus_property_append_uint64, "t", offsetof(Manager, kernel_timestamp.realtime) }, + { "KernelTimestampMonotonic", bus_property_append_uint64, "t", offsetof(Manager, kernel_timestamp.monotonic) }, { "InitRDTimestamp", bus_property_append_uint64, "t", offsetof(Manager, initrd_timestamp.realtime) }, { "InitRDTimestampMonotonic", bus_property_append_uint64, "t", offsetof(Manager, initrd_timestamp.monotonic) }, - { "StartupTimestamp", bus_property_append_uint64, "t", offsetof(Manager, startup_timestamp.realtime) }, - { "StartupTimestampMonotonic", bus_property_append_uint64, "t", offsetof(Manager, startup_timestamp.monotonic) }, + { "UserspaceTimestamp", bus_property_append_uint64, "t", offsetof(Manager, userspace_timestamp.realtime)}, + { "UserspaceTimestampMonotonic", bus_property_append_uint64,"t",offsetof(Manager, userspace_timestamp.monotonic)}, { "FinishTimestamp", bus_property_append_uint64, "t", offsetof(Manager, finish_timestamp.realtime) }, { "FinishTimestampMonotonic", bus_property_append_uint64, "t", offsetof(Manager, finish_timestamp.monotonic) }, { "LogLevel", bus_manager_append_log_level, "s", 0, false, bus_manager_set_log_level }, |