#
5668c22a |
| 27-Jun-2024 |
Bjoern A. Zeeb <bz@FreeBSD.org> |
LinuxKPI/lindebugfs: stop panicing in lindebugfs, fix simple_read_from_buffer
Trying to use lindebugfs for debugging wirless drivers two issues became apparent: (a) a panic in lindebugfs calling a h
LinuxKPI/lindebugfs: stop panicing in lindebugfs, fix simple_read_from_buffer
Trying to use lindebugfs for debugging wirless drivers two issues became apparent: (a) a panic in lindebugfs calling a hard coded release function if the caller had not provided one. This seems to be based on assumptions that no longer hold up. Remove the hard coded release function to prevent panics. (b) In LinuxKPI simple_read_from_buffer() would call copy_to_user() but buffers weren't setup for this (lindebugfs copies data from its own buffer) and then pseudofs will do another copyout to the user on this; remove the copy_to_user() and simply copy the data over to the provided buffer; this works for as long as the only consumers remain debugfs callers (which currently seems to be the case). [the only out-of-tree consumers I am aware off are two drm-kmod drivers/gpu/drm/amd/pm/* debugfs functions I cannot test].
Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Tested by: jfree Differential Revision: https://reviews.freebsd.org/D45755
show more ...
|
Revision tags: release/14.1.0 |
|
#
473c90ac |
| 10-May-2024 |
John Baldwin <jhb@FreeBSD.org> |
uio: Use switch statements when handling UIO_READ vs UIO_WRITE
This is mostly to reduce the diff with CheriBSD which adds additional constants to enum uio_rw, but also matches the normal style used
uio: Use switch statements when handling UIO_READ vs UIO_WRITE
This is mostly to reduce the diff with CheriBSD which adds additional constants to enum uio_rw, but also matches the normal style used for uio_segflg.
Reviewed by: kib, emaste Obtained from: CheriBSD Differential Revision: https://reviews.freebsd.org/D45142
show more ...
|
Revision tags: release/13.3.0 |
|
#
fdafd315 |
| 24-Nov-2023 |
Warner Losh <imp@FreeBSD.org> |
sys: Automated cleanup of cdefs and other formatting
Apply the following automated changes to try to eliminate no-longer-needed sys/cdefs.h includes as well as now-empty blank lines in a row.
Remov
sys: Automated cleanup of cdefs and other formatting
Apply the following automated changes to try to eliminate no-longer-needed sys/cdefs.h includes as well as now-empty blank lines in a row.
Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/ Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/ Remove /\n+#if.*\n#endif.*\n+/ Remove /^#if.*\n#endif.*\n/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/
Sponsored by: Netflix
show more ...
|
Revision tags: release/14.0.0 |
|
#
685dc743 |
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
sys: Remove $FreeBSD$: one-line .c pattern
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
|
#
4d846d26 |
| 10-May-2023 |
Warner Losh <imp@FreeBSD.org> |
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD
The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD
The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause.
Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
show more ...
|
Revision tags: release/13.2.0 |
|
#
a04aa80e |
| 30-Dec-2022 |
Jean-Sébastien Pédron <dumbbell@FreeBSD.org> |
lindebugfs: Add `debugfs_create_file_size()`
This is the same as `debugfs_create_file()` but takes the initial size of the file. In FreeBSD, the given size is ignored and `debugfs_create_file()` is
lindebugfs: Add `debugfs_create_file_size()`
This is the same as `debugfs_create_file()` but takes the initial size of the file. In FreeBSD, the given size is ignored and `debugfs_create_file()` is called.
Reviewed by: emaste, manu Approved by: manu Differential Revision: https://reviews.freebsd.org/D37914
show more ...
|
#
976aa07a |
| 13-Jan-2023 |
Jean-Sébastien Pédron <dumbbell@FreeBSD.org> |
lindebugfs: Add missing `debugfs_create_u*()` and `debugfs_create_x*()`
The `debugfs_create_x*()` variants are the same as their `debugfs_create_u*()` equivalent, but they work with lowercase hexade
lindebugfs: Add missing `debugfs_create_u*()` and `debugfs_create_x*()`
The `debugfs_create_x*()` variants are the same as their `debugfs_create_u*()` equivalent, but they work with lowercase hexadecimal.
While here, fix a few style(9) issues.
Reviewed by: manu Approved by: manu Differential Revision: https://reviews.freebsd.org/D38087
show more ...
|
#
f2044a30 |
| 30-Dec-2022 |
Jean-Sébastien Pédron <dumbbell@FreeBSD.org> |
lindebugfs: Add `debugfs_create_atomic_t()`
Reviewed by: jfree Approved by: jfree Differential Revision: https://reviews.freebsd.org/D37915
|
Revision tags: release/12.4.0 |
|
#
0fce2dc1 |
| 22-Oct-2022 |
Bjoern A. Zeeb <bz@FreeBSD.org> |
LinuxKPI,lindebugfs: add u8 base type and blob support
Add debugfs_create_u8() based on other already present implementations. Add a read-only implementation for debugfs_create_blob().
Both are nee
LinuxKPI,lindebugfs: add u8 base type and blob support
Add debugfs_create_u8() based on other already present implementations. Add a read-only implementation for debugfs_create_blob().
Both are needed for iwlwifi debugfs support.
Sponsored by: The FreeBSD Foundation MFC after: 3 days OKed by: jfree (earlier version) Differential Revision: https://reviews.freebsd.org/D37090
show more ...
|
#
f697b943 |
| 20-Sep-2022 |
Jake Freeland <jfree@FreeBSD.org> |
linuxkpi: drm-kmod debugfs support
This diff extends LinuxKPI to support simple attribute files in debugfs. These simple attributes are an essential component for compiling drm-kmod with CONFIG_DEBU
linuxkpi: drm-kmod debugfs support
This diff extends LinuxKPI to support simple attribute files in debugfs. These simple attributes are an essential component for compiling drm-kmod with CONFIG_DEBUG_FS enabled. This will allow for easier graphics driver debugging using Intel's igt-gpu-tools.
Reviewed by: hselasky Differential Revision: https://reviews.freebsd.org/D35883 Sponsored by: Google, Inc. (GSoC 2022)
show more ...
|
Revision tags: release/13.1.0 |
|
#
68ec2949 |
| 11-Mar-2022 |
Hans Petter Selasky <hselasky@FreeBSD.org> |
lindebugfs: The Linux file operations use negative return values in the kernel.
Fix sign.
MFC after: 1 week Sponsored by: NVIDIA Networking
|
#
88a29d89 |
| 11-Mar-2022 |
Hans Petter Selasky <hselasky@FreeBSD.org> |
lindebugfs: Zero the linux_file structure before use.
This avoids clients using garbage values on the stack and makes debugging easier.
MFC after: 1 week Sponsored by: NVIDIA Networking
|
#
867b4dec |
| 31-Jan-2022 |
Emmanuel Vadot <manu@FreeBSD.org> |
lindebugfs: Fix write
For write operation pseudofs creates an sbuf with the data. Use this data instead of the uio as it's not usable anymore after uiomove.
Reviewed by: hselasky MFC after: 1 week
lindebugfs: Fix write
For write operation pseudofs creates an sbuf with the data. Use this data instead of the uio as it's not usable anymore after uiomove.
Reviewed by: hselasky MFC after: 1 week Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D34114
show more ...
|
Revision tags: release/12.3.0, release/13.0.0, release/12.2.0 |
|
#
46888ded |
| 04-Sep-2020 |
Mark Johnston <markj@FreeBSD.org> |
Add emulation support for the Linux kcov(4) ioctl API.
This makes it possible to run an unmodified Linux syzkaller executor against the Linuxulator, and have it gather code coverage information.
Sp
Add emulation support for the Linux kcov(4) ioctl API.
This makes it possible to run an unmodified Linux syzkaller executor against the Linuxulator, and have it gather code coverage information.
Sponsored by: The FreeBSD Foundation
show more ...
|
#
1a180032 |
| 01-Sep-2020 |
Mateusz Guzik <mjg@FreeBSD.org> |
compat: clean up empty lines in .c and .h files
|
Revision tags: release/11.4.0, release/12.1.0, release/11.3.0 |
|
#
0269ae4c |
| 06-Jun-2019 |
Alan Somers <asomers@FreeBSD.org> |
MFHead @348740
Sponsored by: The FreeBSD Foundation
|
#
03f1cf9f |
| 19-May-2019 |
Johannes Lundberg <johalun@FreeBSD.org> |
LinuxKPI: Finalize move of lindebugfs from ports to base.
The source file was moved to base earlier and also improved upon, but never compiled in. This patch will: - Make a module in sys/modules - M
LinuxKPI: Finalize move of lindebugfs from ports to base.
The source file was moved to base earlier and also improved upon, but never compiled in. This patch will: - Make a module in sys/modules - Make lindebugfs depend on linuxkpi (for seq_file) - Check if read/write functions are set before calling, DRM drivers don't always set both of them.
Reviewed by: hps Approved by: imp (mentor), hps MFC after: 1 week
show more ...
|
#
18b18078 |
| 25-Feb-2019 |
Enji Cooper <ngie@FreeBSD.org> |
MFhead@r344527
|
#
a8fe8db4 |
| 25-Feb-2019 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r344178 through r344512.
|
#
3f6cab07 |
| 23-Feb-2019 |
Matt Macy <mmacy@FreeBSD.org> |
import linux debugfs support
Reviewed by: hps@ MFC after: 1 week Sponsored by: iX Systems Differential Revision: https://reviews.freebsd.org/D19258
|