Re: We have a lot of duplicated code in the kernel

From: Alexander Leidinger (Alexander_at_Leidinger.net)
Date: 01/30/05

  • Next message: Robert Watson: "Re: Devd event from GEOM?"
    Date: Sun, 30 Jan 2005 16:34:20 +0100
    To: Max Laier <max@love2party.net>
    
    

    On Sat, 29 Jan 2005 18:27:17 +0100
    Max Laier <max@love2party.net> wrote:

    > Could you regenerate the list w/o the MD code, as a first step? This might
    > turn up a couple of "easy to fix" cases of shared code.

    Following is how I filter out the unwanted parts. Any ideas how to
    filter out the MD parts without losing the possibility to determine
    duplicated code for a specific architecture? Simian itself doesn't
    offers a good exclude feature.

    ---snip---
            awk <"${log}.bak" '
                    BEGIN {
                            found=0
                            last=""
                    }

                    {
                            if(0 != match($0, "(twa_fwimg|trlld.m|if_patm_rtables)")) {
                                    next;
                            }

                            if(0 != index($0, "Found")) {
                                    found = 1;
                                    last = $0;
                            } else if(0 != index($0, "Processed")) {
                                    found = 0;
                                    print $0;
                            } else {
                                    if(1 == found) {
                                            found = 0;
                                            print last;
                                    }
                                    print $0;
                            }
                    }' >"${log}"
    ---snip---

    ATM I just can suggest to read over the MD parts.

    Bye,
    Alexander.

    -- 
                    Where do you think you're going today?
    http://www.Leidinger.net                       Alexander @ Leidinger.net
      GPG fingerprint = C518 BC70 E67F 143F BE91  3365 79E2 9C60 B006 3FE7
    _______________________________________________
    freebsd-current@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-current
    To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
    

  • Next message: Robert Watson: "Re: Devd event from GEOM?"

    Relevant Pages

    • Re: plonk file
      ... You can always unblock if you think you are losing too much. ... I'm having trouble plonking this MI5 guy because every post is a from ... designed to subvert plonk files. ... Set your filter to get rid of ...
      (rec.sport.billiard)
    • Re: Question about Compression into DAWs
      ... it's like you are recording at 22 bits instead of 24. ... converters, so the bits you're "losing" are noise anyway. ... started your anti-aliasing filter at 24 kHz, ...
      (rec.audio.pro)
    • Re: Large moving average
      ... When you decimate by N you are losing some information. ... This would depend on how good the filter of the Moving Average is. ... avoid aliasing, the decimation might have to be narrower than the ...
      (comp.dsp)
    • Re: Expectations about weight OT
      ... Maybe she is losing that filter between what pops into her mind and ... what comes out of her mouth. ... I don't think my mother's ever had that filter ... ...
      (rec.pets.cats.anecdotes)
    • Re: Keep certain cells from moving
      ... That works perfectly for the formula, but what do I do about losing the ... I apply the filter, but the condition ... freeze the formula in place so that it's not affected by the rows ... hidden by the auto-filter? ...
      (microsoft.public.excel.misc)