| #
b1bef9f7
|
| 10-Jul-2025 |
Jean-Sébastien Pédron <dumbbell@FreeBSD.org> |
linuxkpi: Add hex_dump_to_buffer()
This function prints a single line of hex dump to the given line buffer.
The implementation relies on `lkpi_hex_dump()` to format the string.
Reviewed by: bz Spo
linuxkpi: Add hex_dump_to_buffer()
This function prints a single line of hex dump to the given line buffer.
The implementation relies on `lkpi_hex_dump()` to format the string.
Reviewed by: bz Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D51559
show more ...
|
| #
43b5a264
|
| 09-Aug-2025 |
Jean-Sébastien Pédron <dumbbell@FreeBSD.org> |
linuxkpi: Add option to skip trailing newline in `lkpi_hex_dump()`
This will be useful in the upcoming implementation of `hex_dump_to_buffer()` which doesn't add one.
Reviewed by: bz, emaste Sponso
linuxkpi: Add option to skip trailing newline in `lkpi_hex_dump()`
This will be useful in the upcoming implementation of `hex_dump_to_buffer()` which doesn't add one.
Reviewed by: bz, emaste Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D51844
show more ...
|
| #
621f43ff
|
| 20-Jun-2025 |
Jean-Sébastien Pédron <dumbbell@FreeBSD.org> |
linuxkpi: Declare several log message prefixes
The amdgpu DRM driver started to use `HW_ERR` in Linux 6.9.
Reviewed by: emaste, manu Sponsored by: The FreeBSD Foundation Differential Revision: http
linuxkpi: Declare several log message prefixes
The amdgpu DRM driver started to use `HW_ERR` in Linux 6.9.
Reviewed by: emaste, manu Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D50990
show more ...
|
| #
4359672e
|
| 02-Apr-2025 |
Bjoern A. Zeeb <bz@FreeBSD.org> |
LinuxKPI: add seq_hex_dump()
Move the implementation of print_hex_dump() into linux_compat.c as lkpi_hex_dump() taking an extra function pointer and argument. Add two internal wrappers for printf an
LinuxKPI: add seq_hex_dump()
Move the implementation of print_hex_dump() into linux_compat.c as lkpi_hex_dump() taking an extra function pointer and argument. Add two internal wrappers for printf and sbuf_printf to get a common function definition (sbuf_printf takes the extra argument).
Use these to implement print_hex_dump() and the newly added seq_hex_dump().
This allows us to re-use the same implementation of print_hex_dump() for both functions without duplicating the code.
Initial implementation: D49381 by dumbbell Sponsored by: The FreeBSD Foundation MFC after: 3 days Reviewed by: dumbbell Differential Revision: https://reviews.freebsd.org/D49637
show more ...
|
| #
1847e63d
|
| 27-Aug-2024 |
Bjoern A. Zeeb <bz@FreeBSD.org> |
LinuxKPI: add no_printk
Add a version of no_printk(), which seems to be there to have format string checking while never calling the printk. It seems a very weird thing and it needs a return code a
LinuxKPI: add no_printk
Add a version of no_printk(), which seems to be there to have format string checking while never calling the printk. It seems a very weird thing and it needs a return code and for some reason my initial while (0) { } version hadn't worked while porting over new code but could have been further downstream format string problems. if (0) seems to do the job though I would have expected that to more likely simply get optimised out without any futher format checking.
Sponsored by: The FreeBSD Foundation MFC after: 3 days Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D46463
show more ...
|
| #
95ee2897
|
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
sys: Remove $FreeBSD$: two-line .h pattern
Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
|
| #
307f78f3
|
| 19-Dec-2021 |
Vladimir Kondratyev <wulf@FreeBSD.org> |
LinuxKPI: Constantly use _LINUXKPI_ prefix in include guards
MFC after: 1 week Reviewed by: bz, emaste, hselasky, manu Differential Revision: https://reviews.freebsd.org/D33562
|
| #
1b602f64
|
| 07-Jun-2021 |
Neel Chauhan <nc@FreeBSD.org> |
linuxkpi: Fix build from redefined pr_err_once()
|
| #
37d64dcd
|
| 07-Jun-2021 |
Neel Chauhan <nc@FreeBSD.org> |
linuxkpi: Include pr_err_once() in printk.h
Approved by: bz (src), hselasky (src) Differential Reivison: https://reviews.freebsd.org/D30687
|
| #
ce8395ec
|
| 16-Dec-2020 |
John Baldwin <jhb@FreeBSD.org> |
Use the 't' modifier to print a ptrdiff_t.
Reviewed by: imp Obtained from: CheriBSD Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D27576
|
| #
7648bc9f
|
| 13-May-2019 |
Alan Somers <asomers@FreeBSD.org> |
MFHead @347527
Sponsored by: The FreeBSD Foundation
|
| #
34cb771e
|
| 06-May-2019 |
Hans Petter Selasky <hselasky@FreeBSD.org> |
Implement print_hex_dump_debug() function macro in the LinuxKPI.
Build tested drm-current-kmod prior to commit.
MFC after: 1 week Submitted by: slavash@ Sponsored by: Mellanox Technologies
|
| #
2aaf9152
|
| 18-Mar-2019 |
Alan Somers <asomers@FreeBSD.org> |
MFHead@r345275
|
| #
c4698825
|
| 13-Mar-2019 |
Hans Petter Selasky <hselasky@FreeBSD.org> |
Implement pr_info_ratelimited() function macro in the LinuxKPI.
Submitted by: Johannes Lundberg <johalun0@gmail.com> MFC after: 1 week Sponsored by: Limelight Networks Sponsored by: Mellanox Tec
Implement pr_info_ratelimited() function macro in the LinuxKPI.
Submitted by: Johannes Lundberg <johalun0@gmail.com> MFC after: 1 week Sponsored by: Limelight Networks Sponsored by: Mellanox Technologies
show more ...
|
| #
b1bef9f7
|
| 10-Jul-2025 |
Jean-Sébastien Pédron <dumbbell@FreeBSD.org> |
linuxkpi: Add hex_dump_to_buffer()
This function prints a single line of hex dump to the given line buffer.
The implementation relies on `lkpi_hex_dump()` to format the string.
Reviewed by: bz Spo
linuxkpi: Add hex_dump_to_buffer()
This function prints a single line of hex dump to the given line buffer.
The implementation relies on `lkpi_hex_dump()` to format the string.
Reviewed by: bz Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D51559
show more ...
|
| #
43b5a264
|
| 09-Aug-2025 |
Jean-Sébastien Pédron <dumbbell@FreeBSD.org> |
linuxkpi: Add option to skip trailing newline in `lkpi_hex_dump()`
This will be useful in the upcoming implementation of `hex_dump_to_buffer()` which doesn't add one.
Reviewed by: bz, emaste Sponso
linuxkpi: Add option to skip trailing newline in `lkpi_hex_dump()`
This will be useful in the upcoming implementation of `hex_dump_to_buffer()` which doesn't add one.
Reviewed by: bz, emaste Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D51844
show more ...
|
| #
621f43ff
|
| 20-Jun-2025 |
Jean-Sébastien Pédron <dumbbell@FreeBSD.org> |
linuxkpi: Declare several log message prefixes
The amdgpu DRM driver started to use `HW_ERR` in Linux 6.9.
Reviewed by: emaste, manu Sponsored by: The FreeBSD Foundation Differential Revision: http
linuxkpi: Declare several log message prefixes
The amdgpu DRM driver started to use `HW_ERR` in Linux 6.9.
Reviewed by: emaste, manu Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D50990
show more ...
|
| #
4359672e
|
| 02-Apr-2025 |
Bjoern A. Zeeb <bz@FreeBSD.org> |
LinuxKPI: add seq_hex_dump()
Move the implementation of print_hex_dump() into linux_compat.c as lkpi_hex_dump() taking an extra function pointer and argument. Add two internal wrappers for printf an
LinuxKPI: add seq_hex_dump()
Move the implementation of print_hex_dump() into linux_compat.c as lkpi_hex_dump() taking an extra function pointer and argument. Add two internal wrappers for printf and sbuf_printf to get a common function definition (sbuf_printf takes the extra argument).
Use these to implement print_hex_dump() and the newly added seq_hex_dump().
This allows us to re-use the same implementation of print_hex_dump() for both functions without duplicating the code.
Initial implementation: D49381 by dumbbell Sponsored by: The FreeBSD Foundation MFC after: 3 days Reviewed by: dumbbell Differential Revision: https://reviews.freebsd.org/D49637
show more ...
|
| #
1847e63d
|
| 27-Aug-2024 |
Bjoern A. Zeeb <bz@FreeBSD.org> |
LinuxKPI: add no_printk
Add a version of no_printk(), which seems to be there to have format string checking while never calling the printk. It seems a very weird thing and it needs a return code a
LinuxKPI: add no_printk
Add a version of no_printk(), which seems to be there to have format string checking while never calling the printk. It seems a very weird thing and it needs a return code and for some reason my initial while (0) { } version hadn't worked while porting over new code but could have been further downstream format string problems. if (0) seems to do the job though I would have expected that to more likely simply get optimised out without any futher format checking.
Sponsored by: The FreeBSD Foundation MFC after: 3 days Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D46463
show more ...
|
| #
95ee2897
|
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
sys: Remove $FreeBSD$: two-line .h pattern
Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
|
| #
307f78f3
|
| 19-Dec-2021 |
Vladimir Kondratyev <wulf@FreeBSD.org> |
LinuxKPI: Constantly use _LINUXKPI_ prefix in include guards
MFC after: 1 week Reviewed by: bz, emaste, hselasky, manu Differential Revision: https://reviews.freebsd.org/D33562
|
| #
1b602f64
|
| 07-Jun-2021 |
Neel Chauhan <nc@FreeBSD.org> |
linuxkpi: Fix build from redefined pr_err_once()
|
| #
37d64dcd
|
| 07-Jun-2021 |
Neel Chauhan <nc@FreeBSD.org> |
linuxkpi: Include pr_err_once() in printk.h
Approved by: bz (src), hselasky (src) Differential Reivison: https://reviews.freebsd.org/D30687
|
| #
ce8395ec
|
| 16-Dec-2020 |
John Baldwin <jhb@FreeBSD.org> |
Use the 't' modifier to print a ptrdiff_t.
Reviewed by: imp Obtained from: CheriBSD Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D27576
|
| #
7648bc9f
|
| 13-May-2019 |
Alan Somers <asomers@FreeBSD.org> |
MFHead @347527
Sponsored by: The FreeBSD Foundation
|