Re: [PATCH v2 00/11] unwind, perf: sframe user space unwinding, deferred perf callchains

From: Josh Poimboeuf
Date: Wed Oct 02 2024 - 22:37:11 EST


On Wed, Oct 02, 2024 at 10:31:25PM -0400, Steven Rostedt wrote:
> +++ b/kernel/unwind/user.c
> @@ -177,7 +181,8 @@ int unwind_user_deferred(struct unwind_callback *callback, u64 *ctx_cookie)
>
> cookie = __this_cpu_read(ctx_ctr);
> cookie &= ((1UL << 48) - 1);
> - cookie |= ((cpu << 48) + 1);
> + cookie |= cpu << 48;
> + cookie++;
> __this_cpu_write(ctx_ctr, cookie);
>
> current->unwind_ctx_cookie = cookie;
>
> As the cookie never got incremented.

Ha, that might help ;-)

> That was just one issue. Things are still not working but I'll debug the
> rest later.

If you don't want to run on the bleeding edge, I'll be testing it soon
myself once I get the coding done for my v3.

--
Josh