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
| ||
|
Date: Tue, 06 Apr 2010 14:40:52 +0900 From: Koki Sanagi <sanagi.koki@...fujitsu.com> To: Eric Dumazet <eric.dumazet@...il.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 (2010/04/05 17:30), Eric Dumazet wrote: > 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. > This igb can exist without ndrvbuf. If ndrvbuf modules is not loaded, igb operates originally. So this doesn't depend on ndrvbuf. -- 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