From: David Howells <dhowells@redhat.com>
To: Leon Romanovsky <leon@leon.nu>
Cc: dhowells@redhat.com, Linux-MM <linux-mm@kvack.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
linux-cachefs <linux-cachefs@redhat.com>,
linux-afs <linux-afs@lists.infradead.org>
Subject: Re: [RFC] Refactor kenter/kleave/kdebug macros
Date: Mon, 18 May 2015 16:20:36 +0100 [thread overview]
Message-ID: <28901.1431962436@warthog.procyon.org.uk> (raw)
In-Reply-To: <CALq1K=KTGd5Xdj88PmQM3H3aSpakLbUdG=usi+7g9zmN+Ms4Xw@mail.gmail.com>
Leon Romanovsky <leon@leon.nu> wrote:
> >> Additionally, It looks like the output of these macros can be viewed by
> >> ftrace mechanism.
> >
> > *blink* It can?
> I was under strong impression that "function" and "function_graph"
> tracers will give similar kenter/kleave information. Do I miss
> anything important, except the difference in output format?
>
> >
> >> Maybe we should delete them from mm/nommu.c as was pointed by Joe?
> >
> > Why?
> If ftrace is sufficient to get the debug information, there will no
> need to duplicate it.
It isn't sufficient. It doesn't store the parameters or the return value, it
doesn't distinguish the return path in a function when there's more than one,
eg.:
kleave(" = %d [val]", ret);
vs:
kleave(" = %lx", result);
in do_mmap_pgoff() and it doesn't permit you to retrieve data from where the
argument pointers that you don't have pointed to, eg.:
kenter("%p{%d}", region, region->vm_usage);
David
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
WARNING: multiple messages have this Message-ID (diff)
From: David Howells <dhowells@redhat.com>
To: Leon Romanovsky <leon@leon.nu>
Cc: dhowells@redhat.com, Linux-MM <linux-mm@kvack.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
linux-cachefs <linux-cachefs@redhat.com>,
linux-afs <linux-afs@lists.infradead.org>
Subject: Re: [RFC] Refactor kenter/kleave/kdebug macros
Date: Mon, 18 May 2015 16:20:36 +0100 [thread overview]
Message-ID: <28901.1431962436@warthog.procyon.org.uk> (raw)
In-Reply-To: <CALq1K=KTGd5Xdj88PmQM3H3aSpakLbUdG=usi+7g9zmN+Ms4Xw@mail.gmail.com>
Leon Romanovsky <leon@leon.nu> wrote:
> >> Additionally, It looks like the output of these macros can be viewed by
> >> ftrace mechanism.
> >
> > *blink* It can?
> I was under strong impression that "function" and "function_graph"
> tracers will give similar kenter/kleave information. Do I miss
> anything important, except the difference in output format?
>
> >
> >> Maybe we should delete them from mm/nommu.c as was pointed by Joe?
> >
> > Why?
> If ftrace is sufficient to get the debug information, there will no
> need to duplicate it.
It isn't sufficient. It doesn't store the parameters or the return value, it
doesn't distinguish the return path in a function when there's more than one,
eg.:
kleave(" = %d [val]", ret);
vs:
kleave(" = %lx", result);
in do_mmap_pgoff() and it doesn't permit you to retrieve data from where the
argument pointers that you don't have pointed to, eg.:
kenter("%p{%d}", region, region->vm_usage);
David
next prev parent reply other threads:[~2015-05-18 15:20 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-16 17:01 [RFC] Refactor kenter/kleave/kdebug macros Leon Romanovsky
2015-05-16 17:01 ` Leon Romanovsky
2015-05-16 17:09 ` Joe Perches
2015-05-16 17:09 ` Joe Perches
2015-05-16 18:56 ` Leon Romanovsky
2015-05-16 18:56 ` Leon Romanovsky
2015-05-18 10:31 ` David Howells
2015-05-18 10:31 ` David Howells
2015-05-18 13:23 ` Leon Romanovsky
2015-05-18 13:27 ` Leon Romanovsky
2015-05-18 13:27 ` Leon Romanovsky
2015-05-18 13:29 ` David Howells
2015-05-18 13:29 ` David Howells
2015-05-18 13:52 ` Leon Romanovsky
2015-05-18 13:52 ` Leon Romanovsky
2015-05-18 15:20 ` David Howells [this message]
2015-05-18 15:20 ` David Howells
2015-05-18 18:35 ` Leon Romanovsky
2015-05-18 18:35 ` Leon Romanovsky
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=28901.1431962436@warthog.procyon.org.uk \
--to=dhowells@redhat.com \
--cc=leon@leon.nu \
--cc=linux-afs@lists.infradead.org \
--cc=linux-cachefs@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.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.