Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MJs6Z-0003Hu-BA for mharc-grub-devel@gnu.org; Thu, 25 Jun 2009 12:47:19 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MJs6X-0003Du-HH for grub-devel@gnu.org; Thu, 25 Jun 2009 12:47:17 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MJs6T-00033s-Rh for grub-devel@gnu.org; Thu, 25 Jun 2009 12:47:17 -0400 Received: from [199.232.76.173] (port=37520 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MJs6T-00033f-OB for grub-devel@gnu.org; Thu, 25 Jun 2009 12:47:13 -0400 Received: from mail-bw0-f217.google.com ([209.85.218.217]:63782) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MJs6T-00055k-5z for grub-devel@gnu.org; Thu, 25 Jun 2009 12:47:13 -0400 Received: by bwz17 with SMTP id 17so1865786bwz.42 for ; Thu, 25 Jun 2009 09:47:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=Ip1BGOrMOXlY2jLJeeVV3hGbXtqPnLFhdWFNpiXv7SA=; b=mndaRfyAAoK81YpEr+yqH8tDNQ6WpWZ4tg8n1XC3Ud8sMXAxyFkAHuUqAP8GZm7KXZ IFYCaBStK6Zmq0bERj4Qu/GpqtKKP/JUCTsD6Yt3fH7ra6JeXoan4KAQV9K4Kfmopq0q axLUxXmqOcI3uCti6JKzi+AB+QXSsy7tdOZJA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=WhFG8QQoti/gonPlgNUEEvHsGJuRl5Ok6ZUTeV0rb5pdRA0BBI6i5Lf+34zlkFRy4N 1KKJMZVoTzYO/VhM+mZFXrs3movfhfaavTjhZzN9TkVYesdm91h0cQnZg/tacJMZgFlE HCA2ZCuMIFNXY1LBHA7oEyJihlwrjSJEvgc3k= MIME-Version: 1.0 Received: by 10.204.55.199 with SMTP id v7mr2587884bkg.141.1245948432179; Thu, 25 Jun 2009 09:47:12 -0700 (PDT) In-Reply-To: <200906250650.56025.colin@gibibit.com> References: <20090625123659.GA6874@thorin> <200906250650.56025.colin@gibibit.com> Date: Thu, 25 Jun 2009 18:47:12 +0200 Message-ID: From: "Vladimir 'phcoder' Serbinenko" To: The development of GRUB 2 Content-Type: multipart/alternative; boundary=001636c5a90cb56469046d2ef94c X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: [RFC] New menu design based on MVC X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Jun 2009 16:47:18 -0000 --001636c5a90cb56469046d2ef94c Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On Thu, Jun 25, 2009 at 3:50 PM, Colin D Bennett wrote: > Robert Millan wrote on Thursday 25 June 2009: > > On Thu, Jun 25, 2009 at 12:07:18PM +0800, Bean wrote: > > > Hi, > > > > > > The current menu system is a little chaotic, the various components > > > are mixed together which make it difficult to maintain and extend. > > > Therefore, I propose a new design which seperates model, view and > > > controller. > > I would definitely like to get my graphical menu stuff committed before you > make such changes... :-) > > > Isn't Colin already working on a redesign of the menu? > > Yes, but I haven't drastically changed the design of the core menu system > except to add the concept of a "menu viewer" so that the text menu and > graphical menu viewers can be treated uniformly at a higher level. > > In fact, I am nearly ready to commit my graphical menu changes. I was > hoping > to track down an apparent memory leak that shows up when switching themes > many > times in a row, but I don't have to let that prevent me from committing the > current state of things. I know Vladimir (phcoder) has done some work to > get > an SDL video driver working for grub-emu; I am hoping that I can somehow > use > memory debugging tools to track down my memory leak. > > Does anyone have an idea if a tool like Valgrind would work with grub-emu > to > find the source of memory leaks? I guess it should if grub-emu is using > libc's malloc() and free() functions, right? > Right. It works well. In the mail in which I sent you a WIP patch I also gave you a command to debug memory leaks: valgrind --log-file=log --leak-check=full --leak-resolution=high ./grub-emu -r hd0 For the moment I have to do some things not related to grub. When I have time again I'll improve the patch (current version together with your patch is available at http://repo.or.cz/w/grub2/phcoder.git?a=shortlog;h=refs/heads/collin%2Bnewconf%2Bsdl) > > Regards, > Colin > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > -- Regards Vladimir 'phcoder' Serbinenko Personal git repository: http://repo.or.cz/w/grub2/phcoder.git --001636c5a90cb56469046d2ef94c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On Thu, Jun 25, 2009 at 3:50 PM, Colin D= Bennett <colin@g= ibibit.com> wrote:
Robert Millan wrote on Thursday 25 June 2009:
> On Thu, Jun 25, 2009 at 12:07:18PM +0800, Bean wrote= :
> > Hi,
> >
> > The current menu system is a little chaotic, the various componen= ts
> > are mixed together which make it difficult to maintain and extend= .
> > Therefore, I propose a new design which seperates model, view and=
> > controller.

I would definitely like to get my graphical menu stuff committed befo= re you
make such changes... :-)

> Isn't Colin already working on a redesign of the menu?

Yes, but I haven't drastically changed the design of the core men= u system
except to add the concept of a "menu viewer" so that the text men= u and
graphical menu viewers can be treated uniformly at a higher level.

In fact, I am nearly ready to commit my graphical menu changes. =A0I was ho= ping
to track down an apparent memory leak that shows up when switching themes m= any
times in a row, but I don't have to let that prevent me from committing= the
current state of things. =A0I know Vladimir (phcoder) has done some work to= get
an SDL video driver working for grub-emu; I am hoping that I can somehow us= e
memory debugging tools to track down my memory leak.

Does anyone have an idea if a tool like Valgrind would work with grub-emu t= o
find the source of memory leaks? =A0I guess it should if grub-emu is using<= br> libc's malloc() and free() functions, right?
Right. It works well. In the mail in which I sent you a W= IP patch=A0 I also gave you a command to debug memory leaks:
valgrind --= log-file=3Dlog --leak-check=3Dfull --leak-resolution=3Dhigh ./grub-emu -r h= d0
For the moment I have to do some things not related to grub. When I have ti= me again I'll improve the patch (current version together with your pat= ch is available at http://repo.or.cz/w/grub2/phco= der.git?a=3Dshortlog;h=3Drefs/heads/collin%2Bnewconf%2Bsdl )

Regards,
Colin


_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel



--
Regards
= Vladimir 'phcoder' Serbinenko

Personal git repository: http://repo.or.cz/w/grub2/phco= der.git
--001636c5a90cb56469046d2ef94c--