From: Arnaldo Carvalho de Melo <acme@kernel.org>
To: Sihyeon Jang <uneedsihyeon@gmail.com>
Cc: linux-kernel@vger.kernel.org, Jiri Olsa <jolsa@kernel.org>,
Namhyung Kim <namhyung@kernel.org>
Subject: Re: [PATCH] perf kmem: Change a word from migratetype to migrate_type for unity
Date: Thu, 16 Nov 2017 11:14:33 -0300 [thread overview]
Message-ID: <20171116141433.GT8836@kernel.org> (raw)
In-Reply-To: <1510839706-7762-1-git-send-email-uneedsihyeon@gmail.com>
Em Thu, Nov 16, 2017 at 10:41:46PM +0900, Sihyeon Jang escreveu:
> Cc: Jiri Olsa <jolsa@kernel.org>
> Cc: Namhyung Kim <namhyung@kernel.org>
> Signed-off-by: Sihyeon Jang <uneedsihyeon@gmail.com>
Please describe the problem and why such word change is warranted.
Its not enough to say what is being done, you need to say _why_.
And this seems bogus, look:
{ "kmem:mm_page_alloc", perf_evsel__process_page_alloc_event, },
So that function handles:
[root@jouet ~]# grep field.*migrate /sys/kernel/debug/tracing/events/kmem/mm_page_alloc/format
field:int migratetype; offset:24; size:4; signed:1;
[root@jouet ~]#
The field is not named "migrate_type", so your change will _break_ the
'perf kmem' tool, not good :-)
- Arnaldo
> ---
> tools/perf/builtin-kmem.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/perf/builtin-kmem.c b/tools/perf/builtin-kmem.c
> index 557d391..43858cd 100644
> --- a/tools/perf/builtin-kmem.c
> +++ b/tools/perf/builtin-kmem.c
> @@ -786,7 +786,7 @@ static int perf_evsel__process_page_alloc_event(struct perf_evsel *evsel,
> unsigned int order = perf_evsel__intval(evsel, sample, "order");
> unsigned int gfp_flags = perf_evsel__intval(evsel, sample, "gfp_flags");
> unsigned int migrate_type = perf_evsel__intval(evsel, sample,
> - "migratetype");
> + "migrate_type");
> u64 bytes = kmem_page_size << order;
> u64 callsite;
> struct page_stat *pstat;
> --
> 2.7.4
prev parent reply other threads:[~2017-11-16 14:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-16 13:41 [PATCH] perf kmem: Change a word from migratetype to migrate_type for unity Sihyeon Jang
2017-11-16 14:14 ` Arnaldo Carvalho de Melo [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=20171116141433.GT8836@kernel.org \
--to=acme@kernel.org \
--cc=jolsa@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=namhyung@kernel.org \
--cc=uneedsihyeon@gmail.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.