All of lore.kernel.org
 help / color / mirror / Atom feed
From: Markus Metzger <markus.t.metzger@googlemail.com>
To: Oleg Nesterov <oleg@redhat.com>
Cc: "Metzger, Markus T" <markus.t.metzger@intel.com>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"mingo@elte.hu" <mingo@elte.hu>,
	"tglx@linutronix.de" <tglx@linutronix.de>,
	"hpa@zytor.com" <hpa@zytor.com>,
	"roland@redhat.com" <roland@redhat.com>,
	"eranian@googlemail.com" <eranian@googlemail.com>,
	"Villacis, Juan" <juan.villacis@intel.com>,
	"ak@linux.jf.intel.com" <ak@linux.jf.intel.com>
Subject: Re: [patch 1/14] x86, ptrace: add arch_ptrace_report_exit
Date: Fri, 27 Mar 2009 18:37:28 +0100	[thread overview]
Message-ID: <1238175448.6077.22.camel@raistlin> (raw)
In-Reply-To: <20090327170709.GB25762@redhat.com>

On Fri, 2009-03-27 at 18:07 +0100, Oleg Nesterov wrote:
> On 03/27, Metzger, Markus T wrote:
> >
> > >-----Original Message-----
> > >From: Oleg Nesterov [mailto:oleg@redhat.com]
> > >
> > >This needs Rolan'd review.
> > >
> > >But I'd say this has nothing to do with tracehooks. And why do
> > >you pass *exit_code to arch_ptrace_report_exit() ?
> > >
> > >Just add arch_ptrace_report_exit(void) into do_exit() ?
> > >
> > >From the 3/14 patch:
> > >
> > >	#define arch_ptrace_report_exit(code) x86_ptrace_report_exit(code)
> > >
> > >	void x86_ptrace_report_exit(long exit_code)
> > >	{
> > >	       ptrace_bts_exit();
> > >	}
> > >
> > >This is a bit strange. Why do we need 2 functions, ptrace_bts_exit() and
> > >x86_ptrace_report_exit() which just calls the first one?
> >
> > I did not want to take any shortcuts. I try to maintain the structure
> > general_function()->ptrace_report()->arch_ptrace_report().
> 
> I see. And honestly, this doesn't look good to me. Yes, this is subjective.
> 
> Say, Regardless of CONFIG_X86_PTRACE_BTS we have the non-empty and non-inline
> x86_ptrace_untrace() which just calls ptrace_bts_untrace(). And ptrace_bts_untrace()
> depends on CONFIG_X86_PTRACE_BTS.
> 
> But this is minor.
> 
> > Recently, tracehook_report_whatever() calls were added which either do the
> > ptrace work directly or call a ptrace function. I try to use those calls, where possible.
> 
> Up to Roland, but I still think tracehook_report_whatever() is not the
> good place for this stuff. And tracehooks will be changed soon by utrace.
> 
> In any case I don't understand why you added yet another helper, you could
> just add arch_ptrace_report_exit() into tracehook_report_exit().

Fine with me.
I did not want to add some arch_ptrace stuff in tracehook, but I can
change that.

regards,
markus.



      reply	other threads:[~2009-03-27 17:37 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-27  8:46 [patch 1/14] x86, ptrace: add arch_ptrace_report_exit Markus Metzger
2009-03-27 14:19 ` Oleg Nesterov
2009-03-27 15:12   ` Metzger, Markus T
2009-03-27 17:07     ` Oleg Nesterov
2009-03-27 17:37       ` Markus Metzger [this message]

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=1238175448.6077.22.camel@raistlin \
    --to=markus.t.metzger@googlemail.com \
    --cc=ak@linux.jf.intel.com \
    --cc=eranian@googlemail.com \
    --cc=hpa@zytor.com \
    --cc=juan.villacis@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=markus.t.metzger@intel.com \
    --cc=mingo@elte.hu \
    --cc=oleg@redhat.com \
    --cc=roland@redhat.com \
    --cc=tglx@linutronix.de \
    /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.