lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Mon, 05 Apr 2010 10:30:24 +0200
From:	Eric Dumazet <eric.dumazet@...il.com>
To:	Koki Sanagi <sanagi.koki@...fujitsu.com>
Cc:	netdev@...r.kernel.org, izumi.taku@...fujitsu.com,
	kaneshige.kenji@...fujitsu.com, davem@...emloft.net,
	nhorman@...driver.com, jeffrey.t.kirsher@...el.com,
	jesse.brandeburg@...el.com, bruce.w.allan@...el.com,
	alexander.h.duyck@...el.com, peter.p.waskiewicz.jr@...el.com,
	john.ronciak@...el.com
Subject: Re: [RFC PATCH 2/2] netdev: an usage example on igb

Le lundi 05 avril 2010 à 15:54 +0900, Koki Sanagi a écrit :
> This patch is usage example of previous patch's buffer on igb.
> The output is like below.
> 
> # cat /sys/kernel/debug/ndrvbuf/igb-trace-0000\:03\:00.0/buffer
> [  1] 50462.369207: clean_tx qidx=1 ntu=154->156
> [  0] 50462.369241: clean_rx qidx=0 ntu=111->112
> [  0] 50462.369250: xmit qidx=1 ntu=156->158
> [  1] 50462.369256: clean_tx qidx=1 ntu=156->158
> [  1] 50462.369342: clean_rx qidx=0 ntu=113->114
> [  1] 50462.369439: clean_rx qidx=0 ntu=114->115
> 
> This example outputs original print style, because it sets original print
> function(igb_trace_read) when registered.
> 
> register_ndrvbuf(buname, 1000000, igb_trace_read);
> 
> If you set NULL to arg3, outputs by ndrvbuf default style.
> If you set 0 to size(arg2), recording is disabled at first(but small buffer is
> alloced).
> When you set non-zero to size, recording becomes enabled.
> 
> Signed-off-by: Koki Sanagi <sanagi.koki@...fujitsu.com>
> ---
>   drivers/net/igb/Makefile    |    2 +-
>   drivers/net/igb/igb.h       |    1 +
>   drivers/net/igb/igb_main.c  |   10 +++++-
>   drivers/net/igb/igb_trace.c |   81 +++++++++++++++++++++++++++++++++++++++++++
>   drivers/net/igb/igb_trace.h |   21 +++++++++++
>   5 files changed, 113 insertions(+), 2 deletions(-)
> 

This depends on NDRVBUF, yet I see no Kconfig change in this patch.



--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ