From: Arnaldo Carvalho de Melo <acme@kernel.org>
To: Taeung Song <treeze.taeung@gmail.com>
Cc: linux-kernel@vger.kernel.org, taeung@kosslab.kr,
Jiri Olsa <jolsa@kernel.org>, Namhyung Kim <namhyung@kernel.org>
Subject: Re: [PATCH v5 1/3] perf config: Check not only section->from_system_config but also item's
Date: Fri, 8 Sep 2017 11:31:48 -0300 [thread overview]
Message-ID: <20170908143148.GH11725@kernel.org> (raw)
In-Reply-To: <1504754325-9724-1-git-send-email-treeze.taeung@gmail.com>
Em Thu, Sep 07, 2017 at 12:18:45PM +0900, Taeung Song escreveu:
> Currently only section->from_system_config is being checked multiple times.
> items->from_system_config should be also checked, so fix it.
Reworded the cset log as:
perf config: Check not only section->from_system_config but also item's
Currently section->from_system_config is being checked multiple times.
item->from_system_config should be checked instead, when iterating thru
the items in a section. Fix it.
applied.
- Arnaldo
> Cc: Jiri Olsa <jolsa@kernel.org>
> Cc: Namhyung Kim <namhyung@kernel.org>
> Signed-off-by: Taeung Song <treeze.taeung@gmail.com>
> ---
> tools/perf/builtin-config.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/perf/builtin-config.c b/tools/perf/builtin-config.c
> index 3ddcc6e..a1d82e3 100644
> --- a/tools/perf/builtin-config.c
> +++ b/tools/perf/builtin-config.c
> @@ -59,7 +59,7 @@ static int set_config(struct perf_config_set *set, const char *file_name,
> fprintf(fp, "[%s]\n", section->name);
>
> perf_config_items__for_each_entry(§ion->items, item) {
> - if (!use_system_config && section->from_system_config)
> + if (!use_system_config && item->from_system_config)
> continue;
> if (item->value)
> fprintf(fp, "\t%s = %s\n",
> --
> 2.7.4
next prev parent reply other threads:[~2017-09-08 14:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-07 3:18 [PATCH v5 1/3] perf config: Check not only section->from_system_config but also item's Taeung Song
2017-09-08 14:31 ` Arnaldo Carvalho de Melo [this message]
2017-09-13 7:45 ` [tip:perf/urgent] " tip-bot for Taeung Song
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=20170908143148.GH11725@kernel.org \
--to=acme@kernel.org \
--cc=jolsa@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=namhyung@kernel.org \
--cc=taeung@kosslab.kr \
--cc=treeze.taeung@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox