Re: [PATCH] rust_binder: avoid name mangling for get_work[_local]

From: Alice Ryhl

Date: Fri Feb 13 2026 - 19:20:23 EST


On Sat, Feb 14, 2026 at 12:52 AM <gary@xxxxxxxxxxx> wrote:
>
> (Sorry Alice, resending as I didn't hit "Reply All". I was travelling
> and not on my usual email setup).
>
> On 2026-02-13 11:37, Alice Ryhl wrote:
> > Currently ps -A shows processes waiting on schedule() in functions with
> > names such as do_epoll_wait, wait_woken, and the impeccably named
> > _RNvMs2_NtCs8QPsHWIn21X_16rust_binder_main6threadNtB5_6Thread8get_work.
> >
> > To improve how ps output looks, give explicit non-mangled names to the
> > functions where Rust Binder calls schedule(), since these are the most
> > likely places to show up on ps output.
> >
> > The name of rust_binder_waitlcl is truncated instead of using _local
> > suffix because rust_binder_wait_local is sufficiently long that ps
> > shows
> > unaligned output.
> >
> > Suggested-by: Matthew Maurer <mmaurer@xxxxxxxxxx>
> > Signed-off-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>
>
> I don't think this the direction that we should head for. It's not
> feasible to
> do this for all users that can possibly call `schedule()`. In edition
> 2024
> forwards, `export_name` is also an unsafe attribute and it will become
> tedious to
> justify all usages.
>
> I think if the function names are demangled, it won't be too bad?

This is mostly meant as a temporary fix. Ideally ps can demangle them.

(Though even demangled, they are still too long for ps -A output as it
is right now.)

Alice