SystemTap does not give a solution for this, and is not really intended for this use:
* It's no cross-platform, it's for Linux * It doesn't allow the developer to write the text he wants * It doesn't parse the tracing string The solution I'm talking about is: * cross platform * Will allow you to write arbitrary trace string * Parses the string and the parameters in it (%s, %d) and makes sure they are traced too. On Mon, Apr 27, 2015 at 12:21 AM, Jonathan Wakely <jwakely....@gmail.com> wrote: > On 26 April 2015 at 18:47, Shoham Peller wrote: >> 1. Can you think of a way to achieve this with gcc? > > Insert SystemTap probe points.