Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve network logs #628

Merged
merged 2 commits into from
May 29, 2024
Merged

Improve network logs #628

merged 2 commits into from
May 29, 2024

Conversation

vinc
Copy link
Owner

@vinc vinc commented May 29, 2024

  • Split driver name and MAC address logging at boot
  • Log IP address change in net config ip
  • Log gateway address change in net config gw
  • Log DNS servers change in net config dns

@vinc
Copy link
Owner Author

vinc commented May 29, 2024

This will split the network log at boot to print the driver name, and then the MAC address if we could read it:

net-log-boot

@vinc
Copy link
Owner Author

vinc commented May 29, 2024

This will log successful runs of net config just like we are logging RTC changes after boot:

net-log

@vinc
Copy link
Owner Author

vinc commented May 29, 2024

The logs command will now have a trace of the network changes:

~
> logs
[1716977162.252961] MOROS v0.10.3-30-g2cbf195
[1716977162.252961] MEM [0x00000000000000-0x00000000000FFF] FrameZero
[1716977163.252961] MEM [0x00000000001000-0x00000000004FFF] PageTable
[1716977163.252961] MEM [0x00000000005000-0x00000000016FFF] Bootloader
[1716977163.252961] MEM [0x00000000017000-0x00000000017FFF] BootInfo
[1716977163.252961] MEM [0x00000000018000-0x0000000009EFFF] Kernel
[1716977163.252961] MEM [0x0000000009F000-0x0000000009FFFF] Reserved
[1716977163.252961] MEM [0x000000000F0000-0x000000000FFFFF] Reserved
[1716977163.252961] MEM [0x00000000100000-0x00000000103FFF] Kernel
[1716977163.252961] MEM [0x00000000104000-0x00000000303FFF] KernelStack
[1716977163.252961] MEM [0x00000000304000-0x000000003FFFFF] Usable
[1716977163.252961] MEM [0x00000000400000-0x000000005E9FFF] Kernel
[1716977163.252961] MEM [0x000000005EA000-0x000000005FAFFF] PageTable
[1716977163.252961] MEM [0x000000005FB000-0x00000001FDFFFF] Usable
[1716977163.252961] MEM [0x00000001FE0000-0x00000001FFFFFF] Reserved
[1716977163.252961] MEM [0x000000FEFFC000-0x000000FEFFFFFF] Reserved
[1716977163.252961] MEM [0x000000FFFC0000-0x000000FFFFFFFF] Reserved
[1716977163.252961] MEM 32720 KB
[1716977163.058991] CPU GenuineIntel
[1716977163.059991] CPU Intel(R) Core(TM) i5-8350U CPU @ 1.70GHz
[1716977163.060991] RNG RDRAND available
[1716977163.061990] PCI 0000:00:00 [8086:1237]
[1716977163.062990] PCI 0000:01:00 [8086:7000]
[1716977163.063990] PCI 0000:01:01 [8086:7010]
[1716977163.065990] PCI 0000:01:03 [8086:7113]
[1716977163.066990] PCI 0000:02:00 [1234:1111]
[1716977163.066990] PCI 0000:03:00 [8086:100E]
[1716977163.124981] NET DRV E1000
[1716977163.125981] NET MAC 52-54-00-12-34-56
[1716977163.131980] ATA 0:0 QEMU HARDDISK QM00001 (32 MB)
[1716977163.134979] MFS Superblock found in ATA 0:0
[1716977163.136979] RTC 2024-05-29 10:06:03 +0000
[1716977171.109983] NET IP 10.0.2.15/24
[1716977171.111983] NET GW 10.0.2.2
[1716977171.125981] NET DNS 10.0.2.3
[1716977175.001000] RTC 2024-05-29 10:06:15 +0000

@vinc vinc marked this pull request as ready for review May 29, 2024 19:26
@vinc vinc merged commit 420579b into trunk May 29, 2024
1 check passed
@vinc vinc deleted the feature/net-log branch May 29, 2024 20:02
@vinc vinc mentioned this pull request Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant