From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id 59C918E5D for ; Thu, 21 Jan 2016 09:46:34 +0100 (CET) Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (Postfix) with ESMTPS id AD43D3B75A; Thu, 21 Jan 2016 08:46:33 +0000 (UTC) Received: from sopuli.koti.laiskiainen.org (vpn1-5-192.ams2.redhat.com [10.36.5.192]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u0L8kW07008794; Thu, 21 Jan 2016 03:46:32 -0500 To: "Wiles, Keith" , Matthew Hall , "dev@dpdk.org" References: <569F2A07.9000606@mhcomputing.net> From: Panu Matilainen Message-ID: <56A09AE8.8050308@redhat.com> Date: Thu, 21 Jan 2016 10:46:32 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 Subject: Re: [dpdk-dev] [PKTGEN] fixing weird termio issues that complicate debugging X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jan 2016 08:46:34 -0000 On 01/20/2016 06:26 PM, Wiles, Keith wrote: > On 1/20/16, 12:32 AM, "dev on behalf of Matthew Hall" wrote: > >> Hello, >> >> Since the pktgen code is reindented I am finding time to read through it >> and experiment and see if I can get it working. >> >> I have issues with the init process of pktgen. It is difficult to debug >> it because the init code does a lot of very scary stuff to the terminal >> control / TTY device at inconvenient times in an inconvenient order, and >> in the process damages the debug output and damages the screen of your >> GDB without doing weird things to run GDB on a different TTY. >> >> Of course I am willing to contribute patches and not just complain, but >> first I need some help to follow what is going on. >> >> Here is the problematic call-flow with some explanation what went wrong >> trying it on some community machines outside of its original environment: >> >> 1) it calls printf("\n%s %s\n", wr_copyright_msg(), wr_powered_by()); >> which dumps tons of weird boilerplate of licenses, copyrights, code >> creator, etc. >> >> It is open source and everybody that matters already knows who coded it, >> so is this stuff really that important? This gets in the way when you >> are trying to work on it and I just have to comment it out. > > One problem is a number of people wanted to steal the code and use in > a paid application, so the copyright is some what a requirement. In that case, why is it under a BSD'ish license instead of something like GPL that's designed to prevent it in the first place? Might be too late to change it by now, just wondering. > As you may know I do a lot of debugging on Pktgen and I feel they are > a nuisance. I can try to see if we can clean up these messages, but > do not hold your breath on getting them to be removed. It would make a world of difference if it just printed the copyright etc in a couple of lines during startup, instead of taking over the entire screen for several seconds. This is a whole lot like those anti-piracy ad campaigns on DVDs which you cant skip, so all the *legitimate* users are forced to suffer through them but all the bad guys just rip it out of their copies. DRM that ends up hurting the legitimate users the most is never a good idea. - Panu -