Skip to content
  1. Oct 26, 2022
  2. Oct 18, 2022
    • Claire Weinan's avatar
      Populate timestamps with microsecond precision · c0ab9d43
      Claire Weinan authored
      
      
      xyz.openbmc_project.Time.EpochTime is defined as time elapsed since the
      epoch in microseconds.
      
      xyz.openbmc_project.Common.Progress.StartTime and
      xyz.openbmc_project.Common.Progress.CompletedTime are similarly
      defined as microseconds.
      
      Change timestamps that are currently captured in seconds to
      microseconds.
      
      Tested:
      
      Check xyz.openbmc_project.Time.EpochTime,
      xyz.openbmc_project.Common.Progress.StartTime, and
      xyz.openbmc_project.Common.Progress.CompletedTime timestamps of dump
      entries.
      
      Example:
      busctl introspect xyz.openbmc_project.Dump.Manager /xyz/openbmc_project/dump/bmc/entry/1
      
      Signed-off-by: default avatarClaire Weinan <cweinan@google.com>
      Change-Id: I6ea220af07f06ad79de0b62b24ce6cd5ba5fd33d
      c0ab9d43
  3. Oct 13, 2022
  4. Oct 12, 2022
  5. Sep 12, 2022
    • Matt Spinler's avatar
      dreport: Add phosphor-fan-monitor data to dump · 2d38ad5a
      Matt Spinler authored
      
      
      Send the USR1 signal to phosphor-fan-monitor to collect its dump data as
      part of a BMC dump.
      
      Tested:
      
      ~/BMCDUMP.139F210.00000041.20220908143628_out/archive$ cat fan_monitor_dump.json
      {
          "logs": [],
          "sensors": {
              "sensors": {
                  "/xyz/openbmc_project/sensors/fan_tach/fan0_0": {
                      "functional": true,
                      "in_range": true,
                      "present": true,
                      "prev_tachs": "[11904,11867,11904,11904,11867,11904,11867,11904]",
                      "prev_targets": "[18000,0,0,0,0,0,0,0]",
                      "tach": 11904.0,
                      "target": 18000,
                      "ticks": 0
                  },
           ...
      }
      
      Signed-off-by: default avatarMatt Spinler <spinler@us.ibm.com>
      Change-Id: I1173a38a755edff14ee0d418ec29ac0c583a790f
      2d38ad5a
  6. Aug 10, 2022
  7. Aug 09, 2022
    • Xie Ning's avatar
      Add rotate support if the space is full · fc69f35c
      Xie Ning authored
      
      
      delete the first existing file if the space is not enough
      
      Tested:
      1. create dump and make the space is not enough
      busctl call xyz.openbmc_project.Dump.Manager /xyz/openbmc_project/dump/bmc xyz.openbmc_project.Dump.Create CreateDump a{sv} 0
      busctl tree xyz.openbmc_project.Dump.Manager                                                                        `-/xyz
        `-/xyz/openbmc_project
          `-/xyz/openbmc_project/dump
            |-/xyz/openbmc_project/dump/bmc
            | `-/xyz/openbmc_project/dump/bmc/entry
            |   |-/xyz/openbmc_project/dump/bmc/entry/10
            |   |-/xyz/openbmc_project/dump/bmc/entry/6
            |   |-/xyz/openbmc_project/dump/bmc/entry/7
            |   |-/xyz/openbmc_project/dump/bmc/entry/8
            |   `-/xyz/openbmc_project/dump/bmc/entry/9
            `-/xyz/openbmc_project/dump/internal
              `-/xyz/openbmc_project/dump/internal/manager
      
      2. create dump again and the the first existing file will be deleted
      
      Signed-off-by: default avatarXie Ning <xiening.xll@bytedance.com>
      Change-Id: Ic3b376d7e6512a264f849de760363f4e167421c7
      fc69f35c
  8. Aug 03, 2022
    • Matt Spinler's avatar
      Test: dreport: Add entity-manager's system.json to dump · b7e6e2e4
      Matt Spinler authored
      
      
      Add /var/configuration/system.json to BMC dumps as em-system.json.  This
      file contains a JSON representation of the objects that entity-manager
      puts on D-Bus and can be used to debug problems when entity-manager
      crashes.
      
      Tested:
      
      ~/dumps/BMCDUMP.13BE960.00000000.20220802172737_out/archive$ ls -l em-system.json
      -rw-r--r--. 1 spinler spinler 10688 Aug  2 12:27 em-system.json
      
      Signed-off-by: default avatarMatt Spinler <spinler@us.ibm.com>
      Change-Id: Icc4e38e9594b578b83b65a23af8da67e514572c2
      b7e6e2e4
  9. Jul 26, 2022
    • Patrick Williams's avatar
      sdbusplus: use shorter type aliases · 9b18bf2d
      Patrick Williams authored
      
      
      The sdbusplus headers provide shortened aliases for many types.
      Switch to using them to provide better code clarity and shorter
      lines.  Possible replacements are for:
        * bus_t
        * exception_t
        * manager_t
        * match_t
        * message_t
        * object_t
        * slot_t
      
      Signed-off-by: default avatarPatrick Williams <patrick@stwcx.xyz>
      Change-Id: I7ae6214461bdf45c1a21fb702cc8bf5578d827c6
      9b18bf2d
  10. Jul 22, 2022
  11. May 25, 2022
    • Claire Weinan's avatar
      faultlog: Initial framework for Fault Log · 919f71c6
      Claire Weinan authored
      Fault Log is a new type of dump. For details please see
      https://github.com/openbmc/docs/blob/master/designs/hw-fault-monitor.md
      
      
      
      This commit enables creation and deletion of fault log entries.
      
      Tested: Created and deleted fault log entries by calling the
      corresponding D-Bus methods via bmcweb (added extra code in bmcweb for
      testing this). Also forced a fault log directory creation error by
      changing the code to specify a nonexistent directory path "/abc/def/"
      instead of FAULTLOG_DUMP_PATH, and forced a fault log file open error
      by creating a directory (manually using mkdir) with the same name as
      the file that the fault log manager tried to open.
      
      Signed-off-by: default avatarClaire Weinan <cweinan@google.com>
      Change-Id: I03d4c19a4c131f7224ac895e404c46b1f566617b
      919f71c6
  12. Apr 13, 2022
    • Marri Devender Rao's avatar
      dreport: Fix network and timedate plugin failures during BMC dump generation · 124d31f0
      Marri Devender Rao authored
      
      
      1) Due to some script errors network and timedate plugins
      are failing during BMC dump generation fixed the same.
      
      Failures:
      /usr/share/dreport.d/pl_user.d/E30network: line 12: add_cmd_output: command not
      found
      /usr/share/dreport.d/pl_user.d/E30timedate: line 12: [: missing `]'
      
      Tested:
      timedate.log
      timedatectl]
                     Local time: Mon 2022-04-11 12:41:19 UTC
                 Universal time: Mon 2022-04-11 12:41:19 UTC
                       RTC time: Mon 2022-04-11 12:41:19
                      Time zone: UTC (UTC, +0000)
      System clock synchronized: no
                    NTP service: active
                RTC in local TZ: no
      
      network.log
      [netstat]
      Kernel IP routing table
      Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
      0.0.0.0         9.3.23.1        0.0.0.0         UG        0 0          0 eth1
      0.0.0.0         9.3.23.1        0.0.0.0         UG        0 0          0 eth0
      9.3.23.0        0.0.0.0         255.255.255.0   U         0 0          0 eth0
      
      Signed-off-by: default avatarMarri Devender Rao <devenrao@in.ibm.com>
      Change-Id: Id60b3238657af7edb3100319bfa57ab6503bad13
      124d31f0
    • Marri Devender Rao's avatar
      ibm:dreport add vpd persistent data to BMC dump · 33700c7c
      Marri Devender Rao authored
      
      
      1) Added vpd persistent data to BMC dump
      2) Included existing badbpd plugin contents here
      
      Tested:
      Apr 12 07:56:59 UTC 2022 INFO: Copied vpd data /var/lib/vpd
      root@rain104bmc:/tmp/test/obmcdump_00000000_1649750320# du -sh vpd/
      140.0K  vpd/
      
      Signed-off-by: default avatarMarri Devender Rao <devenrao@in.ibm.com>
      Change-Id: Ibc090ea6ab5a4ee9dd4f2ea627748d582c54bdf0
      33700c7c
    • Marri Devender Rao's avatar
      openpower:dreport: add guarded resolved and ephemeral records to BMC dump · d78c4ef4
      Marri Devender Rao authored
      
      
      1) Append GUARD blob to the dump
      2) List guard records, resolved records and ephemeral records
      and write to guard.log file
      3) Append guard.log file to the dump
      
      Tested:
      root@ever8bmc:/tmp/test/obmcdump_00000000_1648632722# ls -lah GUARD
      -r--r-----    1 root     root       20.0K Mar 30 09:32 GUARD
      root@ever8bmc:/tmp/test/obmcdump_00000000_1648632722#
      
      root@ever8bmc:/tmp/test/obmcdump_00000000_1648632722# cat guard.log
      [Guard List]
      ID       | ERROR    |  Type  | Path
      00000001 | 00000000 | manual | physical:sys-0/node-0/proc-1/eq-0/fc-0/core-0
      
      [Guard resolved records]
      ID       | ERROR    |  Type  | Path
      ffffffff | 90001220 | unrecoverable |
      physical:sys-0/node-0/proc-3/pauc-3/iohs-0/smpgroup-1
      ffffffff | 90001220 | unrecoverable |
      physical:sys-0/node-0/proc-0/pauc-3/iohs-1/smpgroup-0
      ffffffff | 90001223 | unrecoverable |
      physical:sys-0/node-0/proc-3/pauc-2/iohs-1/smpgroup-1
      ffffffff | 90001223 | unrecoverable |
      physical:sys-0/node-0/proc-6/pauc-3/iohs-1/smpgroup-0
      ffffffff | 90001224 | unrecoverable |
      physical:sys-0/node-0/proc-3/pauc-2/iohs-1/smpgroup-0
      ffffffff | 90001224 | unrecoverable |
      physical:sys-0/node-0/proc-7/pauc-3/iohs-1/smpgroup-0
      ffffffff | 900007c3 | unrecoverable |
      physical:sys-0/node-0/proc-7/pauc-3/iohs-1/smpgroup-0
      ffffffff | 50000527 | predictive | physical:sys-0/node-0/proc-6
      ffffffff | 50000528 | predictive | physical:sys-0/node-0/proc-7
      ffffffff | 50000712 | predictive |
      physical:sys-0/node-0/proc-2/pauc-3/iohs-1/smpgroup-1
      ffffffff | 50000712 | predictive |
      physical:sys-0/node-0/proc-0/pauc-3/iohs-1/smpgroup-1
      
      [Guard ephemeral records]
      
      Signed-off-by: default avatarMarri Devender Rao <devenrao@in.ibm.com>
      Change-Id: Ibd3e21a69cd98c3d1b5bee9fa8251566f04e741b
      d78c4ef4
  13. Apr 08, 2022
    • Patrick Williams's avatar
      meson: simplify dependencies · 02634e55
      Patrick Williams authored
      
      
      Leverage wrapfile `[provide]` directives to simplify the dependency
      searching in the meson.build.
      
      Signed-off-by: default avatarPatrick Williams <patrick@stwcx.xyz>
      Change-Id: Iba53eac924b7622f8c819c70c64279a2df0d28c4
      02634e55
    • Patrick Williams's avatar
      sdbusplus: object: don't use 'bool' argument constructor · 73f64076
      Patrick Williams authored
      
      
      `sdbusplus::server::object_t` has long had an enum-based parameter for
      signal action, but maintained a backwards compatible boolean mapping.
      It is time to remove this boolean to make it more observable which
      actions are being used in applications.  Map all `true` occurrences to
      `action::defer_emit` or `action::emit_no_signals` as appropriate.
      
      - DumpEntry: emit_no_signals (secondary object)
      - {bmc,resource,system}::DumpEntry: defer_emit (primary object)
      - Manager: defer_emit (primary object)
      
      Signed-off-by: default avatarPatrick Williams <patrick@stwcx.xyz>
      Change-Id: I91990031384230550903a46332adc04d691a3cb9
      73f64076
    • Patrick Williams's avatar
      main: move busname claiming later · 9e682c51
      Patrick Williams authored
      
      
      We should not claim the bus name until the daemon is fully initialized,
      especially because we create objects on the dbus that we don't send a
      signal for (the manager itself).
      
      Signed-off-by: default avatarPatrick Williams <patrick@stwcx.xyz>
      Change-Id: I303fa9a4ab40c93996f9ad64afdc85147c034c86
      9e682c51
  14. Apr 07, 2022
    • Marri Devender Rao's avatar
      openpower:dreport: add core and BMC generated dump file list to the BMC dump · ad298b6e
      Marri Devender Rao authored
      
      
      List all the dump file names with path and append the output file to
      BMC dump.
      
      Tested
      [core files]
      
      [BMC dumps]
      /var/lib/phosphor-debug-collector/dumps/23/BMCDUMP.13E8CEX.00000023.20220328231804
      /var/lib/phosphor-debug-collector/dumps/24/BMCDUMP.13E8CEX.00000024.20220329045155
      
      [Hardware dumps]
      
      [Hostboot dumps]
      
      [SBE dumps]
      
      Signed-off-by: default avatarMarri Devender Rao <devenrao@in.ibm.com>
      Change-Id: Iac5f0e6d542ba1fa5b18b5c9399ee7537e05e274
      ad298b6e
    • Marri Devender Rao's avatar
      dreport: add active services (systemd) status to the BMC dump · 081ff834
      Marri Devender Rao authored
      
      
      Generate the status of the active services "systemctl status --all"
      and add it to the dump.
      
      Tested:
          State: degraded
           Jobs: 0 queued
         Failed: 3 units
          Since: Wed 2022-03-30 03:17:48 UTC; 7min ago
         CGroup: /
                 ├─sys-kernel-debug.mount
                 ├─sys-kernel-config.mount
      
      Signed-off-by: default avatarMarri Devender Rao <devenrao@in.ibm.com>
      Change-Id: I45cef0ccfd4c86711a64bf5dcacb04f89bc5b50d
      081ff834
    • Marri Devender Rao's avatar
      openpower:dreport: add PHAL device tree debug data to BMC dump · 9bd89b69
      Marri Devender Rao authored
      
      
      1. Generate attribute list to a file and append the file to
      the dump.
      
      2. Append the device tree blob file to the dump
      
      3. Append export device tree file to the dump
      
      4. Append attributes_info.db file to the dump
      
      Tested
      root@ever8bmc:/tmp/test/obmcdump_00000000_1648657576# ls -lah DEVTREE
      -r--r-----    1 root     root      840.0K Mar 30 16:26 DEVTREE
      root@ever8bmc:/tmp/test/obmcdump_00000000_1648657576# ls -lah attributes_info.db
      -rw-r--r--    1 root     root       10.4K Mar 30 16:26 attributes_info.db
      root@ever8bmc:/tmp/test/obmcdump_00000000_1648657576# ls -lah PHAL_devtree.txt
      -rw-r--r--    1 root     root        2.2M Mar 30 16:26 PHAL_devtree.txt
      
      Signed-off-by: default avatarMarri Devender Rao <devenrao@in.ibm.com>
      Change-Id: I3b60f136e04be2ed44349c9c91fe3858dd78a91a
      9bd89b69
    • Marri Devender Rao's avatar
      dreport: add hwmon details to the BMC dump · 30ff78ba
      Marri Devender Rao authored
      
      
      Copy the hwmon details from /sys/class/hwmon/* to hwmon.log
      and append the file to the BMC dump
      
      Tested:
      /sys/class/hwmon/hwmon0/in1_max_alarm: 0
      /sys/class/hwmon/hwmon0/curr2_crit_alarm: 0
      /sys/class/hwmon/hwmon0/temp5_crit: -500
      
      Signed-off-by: default avatarMarri Devender Rao <devenrao@in.ibm.com>
      Change-Id: I20a2f20323a9d5095eac0cede46595a2e011ba9f
      30ff78ba
  15. Apr 05, 2022
  16. Apr 04, 2022
    • Marri Devender Rao's avatar
      openpower:dreport: add obmconsole1 log file to the BMC dump · 6f4870aa
      Marri Devender Rao authored
      
      
      Add the host console log to the BMC dump.
      
      Tested:
      root@xxxxbmc:/tmp/test/obmcdump_00000000_1648205747# cat obmc-console1.log
      0B6EB088 "FC" 000000000053000B
      1599.92700|1329 SBEIO|trace_lite 15FEB01A 0000000000000001 0000000000000004 0
      
      Signed-off-by: default avatarMarri Devender Rao <devenrao@in.ibm.com>
      Change-Id: Ia2f0bb8a89d4e2a9d7249fd6e8d7efa6194f1542
      6f4870aa
    • Marri Devender Rao's avatar
      dreport: add fanctl dump output to BMC dump · 55e92765
      Marri Devender Rao authored
      
      
      Execute "fanctl dump" command and append the output json
      file to the BMC dump.
      
      Tested:
      Fan control dump written to: /tmp/fan_control_dump.json
      {
          "flight_recorder": [
              "Mar 24 14:12:55.323331:        main: Startup",
      .
      .
      .
      
      }
      
      Signed-off-by: default avatarMarri Devender Rao <devenrao@in.ibm.com>
      Change-Id: I52e972382f9e9c2aabab8c9034fd4da7775203e5
      55e92765
    • Marri Devender Rao's avatar
      dreport: Add time and date to the BMC dump · 8762fe1c
      Marri Devender Rao authored
      
      
      Execute the script and append the output log file to BMC dump.
      
      [timedatectl]
                     Local time: Thu 2022-03-24 10:28:17 UTC
                 Universal time: Thu 2022-03-24 10:28:17 UTC
                       RTC time: Thu 2022-03-24 10:28:17
                      Time zone: UTC (UTC, +0000)
      System clock synchronized: no
                    NTP service: active
                RTC in local TZ: no
      
      Signed-off-by: default avatarMarri Devender Rao <devenrao@in.ibm.com>
      Change-Id: Ie1ac4e730d93d1959b2543de00b98c7513552560
      8762fe1c
    • Marri Devender Rao's avatar
      dreport: add network details to the BMC dump · 1640a3d1
      Marri Devender Rao authored
      
      
      Captured below information and add it to the BMC dump
      
      1) Adding route info the network.log file
      2) Adding contents of eth0 and eth1 to the network.log file
      3) Add network interface statistics to the network.log file
      4) Add active TCP connection details to the network.log file
      
      Append network.log to the BMC dump
      
      Tested:
      [route]
      Kernel IP routing table
      Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
      default         x.x.xx.x        0.0.0.0         UG    0      0        0 eth1
      default         x.x.xx.x        0.0.0.0         UG    0      0        0 eth0
      x.x.xx.0        *               255.255.255.0   U     0      0        0 eth0
      
      [eth0]
      [Match]
      Name=eth0
      [Link]
      MACAddress=xx:xx:xx:xx:xx:xx
      [Network]
      LinkLocalAddressing=no
      IPv6AcceptRA=false
      DHCP=ipv6
      [Address]
      Address=x.x.xx.xxx/xx
      [Route]
      Gateway=x.x.xx.x
      [DHCP]
      ClientIdentifier=mac
      UseDNS=true
      UseNTP=true
      UseHostname=true
      SendHostname=true
      
      [eth1]
      [Match]
      Name=eth1
      [Link]
      MACAddress=xx:xx:xx:xx:xx:xx
      [Network]
      LinkLocalAddressing=no
      IPv6AcceptRA=false
      DHCP=true
      [Route]
      Gateway=x.x.xx.x
      [DHCP]
      ClientIdentifier=mac
      UseDNS=true
      UseNTP=true
      UseHostname=true
      SendHostname=true
      
      Signed-off-by: default avatarMarri Devender Rao <devenrao@in.ibm.com>
      Change-Id: I8325b18400140f8f6e1463a5abbc1b9c526fad99
      1640a3d1
  17. Mar 17, 2022
    • Xie Ning's avatar
      Fix the invalid value of Elapsed property · 56bd797e
      Xie Ning authored
      
      
      The Elapsed property is described in microseconds in the interface but the result value is in seconds before
      
      Tested:
      1. get the property by this: busctl introspect xyz.openbmc_project.Dump.Manager /xyz/openbmc_project/dump/bm:c/entry/20 xyz.openbmc_project.Time.EpochTime
      2. check the value
      NAME                               TYPE      SIGNATURE RESULT/VALUE     FLAGS
      .Elapsed                           property  t         1645758497000000 emits-change writable
      
      Change-Id: Ib6cd5261c4cd6ac7de239f291a9f5fb556b29e89
      Signed-off-by: default avatarXie Ning <xiening.xll@bytedance.com>
      56bd797e
  18. Mar 07, 2022
  19. Feb 23, 2022
Loading