Skip to main content
17 events
when toggle format what by license comment
Jun 3, 2021 at 13:54 comment added Ciro Santilli OurBigBook.com @user786 in general you just the only/easiest solution is to just setup userspace as well and run your content. My preferred way is with a Buildroot userland as shown at: github.com/cirosantilli/linux-kernel-module-cheat
Jun 3, 2021 at 12:15 comment added user786 I just like to ask since it wont be ubanu os. There is no userspace, just compiled kernel with debug flags so how to test the kernel tcp stack. How do I find the ip so I can send packets from some other system to check target compiled running kernel in qemu. Can I specify in qemu t)which ethernet device to use as hardware ?so Realtek Ethernet driver can be debugged. Other wise r8169 pci network driver will not be used and not running.
Jun 3, 2021 at 12:02 comment added Ciro Santilli OurBigBook.com @user786 great! Is there any specific reason why stackoverflow.com/questions/4943857/… won't work?
Jun 3, 2021 at 11:38 comment added user786 So are there any chances I can run and debug compiled kernel using qemu and check the kernel tcp stack 's functions call-stack -- since there will be only kernel running in Qemu but can I see the packet going way up the kernel stack following the driver 's rtl_rx napi_gro_receive function call
Jun 3, 2021 at 11:38 comment added user786 I have successfully compiled the kernel with debug flags from your above link answer. thank u very much for this. now I want to debug Ethernet driver from realTek thats my nic card driver. Now I want to debug realTek r8169 Ethernet driver same way as the link answer which u gave. I know there is function rtl_rx in r8169_main.c file which called from NAPI poll handler. and inside that rtl_rx function napi_gro_receive(&tp->napi, skb); called and napi_gro_receive I beleive forward the packet up the kernel stack.
Jun 1, 2021 at 17:42 comment added Ciro Santilli OurBigBook.com @user786 see the code given in this answer.
Jun 1, 2021 at 17:24 comment added user786 I mean where should I type CONFIG_DEBUG_INFO=y
Jun 1, 2021 at 14:34 comment added Ciro Santilli OurBigBook.com @user786 OK, and what do you mean by "I plan to write in makefile the debug flags=y" more precisely? CONFIG_DEBUG_INFO=y or something else?
Jun 1, 2021 at 14:32 comment added user786 File downloaded with linux source code from kernel.org that I plan to compile and install with make command..
Jun 1, 2021 at 12:59 comment added user786 There is file with name Makefile which inside in the kernel downloaded source folder. For example when I downloaded linux-5.12.6 its inside that folder
Jun 1, 2021 at 12:43 comment added Ciro Santilli OurBigBook.com @user786 which makefile? Linux kernel or your own? By debug flags do you mean a standard kernel config, or something else? For standard kernel configs, no need to patch makefiles. For non standard, then you might need to hack kernel source I suppose.
Jun 1, 2021 at 12:20 comment added user786 I plan to write in makefile the debug flags=y. Please confirm is this also correct way that I plan
Jun 1, 2021 at 11:09 comment added Ciro Santilli OurBigBook.com @user786 not sure about this. grep the Kconfig files to see if any interesting options show up. You can also try to search inside make menuconfig with /.
Jun 1, 2021 at 11:04 comment added user786 thanks for help in comments on this question stackoverflow.com/questions/4943857/… also can u please let me know which flag in makefile I have to add like config_XYZ=y to disable linux kernel tcp stack since I like to give a try to Userspace TCP stack that I downloaded
Jun 18, 2018 at 10:51 history edited Ciro Santilli OurBigBook.com CC BY-SA 4.0
added 241 characters in body
Jun 18, 2018 at 10:10 history edited Ciro Santilli OurBigBook.com CC BY-SA 4.0
added 17 characters in body
Jun 18, 2018 at 9:59 history answered Ciro Santilli OurBigBook.com CC BY-SA 4.0