Re: [for-next][PATCH 14/15] tracepoint: Do not fail unregistering a probe due to memory failure

From: Peter Zijlstra
Date: Wed Feb 03 2021 - 12:06:22 EST


On Wed, Feb 03, 2021 at 11:05:31AM -0500, Steven Rostedt wrote:
> [ Note, this version does use undefined compiler behavior (assuming that
> a stub function with no parameters or return, can be called by a location
> that thinks it has parameters but still no return value. Static calls
> do the same thing, so this trick is not without precedent.

Specifically it relies on the C ABI being caller cleanup. CDECL is that.