Re: [PATCH v6 0/9] perf c2c: add a function view
Namhyung Kim <[email protected]> Thu, 6 Aug 2026 23:19:11 -0700
| Newsgroups | org.kernel.vger.linux-perf-users,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
Hello, On Thu, Aug 06, 2026 at 03:47:10PM +0800, Jiebin Sun wrote: > Hi Namhyung, > > Thanks for reporting this. I reproduced the Python import failure. Although > the loader reported c2c_fmt_free, checking with `ldd -r` showed four > unresolved symbols from c2c-function.o: c2c, c2c_fmt_equal, c2c_fmt_free, > and perf_c2c__browse_cacheline. Yeah, I noticed that too. > > I considered moving the formatter callbacks to util/ as suggested. However, > that would still leave c2c, the command's global state, and > perf_c2c__browse_cacheline(), its existing TUI entry point, unresolved. Thanks for doing that. I think you may change the code to take pointers instead of direct references. Thanks, Namhyung > > The issue comes from placing c2c-function.o in libperf-ui.a, which is linked > into python/perf.so under --whole-archive, while builtin-c2c.o is not part > of the Python module. Since the browser is specific to the c2c command, v7 > links it directly into perf alongside builtin-c2c.o, under CONFIG_SLANG. > > This is folded into the browser skeleton patch; the other eight patches are > unchanged. I clean-built every commit and ran `perf test -v 'import perf'` > at each step. I also verified the full series with and without SLANG. > > The `--stdio` support and function-view test will follow on top of v7. > > Thanks, > Jiebin