From: Christophe Leroy <christophe.leroy@csgroup.eu>
To: Naveen N Rao <naveen@kernel.org>,
"linuxppc-dev@lists.ozlabs.org" <linuxppc-dev@lists.ozlabs.org>
Cc: Nicholas Piggin <npiggin@gmail.com>
Subject: Re: [RFC PATCH] powerpc/ftrace: Refactoring and support for -fpatchable-function-entry
Date: Fri, 26 May 2023 05:35:46 +0000 [thread overview]
Message-ID: <11217d67-a9bc-10a9-161c-c73666af0c9b@csgroup.eu> (raw)
In-Reply-To: <1684833778.7ege0impv3.naveen@kernel.org>
Le 23/05/2023 à 11:31, Naveen N Rao a écrit :
> Christophe Leroy wrote:
>>
>> That's better, but still more time than original implementation:
>>
>> +20% to activate function tracer (was +40% with your RFC)
>> +21% to activate nop tracer (was +24% with your RFC)
>>
>> perf record (without strict kernel rwx) :
>>
>> 17.75% echo [kernel.kallsyms] [k] ftrace_check_record
>> 9.76% echo [kernel.kallsyms] [k] ftrace_replace_code
>> 6.53% echo [kernel.kallsyms] [k] patch_instruction
>> 5.21% echo [kernel.kallsyms] [k] __ftrace_hash_rec_update
>> 4.26% echo [kernel.kallsyms] [k] ftrace_get_addr_curr
>> 4.18% echo [kernel.kallsyms] [k] ftrace_get_call_inst.isra.0
>> 3.45% echo [kernel.kallsyms] [k] ftrace_get_addr_new
>> 3.08% echo [kernel.kallsyms] [k] function_trace_call
>> 2.20% echo [kernel.kallsyms] [k]
>> __rb_reserve_next.constprop.0
>> 2.05% echo [kernel.kallsyms] [k] copy_page
>> 1.91% echo [kernel.kallsyms] [k]
>> ftrace_create_branch_inst.constprop.0
>> 1.83% echo [kernel.kallsyms] [k] ftrace_rec_iter_next
>> 1.83% echo [kernel.kallsyms] [k] rb_commit
>> 1.69% echo [kernel.kallsyms] [k] ring_buffer_lock_reserve
>> 1.54% echo [kernel.kallsyms] [k] trace_function
>> 1.39% echo [kernel.kallsyms] [k]
>> __call_rcu_common.constprop.0
>> 1.25% echo ld-2.23.so [.] do_lookup_x
>> 1.17% echo [kernel.kallsyms] [k] ftrace_rec_iter_record
>> 1.03% echo [kernel.kallsyms] [k] unmap_page_range
>> 0.95% echo [kernel.kallsyms] [k] flush_dcache_icache_page
>> 0.95% echo [kernel.kallsyms] [k] ftrace_lookup_ip
>
> Ok, I simplified this further, and this is as close to the previous fast
> path as we can get (applies atop the original RFC). The only difference
> left is the ftrace_rec iterator.
That's not better, that's even slightly worse (less than 1%).
I will try to investigate why.
Christophe
next prev parent reply other threads:[~2023-05-26 5:37 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-19 19:26 [RFC PATCH] powerpc/ftrace: Refactoring and support for -fpatchable-function-entry Naveen N Rao
2023-05-20 10:34 ` Christophe Leroy
2023-05-20 16:28 ` Christophe Leroy
2023-05-20 17:48 ` Christophe Leroy
2023-05-20 18:17 ` Naveen N Rao
2023-05-21 9:14 ` Christophe Leroy
2023-05-23 9:31 ` Naveen N Rao
2023-05-26 5:35 ` Christophe Leroy [this message]
2023-06-07 17:05 ` Naveen N Rao
2023-05-20 18:28 ` Naveen N Rao
2023-05-23 13:20 ` Steven Rostedt
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=11217d67-a9bc-10a9-161c-c73666af0c9b@csgroup.eu \
--to=christophe.leroy@csgroup.eu \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=naveen@kernel.org \
--cc=npiggin@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;
as well as URLs for NNTP newsgroup(s).