Ghw Versions Save

Go HardWare discovery/inspection library

v0.12.0

10 months ago

v0.12.0

  • Refactors processor core retrieval

!! Breaking change !!

In the past we've left poorly-named fields (like Id instead of ID) in the structs in case people were using the old names and then removed them after a deprecation period. However, in this release, the old ProcessorCore.Index field really was confusing and wrong: it stated that it was the zero-based index of the core on the physical processor package, but that was incorrect. In actuality, ProcessorCore.Index was one of the zero-based indexes of a logical processor associated with the physical core

Because of this, we have removed the ProcessorCore.Index field entirely. If you were using the ProcessorCore.Index field in your code, you should change to use the (correct) ProcessorCore.ID field to refer to the processor core.

v0.11.0

11 months ago
  • add GPU driver info on Windows (#331 @hingino)
  • aarch64 and RISCV64 support (#333 @glimchb)
  • fix ARM topology memory info (#337 @jaypipes)
  • fix drive media type on Windows (#339 @williambrode)
  • add AutoNegotiation and PauseFrameUse as NICCapabilities (#338 @jak3kaj)
  • fix memory block physical bytes processing (#341 @jaypipes)
  • add Speed, Duplex, SupportedLinkModes, SupportedPorts to NIC struct (#342 @jak3kaj)

Thank you to all who contributed to this release of ghw!

v0.10.0

1 year ago
  • report loop devices (#310 @Itxaka)
  • correct Partition.Label (#316 @Itxaka)
  • docs for Partition label and Filesystem label (#318 @jaypipes)
  • use udev for partition UUID, removing blkid usage (#320 @Itxaka)
  • fix PCI class name lookups (#327 @eliaskoromilas)
  • bump Go version to 1.18+ (#329 @whereswaldon)
  • fix Windows drive comparisons (#330 @jaypipes)

v0.9.0

2 years ago
  • bring in github.com/jaypipes/[email protected] (#311, @jaypipes)
  • get partition types for unmounted partitions (#305, @Itxaka)
  • update core dependencies and fix run-from-snapshot (#309, @taigrr)
  • change from fs package to os package (#307, @taigrr)
  • get partition labels from udev (#304, @Itxaka)
  • util: add helper to avoid long format strings (#299, @fromanirh)
  • windows: use PhysicalAdapter to check if NIC is virtual (#292, @lukashartl)
  • update toolchain (#290, @fromanirh)
  • topology: memory: allow encode/decode cycle (#284, @fromanirh)
  • static check lanes (#288, @fromanirh)
  • pci: don't pass chroot to snapshot (#286, @fromanirh)
  • memory: expose per-NUMA-node memory (#268, @fromanirh)
  • allow passing in Context as Option (#280, @jaypipes)
  • fix: typo with Alerter (#279, @GreyXor)
  • pci: remove redundant multiple pciaddr parsing and modalias check (#265, @fromanirh)
  • move from Travis to GH Actions
  • block: read procfs, not /etc/mtab (#251, @fromanirh)
  • rename PCIAddress.Slot to PCIAddress.Device (#252, @jaypipes)

v0.8.0

3 years ago

Features

  • Add ghw.PCIAddress.String() helper (#223, thanks @fromanirh)
  • Report PCI backing device address (#221 thanks @fromanirh)
  • Include network information in ghw snapshots (#227 thanks @fromanirh)
  • Report NUMA node locality for PCI devices (#225 thanks @fromanirh)
  • Gather full PCI tree including bridge devices in ghw snapshots (#224 thanks @fromanirh)
  • Add ghw.pci.LookupDevice (#240 thanks @fromanirh)
  • Add baseboard product lookup on linux and windows (#242 thanks @UnityDG)
  • Collect GPU data in ghw snapshots (#243 thanks @fromanirh)

Bug Fixes

  • Don't leak tmpdir when testing (#237 thanks @fromanirh)
  • Fix directory leakage for snapshots (#236 thanks @marcel-apf)

Cleanups

  • Modernize error detection (#233 thanks @fromanirh)

v0.7.0

3 years ago

Features

  • Add UUID to Partition (#197, thanks @schinmai-akamai)
  • Use sysfs as primary method to fetch total physical memory (#198, thanks @cclerget)
  • Break out snapshotting functionality into own package (#202, #205, thanks @fromanirh)
  • Capture memory, CPU and NUMA topology in snapshot (#203, #204, thanks @fromanirh)
  • Add PCI device information to ghwc (#209)
  • Add ghw.WithDisableWarnings() helper (#216, thanks @fromanirh)
  • Add PCI device revision number (#219, thanks @pearsonk)

Bug Fixes

  • Unit tests for Option (#206, thanks @fromanirh)
  • Fix PCI JSON/YAML marshalling (#210, thanks @fromanirh)
  • Fall back to ID_SERIAL if ID_SERIAL_SHORT is missing (#217)

Cleanups

  • Separation of different resources into different packages (#193)
  • Removed support for dep and Go <1.13

v0.6.1

3 years ago

Bug fixes

  • Windows memory: Memory now properly (#176) calculated for total_physical_bytes and total_usable_bytes. Added documentation (#188) to clearly explain the difference between total_usable_bytes and the transient "available memory amount" (which ghw does not look at)
  • Windows block devices: Name gathering now looks for "ssd" in Caption field to determine SSD drive type (#177). Remove unnecessary "/dev" prefix (#165)
  • WMI for nil types: Fixed issue related to <nil> types being returned from WMI/WQL queries for non-pointer receiver types (#189)

v0.6.0

4 years ago

Features

  • Windows support (@KingRial, #9): CPU, memory, block, chassis, bios, product and network modules now supported on Windows.
  • ghw.Disk.IsRemovable (@thetravischannel): Added new boolean attribute to ghw.Disk struct to represent if the disk drive is removable.
  • Diagnostic snapshot (@jaypipes, #66): Added new ghw-snapshot command (currently Linux-only) that builds a static filesystem snapshot into a tarball and a script (hack/run-against-snapshot.sh) that will mount the snapshot in a Docker container and run ghwc against it for testing/diagnostic purposes