[lkml]   [2018]   [Mar]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: ftrace on MIPS/ath79
On Fri, 23 Mar 2018 23:20:10 +0100
Matthias Schiffer <> wrote:

> Hi,
> I'm currently trying to debug a performance bottleneck on low-end ath79
> hardware running OpenWrt/LEDE, but it seems that ftrace is not working
> correctly on these systems. I have tried this with recent 4.4.y and 4.9.y
> with similar results; unfortunately, switching to a newer kernel is not
> easily possible on this hardware at the moment. Please let me know if there
> are any known issues or patches that I should backport.

I don't know of any for mips (nothing in the git logs). The last
updates to the mips code looks to be from 3.17. Also, I have no idea
why try_to_get_module() would be crashing.

> There seem to be two separate issues:
> 1) Building with CONFIG_DYNAMIC_FTRACE leads to a kernel panic as soon as
> kernel modules are loaded (logs attached).
> 2) function_graph tracer does not show anything useful: the trace output
> looks like what was reported in [1]. Building with
> CONFIG_FUNCTION_GRAPH_TRACER leads to a completely empty
> trace_stat/function0 (except for the header); profiling is working as
> expected when CONFIG_FUNCTION_GRAPH_TRACER is disabled.
> I would be thankful for any pointers that might help me to make this work.
> Kind regards,
> Matthias
> [1]

From the last email in that thread:

"But yeah, don't go too much by that document. It is out of date, and
when I get time, I'll have to update it. I'll probably do that when I
bring powerpc up to speed with x86 (except for the fentry part).

I want dynamic trampolines for powerpc and such, and when I do that, it
will make all the changes fresh in my mind to go back and tackle the
design documentation."

The sad part is, I've said the same thing recently about updating that
document. But in the mean time, my powerpc box died and I never got to
do what I wanted with that box. My mips board is pretty useless today,
so I don't touch other archs much anymore (don't have the time
either, maybe I will when I retire. That's why I still keep all my
boards around).

I wish I could be of help, but MIPS has been cached out of my brain for
some time. If you want to investigate, I would be willing to give you
help in generic ftrace support, but anything MIPS specific would
require someone from the MIPS team.

-- Steve

 \ /
  Last update: 2018-03-24 02:15    [W:0.048 / U:2.848 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site