From: Taeung Song <treeze.taeung@gmail.com>
To: Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: linux-kernel@vger.kernel.org, Jiri Olsa <jolsa@kernel.org>,
Namhyung Kim <namhyung@kernel.org>
Subject: Re: [PATCH v2 3/4] perf config: Correctly check whether it is from system config
Date: Tue, 9 May 2017 06:58:08 +0900 [thread overview]
Message-ID: <284fa039-9dd0-3fc2-05e0-2d4c0dc61758@gmail.com> (raw)
In-Reply-To: <20170508163952.GJ7891@kernel.org>
Hi Arnaldo,
On 05/09/2017 01:39 AM, Arnaldo Carvalho de Melo wrote:
> Em Mon, May 08, 2017 at 08:07:45PM +0900, Taeung Song escreveu:
>> Currently section's from_system_config was checked twice.
>
> you mean:
>
> "The item->from_system_config is not being checked when iterating over
> section->items, instead section->from_system_config is being checked
> multiple times, fix this"
>
> ?
Yes, it is.
Change the commit message to be more proper ?
Thanks,
Taeung
>
>> So adjust it in order to correctly check not only section's
>> but also item's from_system_config.
>>
>> 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 0d38599..2a6ca0d 100644
>> --- a/tools/perf/builtin-config.c
>> +++ b/tools/perf/builtin-config.c
>> @@ -56,7 +56,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
prev parent reply other threads:[~2017-05-08 21:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-08 11:07 Taeung Song
2017-05-08 16:39 ` Arnaldo Carvalho de Melo
2017-05-08 21:58 ` Taeung Song [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=284fa039-9dd0-3fc2-05e0-2d4c0dc61758@gmail.com \
--to=treeze.taeung@gmail.com \
--cc=acme@kernel.org \
--cc=jolsa@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=namhyung@kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®