All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mahesh J Salgaonkar <mahesh@linux.vnet.ibm.com>
To: Ken'ichi Ohmichi <oomichi@mxs.nes.nec.co.jp>
Cc: V Srivatsa <vsrivatsa@in.ibm.com>,
	Ananth N Mavinakayanahalli <ananth@in.ibm.com>,
	kexec@lists.infradead.org, Dave Anderson <anderson@redhat.com>,
	Prerna Saxena <prerna@linux.vnet.ibm.com>,
	Reinhard <BUENDGEN@de.ibm.com>
Subject: Re: [PATCH v2 5/8] makedumpfile: Read and process filter commands from config file.
Date: Thu, 11 Aug 2011 17:21:24 +0530	[thread overview]
Message-ID: <20110811115124.GA2817@in.ibm.com> (raw)
In-Reply-To: <20110811172900.ad5c50b6.oomichi@mxs.nes.nec.co.jp>

On 2011-08-11 17:29:00 Thu, Ken'ichi Ohmichi wrote:
> 
> Hi Mahesh,
> 
> On Thu, 11 Aug 2011 14:17:51 +0900
> "Ken'ichi Ohmichi" <oomichi@mxs.nes.nec.co.jp> wrote:
> > > 
> > > BTW makedumpfile.c has become a large file which is bigger than 10KLine,
> > > and I will separate it to some files for the maintenance.
> > 
> > To shrink makedumpfile.c file, I made a prototype patch.
> > (commit 40f5724152047a12e4ac9db51d9f9e00e7a79ebe of filter-out-devel branch)
> > And I'd like to see your opinion.
> > 
> > You added sym_in_module() call into get_symbol_addr() to look for module
> > symbol. And I will move the call to resolve_config_entry() because I guess
> > sym_in_module() is used only for resolve_config_entry():
> > 
> > @@ -8448,13 +7326,21 @@ resolve_config_entry(struct config_entry *ce, unsigned long long base_addr,
> >                                                 char *base_struct_name)
> >  {
> >         char buf[BUFSIZE + 1];
> > +       unsigned long long symbol;
> > 
> >         if (ce->flag & SYMBOL_ENTRY) {
> >                 /* find the symbol info */
> >                 if (!ce->name)
> >                         return FALSE;
> > 
> > -               ce->sym_addr = get_symbol_addr(ce->name);
> > +               /*
> > +                * If we are looking for module symbol then traverse through
> > +                * mod_st.modules for symbol lookup
> > +                */
> > +               if (sym_in_module(ce->name, &symbol))
> > +                       ce->sym_addr = symbol;
> > +               else
> > +                       ce->sym_addr = get_symbol_addr(ce->name);
> >                 if (!ce->sym_addr) {
> >                         ERRMSG("Config error at %d: Can't find symbol '%s'.\n",
> >                                                         ce->line, ce->name);
> > ---
> 
> Sorry, the above mail is not clear.
> My question is,
> 	Do you think this change is right ?

My intention was to hide it under get_symbol_addr(). But yes, since it's
only used by resolve_config_entry() we can safely move it there.

Thanks,
-Mahesh.

-- 
Mahesh J Salgaonkar

_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

  reply	other threads:[~2011-08-11 11:51 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-17 20:04 [PATCH v2 5/8] makedumpfile: Read and process filter commands from config file Mahesh J Salgaonkar
2011-08-11  2:07 ` Ken'ichi Ohmichi
2011-08-11  5:17   ` Ken'ichi Ohmichi
2011-08-11  8:29     ` Ken'ichi Ohmichi
2011-08-11 11:51       ` Mahesh J Salgaonkar [this message]
2011-08-11 23:51         ` Ken'ichi Ohmichi
2011-08-11 12:03     ` Mahesh J Salgaonkar
2011-08-12  7:33       ` Ken'ichi Ohmichi
2011-08-11 11:33   ` Mahesh Jagannath Salgaonkar
2011-08-12  0:08     ` Ken'ichi Ohmichi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110811115124.GA2817@in.ibm.com \
    --to=mahesh@linux.vnet.ibm.com \
    --cc=BUENDGEN@de.ibm.com \
    --cc=ananth@in.ibm.com \
    --cc=anderson@redhat.com \
    --cc=kexec@lists.infradead.org \
    --cc=oomichi@mxs.nes.nec.co.jp \
    --cc=prerna@linux.vnet.ibm.com \
    --cc=vsrivatsa@in.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.