All of lore.kernel.org
 help / color / mirror / Atom feed
* Feedback on my development setup
@ 2024-04-16 12:38 Josh Marshall
  2024-04-16 14:56 ` ngn
  0 siblings, 1 reply; 25+ messages in thread
From: Josh Marshall @ 2024-04-16 12:38 UTC (permalink / raw)
  To: linux-newbie

Hello all,

I am trying to work on and improve some aspects of the "fanotify"
parts of the VFS subsystem with Amir Goldstein being the person I
brought these to.  Amir has me doing some work to see what is going on
since I have observed some unexpected behaviors.  In doing so, I have
cobbled together the following iteration pattern which I would like
feedback on.  It doesn't feel like it is as concise as it should be in
practice and I am hoping someone can offer pointers on how to improve
it.  By the end of this, I would like to have a fully documented and
replicable script to share for certain kinds of non-hardware kernel
development like I am doing here.  As a word of warning, I haven't
gotten to fully test this either.  It feels like I'm trying to cut
down a hydra with everything new I need to account for.

```
Source:
https://github.com/archlinux/arch-boxes

Term 1:
guestmount -w -a ~/Downloads/Arch-Linux-x86_64-basic.qcow2 -m
/dev/sda3 ~/mnt/arch/
<copy sources, files, perform compilation steps, etc as needed to
inside the VM image as needed each development iteration>
cp ~/mnt/ arch/home/arch/linux/boot/x86/vmlinux .
umount ~/mnt/arch

Term 2:
kvm -s -cpu host -display gtk -vga qxl -accel kvm -drive
format=qcow2,file=$HOME/Downloads/Arch-Linux-x86_64-basic.qcow2 -m 1G
-smp 2 -S

Term 3:
gdb vmlinux
: target remote:1234
<set break points>
: continue

Qemu:
<time sensitive, boot into the right kernel if available>
<perform development tasks>
```

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

end of thread, other threads:[~2024-04-25 20:14 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-16 12:38 Feedback on my development setup Josh Marshall
2024-04-16 14:56 ` ngn
2024-04-16 15:03   ` Josh Marshall
2024-04-16 15:21     ` ngn
2024-04-17 16:11       ` Josh Marshall
     [not found]         ` <CAPzh0z8RySn429XYQHoP_c9UA+pb6SLHGhH40vQDhc3P2xiysQ@mail.gmail.com>
2024-04-17 21:18           ` Josh Marshall
2024-04-18 15:35             ` ngn
2024-04-18 19:15               ` Josh Marshall
2024-04-18 19:27                 ` Josh Marshall
2024-04-18 19:52                   ` Josh Marshall
2024-04-18 21:40                     ` Josh Marshall
2024-04-19 16:14                       ` ngn
2024-04-23 15:34                         ` Josh Marshall
2024-04-23 16:08                           ` Pranjal Singh
2024-04-23 16:39                           ` Bilbao, Carlos
2024-04-23 17:43                             ` Josh Marshall
2024-04-25  5:37                               ` Josh Marshall
2024-04-25 14:36                                 ` Bilbao, Carlos
2024-04-25 14:54                                   ` Josh Marshall
2024-04-25 15:14                                     ` Jonathan Corbet
     [not found]                                       ` <CAFkJGReoq2s+LR1kj1hj8QvsKsEhk+CLYtCXV=DQTjTqan3DOg@mail.gmail.com>
2024-04-25 16:59                                         ` Carlos Bilbao
2024-04-25 17:08                                       ` Josh Marshall
2024-04-25 20:14                                         ` Theodore Ts'o
2024-04-25 20:02                             ` Theodore Ts'o
2024-04-25 14:32                           ` Thomas Bertschinger

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.