Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Jan 2005 16:10:22 +0100
From:      Alexander Leidinger <Alexander@Leidinger.net>
To:        current@freebsd.org
Subject:   We have a lot of duplicated code in the kernel
Message-ID:  <20050129161022.0de822fe@Magellan.Leidinger.net>

next in thread | raw e-mail | index | archive | help
Hi,

http://www.leidinger.net/FreeBSD/simian-20-sys-20050129.log (253k)
contains a log of duplicated code in /sys (-current as of today). The
file starts with files with 20 consecutive lines of duplicated code and
ends with two files which share 1108 lines of code.

If I let the program detect 6 consecutive lines of duplicated code, it
is also able to detect possible code reuse in the same file, but it also
prints a lot of "noise" then.

I've filtered the list for some false positives (twa_fwimg, trlld?m,
if_patm_rtables), if someone else notices some more files please tell me
about them and I add them to the filter.

Bye,
Alexander.

-- 
            It is easier to fix Unix than to live with NT.

http://www.Leidinger.net                       Alexander @ Leidinger.net
  GPG fingerprint = C518 BC70 E67F 143F BE91  3365 79E2 9C60 B006 3FE7



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050129161022.0de822fe>