Skip to content

Move logs for systemd-sonic-generator into /dev/kmsg#34

Merged
saiarcot895 merged 3 commits intosaiarcot895:trixiefrom
tirupatihemanth:hemkt/kmsg
Oct 3, 2025
Merged

Move logs for systemd-sonic-generator into /dev/kmsg#34
saiarcot895 merged 3 commits intosaiarcot895:trixiefrom
tirupatihemanth:hemkt/kmsg

Conversation

@tirupatihemanth
Copy link

Why I did it

/dev/kmsg is accessible for logs when systemd-sonic-generator is executed.

How I did it

Change logs to go to /dev/kmsg instead of stderr. Helps debugging for issues in the future with dmesg.

How to verify it

Check dmesg -T after systemctl daemon-reload to check for any error logs

@saiarcot895
Copy link
Owner

@tirupatihemanth can you review the above comment?

tirupatihemanth and others added 2 commits October 2, 2025 17:24
Use stpncpy to build kmsg log strings

Co-authored-by: Saikrishna Arcot <[email protected]>
@saiarcot895 saiarcot895 merged commit 5f3a1d2 into saiarcot895:trixie Oct 3, 2025
1 check passed
saiarcot895 added a commit that referenced this pull request Oct 21, 2025
* move logs for systemd-sonic-generator into /dev/kmsg

* Apply suggestion from @saiarcot895

Use stpncpy to build kmsg log strings

Co-authored-by: Saikrishna Arcot <[email protected]>

---------

Co-authored-by: Saikrishna Arcot <[email protected]>
Co-authored-by: Saikrishna Arcot <[email protected]>
saiarcot895 added a commit that referenced this pull request Nov 4, 2025
Also move logs for systemd-sonic-generator into /dev/kmsg (#34)

Co-authored-by: Hemanth Kumar Tirupati <[email protected]>
Signed-off-by: Saikrishna Arcot <[email protected]>
saiarcot895 added a commit that referenced this pull request Nov 17, 2025
The version of systemd on Trixie no longer allows service generators to
write to directories outside of what has been explicitly passed in. This
affects DPU and multi-ASIC use cases. Therefore, rework
systemd-sonic-generator to meet these requirements.

Also, compile systemd-sonic-generator with C++17. The gtest headers no
longer support C++11, so it needs to be bumped up to C++14 at minimum.

Also, move logs for systemd-sonic-generator into /dev/kmsg (#34)

Co-authored-by: Hemanth Kumar Tirupati <[email protected]>
Signed-off-by: Saikrishna Arcot <[email protected]>
saiarcot895 added a commit that referenced this pull request Nov 23, 2025
The version of systemd on Trixie no longer allows service generators to
write to directories outside of what has been explicitly passed in. This
affects DPU and multi-ASIC use cases. Therefore, rework
systemd-sonic-generator to meet these requirements.

Also, compile systemd-sonic-generator with C++17. The gtest headers no
longer support C++11, so it needs to be bumped up to C++14 at minimum.

Also, move logs for systemd-sonic-generator into /dev/kmsg (#34)

Co-authored-by: Hemanth Kumar Tirupati <[email protected]>
Signed-off-by: Saikrishna Arcot <[email protected]>
saiarcot895 added a commit that referenced this pull request Nov 26, 2025
The version of systemd on Trixie no longer allows service generators to
write to directories outside of what has been explicitly passed in. This
affects DPU and multi-ASIC use cases. Therefore, rework
systemd-sonic-generator to meet these requirements.

Also, compile systemd-sonic-generator with C++17. The gtest headers no
longer support C++11, so it needs to be bumped up to C++14 at minimum.

Also, move logs for systemd-sonic-generator into /dev/kmsg (#34)

Co-authored-by: Hemanth Kumar Tirupati <[email protected]>
Signed-off-by: Saikrishna Arcot <[email protected]>
saiarcot895 added a commit that referenced this pull request Nov 30, 2025
The version of systemd on Trixie no longer allows service generators to
write to directories outside of what has been explicitly passed in. This
affects DPU and multi-ASIC use cases. Therefore, rework
systemd-sonic-generator to meet these requirements.

Also, compile systemd-sonic-generator with C++17. The gtest headers no
longer support C++11, so it needs to be bumped up to C++14 at minimum.

Also, move logs for systemd-sonic-generator into /dev/kmsg (#34)

Co-authored-by: Hemanth Kumar Tirupati <[email protected]>
Signed-off-by: Saikrishna Arcot <[email protected]>
saiarcot895 added a commit that referenced this pull request Dec 11, 2025
The version of systemd on Trixie no longer allows service generators to
write to directories outside of what has been explicitly passed in. This
affects DPU and multi-ASIC use cases. Therefore, rework
systemd-sonic-generator to meet these requirements.

Also, compile systemd-sonic-generator with C++17. The gtest headers no
longer support C++11, so it needs to be bumped up to C++14 at minimum.

Also, move logs for systemd-sonic-generator into /dev/kmsg (#34)

Co-authored-by: Hemanth Kumar Tirupati <[email protected]>
Signed-off-by: Saikrishna Arcot <[email protected]>
saiarcot895 added a commit that referenced this pull request Dec 15, 2025
The version of systemd on Trixie no longer allows service generators to
write to directories outside of what has been explicitly passed in. This
affects DPU and multi-ASIC use cases. Therefore, rework
systemd-sonic-generator to meet these requirements.

Also, compile systemd-sonic-generator with C++17. The gtest headers no
longer support C++11, so it needs to be bumped up to C++14 at minimum.

Also, move logs for systemd-sonic-generator into /dev/kmsg (#34)

Co-authored-by: Hemanth Kumar Tirupati <[email protected]>
Signed-off-by: Saikrishna Arcot <[email protected]>
saiarcot895 added a commit that referenced this pull request Jan 7, 2026
The version of systemd on Trixie no longer allows service generators to
write to directories outside of what has been explicitly passed in. This
affects DPU and multi-ASIC use cases. Therefore, rework
systemd-sonic-generator to meet these requirements.

Also, compile systemd-sonic-generator with C++17. The gtest headers no
longer support C++11, so it needs to be bumped up to C++14 at minimum.

Also, move logs for systemd-sonic-generator into /dev/kmsg (#34)

Co-authored-by: Hemanth Kumar Tirupati <[email protected]>
Signed-off-by: Saikrishna Arcot <[email protected]>
saiarcot895 added a commit that referenced this pull request Jan 13, 2026
The version of systemd on Trixie no longer allows service generators to
write to directories outside of what has been explicitly passed in. This
affects DPU and multi-ASIC use cases. Therefore, rework
systemd-sonic-generator to meet these requirements.

Also, compile systemd-sonic-generator with C++17. The gtest headers no
longer support C++11, so it needs to be bumped up to C++14 at minimum.

Also, move logs for systemd-sonic-generator into /dev/kmsg (#34)

Co-authored-by: Hemanth Kumar Tirupati <[email protected]>
Signed-off-by: Saikrishna Arcot <[email protected]>
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.

2 participants