All of lore.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi@redhat.com>
To: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
Cc: Steven Rostedt <rostedt@goodmis.org>,
	linux-trace-users@vger.kernel.org, KVM list <kvm@vger.kernel.org>,
	Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Subject: Re: trace_printk() support in trace-cmd
Date: Sun, 12 Dec 2010 19:47:31 +0200	[thread overview]
Message-ID: <4D050AB3.7070604@redhat.com> (raw)
In-Reply-To: <20101212174317.GC2478@ghostprotocols.net>

On 12/12/2010 07:43 PM, Arnaldo Carvalho de Melo wrote:
> Em Sun, Dec 12, 2010 at 07:42:06PM +0200, Avi Kivity escreveu:
> >  On 12/12/2010 07:36 PM, Arnaldo Carvalho de Melo wrote:
> >  >Em Sun, Dec 12, 2010 at 06:35:24PM +0200, Avi Kivity escreveu:
> >  >>   On 11/23/2010 05:45 PM, Steven Rostedt wrote:
> >  >>   >Again, the work around is to replace your trace_printks() with
> >  >>   >__trace_printk(_THIS_IP_, ...) or just modify the trace_printk() macro
> >  >>   >in include/linux/kernel.h to always use the __trace_printk() version.
> >  >>
> >  >>   This works; I'm using it for now (I tried to use 'perf probe', but I
> >  >>   get unpredictable results, like null pointer derefs).
> >  >
> >  >Can you tell us which functions, environment, etc?
> >
> >  Something around 2.6.27-rc4; example functions are FNAME(fetch) in
> >  arch/x86/kvm/paging_tmpl.h; compiled modular (which was Steven's
> >  guess as to why it fails).
> >
> >  (note, the failure is with trace-cmd, not /sys/kernel/debug/tracing).
>
> I mean the "I tried to use 'perf probe'" part.

Well, same, more or less.

   perf probe -m kvm --add 'fetch_access=paging64_fetch 
pt_access=gw->pt_access pte_access=gw->pte_access dirty'

would return garbage for gw->*, and the log would show the exception 
handler called.  gw is most certainly valid.

-- 
error compiling committee.c: too many arguments to function


  reply	other threads:[~2010-12-12 17:47 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-15 17:09 trace_printk() support in trace-cmd Avi Kivity
2010-11-15 17:11 ` Steven Rostedt
2010-11-15 17:31   ` Avi Kivity
2010-11-15 18:33     ` Steven Rostedt
2010-11-16  9:19       ` Avi Kivity
2010-11-16 13:11         ` Steven Rostedt
2010-11-16 15:12           ` Steven Rostedt
2010-11-23 10:52             ` Avi Kivity
2010-12-12 16:10               ` Avi Kivity
2010-12-13 15:26                 ` Steven Rostedt
2010-12-13 15:43                   ` Avi Kivity
2010-12-13 16:28                     ` Steven Rostedt
2010-12-13 17:05                       ` Avi Kivity
2010-12-13 17:05                         ` Avi Kivity
2010-11-16 15:13 ` Steven Rostedt
2010-11-23 11:04   ` Avi Kivity
2010-11-23 14:30     ` Steven Rostedt
2010-11-23 14:37       ` Avi Kivity
2010-11-23 15:45         ` Steven Rostedt
2010-12-12 16:35           ` Avi Kivity
2010-12-12 17:36             ` Arnaldo Carvalho de Melo
2010-12-12 17:42               ` Avi Kivity
2010-12-12 17:43                 ` Arnaldo Carvalho de Melo
2010-12-12 17:47                   ` Avi Kivity [this message]
2010-12-13 11:20                     ` Masami Hiramatsu
2010-12-16 10:20                       ` Avi Kivity
2010-12-16 13:36                         ` Masami Hiramatsu

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=4D050AB3.7070604@redhat.com \
    --to=avi@redhat.com \
    --cc=acme@ghostprotocols.net \
    --cc=kvm@vger.kernel.org \
    --cc=linux-trace-users@vger.kernel.org \
    --cc=masami.hiramatsu.pt@hitachi.com \
    --cc=rostedt@goodmis.org \
    /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.