]> sourceware.org Git - systemtap.git/commit
PR18115: use begin probe to initialize conditions
authorJonathan Lebon <jlebon@redhat.com>
Sat, 14 Mar 2015 19:38:51 +0000 (15:38 -0400)
committerJonathan Lebon <jlebon@redhat.com>
Mon, 16 Mar 2015 16:09:22 +0000 (12:09 -0400)
commitf161bd74b50a6caff22acb06763677373a7cb0a8
tree0bb1a5e3852a41e7beeb187eefa07bd441180ee8
parent574786095f6ec364c22ea7ab415264fe9d16d583
PR18115: use begin probe to initialize conditions

We previously initialized the cond_enabled field by evaluating the
conditions during systemtap_module_init(). However, these conditions may
create tmpvars during unparsing (e.g. maps), which require a context to
operate. Therefore, we instead create a synthetic begin probe which will
serve to initialize all cond_enabled fields (or more precisely, switch
them to 0 from their default of 1 if the condition is false).

As a bonus, this allows us to re-use emit_probe_condition_update() for
both condition initialization and updating, and thus to get rid of
emit_probe_condition_initialize().
elaborate.cxx
translate.cxx
This page took 0.023092 seconds and 5 git commands to generate.