All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] board: x86_64: Enable and mount debugfs
@ 2022-02-02  3:17 Joel Stanley
  2022-02-13 11:07 ` Arnout Vandecappelle
  0 siblings, 1 reply; 2+ messages in thread
From: Joel Stanley @ 2022-02-02  3:17 UTC (permalink / raw)
  To: buildroot; +Cc: Gerome Burlats, Romain Naour

Add DEBUG_FS to the kernel options, and modify fstab so it is
automatically mounted at boot.

This is useful when testing.

Signed-off-by: Joel Stanley <joel@jms.id.au>
---
 board/qemu/x86_64/linux.config  | 1 +
 board/qemu/x86_64/post-build.sh | 3 +++
 2 files changed, 4 insertions(+)

diff --git a/board/qemu/x86_64/linux.config b/board/qemu/x86_64/linux.config
index e1d2ce01b004..2ed5c4194560 100644
--- a/board/qemu/x86_64/linux.config
+++ b/board/qemu/x86_64/linux.config
@@ -50,4 +50,5 @@ CONFIG_EXT4_FS=y
 CONFIG_AUTOFS4_FS=y
 CONFIG_TMPFS=y
 CONFIG_TMPFS_POSIX_ACL=y
+CONFIG_DEBUG_FS=y
 CONFIG_UNWINDER_FRAME_POINTER=y
diff --git a/board/qemu/x86_64/post-build.sh b/board/qemu/x86_64/post-build.sh
index bf83a002c2fc..0b27ab2c8074 100755
--- a/board/qemu/x86_64/post-build.sh
+++ b/board/qemu/x86_64/post-build.sh
@@ -9,3 +9,6 @@ if [ -e ${TARGET_DIR}/etc/inittab ]; then
 	sed -i '/GENERIC_SERIAL/a\
 tty1::respawn:/sbin/getty -L  tty1 0 vt100 # QEMU graphical window' ${TARGET_DIR}/etc/inittab
 fi
+
+# Mount debugfs on boot
+echo "debugfs     /sys/kernel/debug debugfs defaults 0 0" >> ${TARGET_DIR}/etc/fstab
-- 
2.34.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Buildroot] [PATCH] board: x86_64: Enable and mount debugfs
  2022-02-02  3:17 [Buildroot] [PATCH] board: x86_64: Enable and mount debugfs Joel Stanley
@ 2022-02-13 11:07 ` Arnout Vandecappelle
  0 siblings, 0 replies; 2+ messages in thread
From: Arnout Vandecappelle @ 2022-02-13 11:07 UTC (permalink / raw)
  To: Joel Stanley, buildroot; +Cc: Gerome Burlats, Romain Naour



On 02/02/2022 04:17, Joel Stanley wrote:
> Add DEBUG_FS to the kernel options, and modify fstab so it is
> automatically mounted at boot.
> 
> This is useful when testing.

  "This is useful when testing" is not much of an explanation. Why only for this 
defconfig? Why only debugfs and not strace, dropbear, gdbserver, and tons of 
other tools useful for testing?

  For now, I've marked this as Rejected but if there's a good reason we can pick 
up this patch again.

  Regards,
  Arnout

> 
> Signed-off-by: Joel Stanley <joel@jms.id.au>
> ---
>   board/qemu/x86_64/linux.config  | 1 +
>   board/qemu/x86_64/post-build.sh | 3 +++
>   2 files changed, 4 insertions(+)
> 
> diff --git a/board/qemu/x86_64/linux.config b/board/qemu/x86_64/linux.config
> index e1d2ce01b004..2ed5c4194560 100644
> --- a/board/qemu/x86_64/linux.config
> +++ b/board/qemu/x86_64/linux.config
> @@ -50,4 +50,5 @@ CONFIG_EXT4_FS=y
>   CONFIG_AUTOFS4_FS=y
>   CONFIG_TMPFS=y
>   CONFIG_TMPFS_POSIX_ACL=y
> +CONFIG_DEBUG_FS=y
>   CONFIG_UNWINDER_FRAME_POINTER=y
> diff --git a/board/qemu/x86_64/post-build.sh b/board/qemu/x86_64/post-build.sh
> index bf83a002c2fc..0b27ab2c8074 100755
> --- a/board/qemu/x86_64/post-build.sh
> +++ b/board/qemu/x86_64/post-build.sh
> @@ -9,3 +9,6 @@ if [ -e ${TARGET_DIR}/etc/inittab ]; then
>   	sed -i '/GENERIC_SERIAL/a\
>   tty1::respawn:/sbin/getty -L  tty1 0 vt100 # QEMU graphical window' ${TARGET_DIR}/etc/inittab
>   fi
> +
> +# Mount debugfs on boot
> +echo "debugfs     /sys/kernel/debug debugfs defaults 0 0" >> ${TARGET_DIR}/etc/fstab
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-02-13 11:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-02  3:17 [Buildroot] [PATCH] board: x86_64: Enable and mount debugfs Joel Stanley
2022-02-13 11:07 ` Arnout Vandecappelle

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.