Skip to content

Close siderolabs/go-kmsg#10: Support PRINTK_CALLER kmsg logs#11

Merged
talos-bot merged 1 commit intosiderolabs:mainfrom
happy-dude:main
May 8, 2024
Merged

Close siderolabs/go-kmsg#10: Support PRINTK_CALLER kmsg logs#11
talos-bot merged 1 commit intosiderolabs:mainfrom
happy-dude:main

Conversation

@happy-dude
Copy link
Copy Markdown
Contributor

Closes #10

Add support for caller information in kmsg log entries. More examples available at #10 (comment)

Also adds tests for a log entry with a Thread caller and a Cpu caller.

Further references:

@happy-dude happy-dude force-pushed the main branch 2 times, most recently from 6eedfc1 to 80f1b35 Compare May 7, 2024 20:50
Copy link
Copy Markdown
Member

@smira smira left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please rework commit message title to be something like

feat: support PRINTK_CALLER kmsg logs

thank you, otherwise looks good!

@happy-dude
Copy link
Copy Markdown
Contributor Author

Thanks for the feedback. Changed the commit message and removed the unnecessary else block in fa57baa !

@smira
Copy link
Copy Markdown
Member

smira commented May 8, 2024

@happy-dude please fix issues: https://github.com/siderolabs/go-kmsg/actions/runs/9004193958/job/24736607350?pr=11

make sure make passes for you locally

@happy-dude
Copy link
Copy Markdown
Contributor Author

Apologies,

  • fixed linting issues caught by golangci-lint
  • ran make locally to make sure build completes without issues
<... omitted ...>
#14 exporting to image
#14 exporting layers done
#14 writing image sha256:7eb2a9587d47e44ac71a7f4c504aafedf31e228131634fc56a5907ec907ca667 done
#14 DONE 0.0s
make[1]: Leaving directory '/home/schan/sources/go-kmsg'

Should be ready with 6c4e5c8 ! Appreciate the feedback.

Closes siderolabs#10

Add support for caller information in kmsg log entries.
More examples available at siderolabs#10 (comment)

Also adds tests for a log entry with a Thread caller and a Cpu caller.

Further references:
* https://elixir.bootlin.com/linux/v6.6.22/source/kernel/printk/printk_ringbuffer.h#L15
* https://elixir.bootlin.com/linux/v6.6.22/source/kernel/printk/printk.c#L629

Signed-off-by: Stanley Chan <pocketgamer5000@gmail.com>
Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
@smira
Copy link
Copy Markdown
Member

smira commented May 8, 2024

/m

@talos-bot talos-bot merged commit 47655ee into siderolabs:main May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Support PRINTK_CALLER kernel compilation option

3 participants