From: Shreyas B Prabhu <shreyas@linux.vnet.ibm.com>
To: Preeti Murthy <preeti.lkml@gmail.com>, rostedt@goodmis.org
Cc: Paul McKenney <paulmck@linux.vnet.ibm.com>,
LKML <linux-kernel@vger.kernel.org>,
Ingo Molnar <mingo@redhat.com>,
aneesh.kumar@linux.vnet.ibm.com,
Preeti U Murthy <preeti@linux.vnet.ibm.com>
Subject: Re: [PATCH 3/3] tracing/mm: Don't trace mm_page_pcpu_drain on offline cpus
Date: Wed, 29 Apr 2015 20:19:28 +0530 [thread overview]
Message-ID: <5540EF78.8000409@linux.vnet.ibm.com> (raw)
In-Reply-To: <CAM4v1pM8aSExCcmUG3dP7bPAGFpwHYZf-ncMueMtguDXc8fjNw@mail.gmail.com>
>> -DEFINE_EVENT_PRINT(mm_page, mm_page_pcpu_drain,
>> +TRACE_EVENT_CONDITION(mm_page_pcpu_drain,
>>
>> TP_PROTO(struct page *page, unsigned int order, int migratetype),
>>
>> TP_ARGS(page, order, migratetype),
>>
>> + TP_CONDITION(cpu_online(smp_processor_id())),
>> +
>> + TP_STRUCT__entry(
>> + __field( unsigned long, pfn )
>> + __field( unsigned int, order )
>> + __field( int, migratetype )
>> + ),
>> +
>> + TP_fast_assign(
>> + __entry->pfn = page ? page_to_pfn(page) : -1UL;
>> + __entry->order = order;
>> + __entry->migratetype = migratetype;
>> + ),
>> +
>
> What was the need to do the above changes besides adding TP_CONDITION ?
>
IIUC there is no existing macro which can both add a condition and
override printk format, hence the fall back to TRACE_EVENT_CONDITION.
Thanks,
Shreyas
next prev parent reply other threads:[~2015-04-29 14:49 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-28 15:51 [PATCH 1/3] tracing/mm: Don't trace kmem_cache_free " Shreyas B. Prabhu
2015-04-28 15:51 ` [PATCH 2/3] tracing/mm: Don't trace mm_page_free " Shreyas B. Prabhu
2015-04-29 9:06 ` Preeti Murthy
2015-04-29 9:07 ` Preeti Murthy
2015-04-28 15:51 ` [PATCH 3/3] tracing/mm: Don't trace mm_page_pcpu_drain " Shreyas B. Prabhu
2015-04-29 9:13 ` Preeti Murthy
2015-04-29 14:49 ` Shreyas B Prabhu [this message]
2015-04-29 15:18 ` Steven Rostedt
2015-04-29 15:58 ` Shreyas B Prabhu
2015-04-29 17:08 ` Steven Rostedt
2015-04-29 17:19 ` Shreyas B Prabhu
2015-04-30 4:36 ` Preeti Murthy
2015-04-30 4:41 ` Shreyas B Prabhu
2015-05-08 4:37 ` Shreyas B Prabhu
2015-05-08 14:18 ` Steven Rostedt
2015-05-08 16:39 ` Shreyas B Prabhu
2015-04-29 9:04 ` [PATCH 1/3] tracing/mm: Don't trace kmem_cache_free " Preeti Murthy
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=5540EF78.8000409@linux.vnet.ibm.com \
--to=shreyas@linux.vnet.ibm.com \
--cc=aneesh.kumar@linux.vnet.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=paulmck@linux.vnet.ibm.com \
--cc=preeti.lkml@gmail.com \
--cc=preeti@linux.vnet.ibm.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome