From: Wei Liu <wei.liu2@citrix.com>
To: #PATHANGI JANARDHANAN JATINSHRAVAN# <JATINSHR001@e.ntu.edu.sg>
Cc: Wei Liu <wei.liu2@citrix.com>, Xen-devel List <xen-devel@lists.xen.org>
Subject: Re: Modifying netback.c to produce logs
Date: Tue, 18 Oct 2016 17:06:30 +0100 [thread overview]
Message-ID: <20161018160629.GA3543@citrix.com> (raw)
In-Reply-To: <HK2PR01MB0561E17CDB722E728EBA50D59ED30@HK2PR01MB0561.apcprd01.prod.exchangelabs.com>
On Tue, Oct 18, 2016 at 03:58:34PM +0000, #PATHANGI JANARDHANAN
JATINSHRAVAN# wrote:
> Hi,
>
> I've been playing around with the netback.c file in order to produce
> some log statements with dimes to better understand when each function
> in the file is called and I was having some trouble actually getting
> them to show up. I've written log statements in the following
> functions using the printk function at the beginning of each function
> below:
>
> 1.xenvif_rx_meta *get_next_rx_buffer()
>
> 2.void xenvif_rx_action()
>
> 3.int xenvif_tx_submit()
>
> 4.void xenvif_wait_for_rx_work()
>
> 5.int xenvif_kthread_guest_rx()
>
> The I've not actually been able to see the log statements using dmesg
> at all. I've inserted the en_netback module in the kernel and checked
> that it is being used by the VM with the command lsmod | grep
> xen_netback.
>
> I've booted up my virtual machine, and run a simple client server
> socket program in localhost within the VM and still not seen a single
> log message from the netback.c file being printed.
>
Make sure traffic leaves your VM, otherwise netback is not in the path.
My understanding from you description is that you run both client and
server in the VM, which means the traffic probably never reaches
netback.
You can try to run the server in Dom0 and client in DomU.
Wei.
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
next prev parent reply other threads:[~2016-10-18 16:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-18 15:58 Modifying netback.c to produce logs #PATHANGI JANARDHANAN JATINSHRAVAN#
2016-10-18 16:06 ` Wei Liu [this message]
-- strict thread matches above, loose matches on Subject: below --
2016-10-18 15:28 #PATHANGI JANARDHANAN JATINSHRAVAN#
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20161018160629.GA3543@citrix.com \
--to=wei.liu2@citrix.com \
--cc=JATINSHR001@e.ntu.edu.sg \
--cc=xen-devel@lists.xen.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.