Several parameters now set with "stap -DFOO=bar ..." turn into compile-time macros/constants, and are not changeable at run time. It would be nice to turn some of them into special variables that show up as plain integers in C code, and are changeable with module options. This will be especially handy once we have bug #2208 done. Ordinary script globals already support initialization via module-params. These extra parameters would intrude on the same namespace, but that's OK. For backward compatibility, the "-DPARAM=value" could still function as an initialization of the parameter. examples: MAXERRORS MAXSKIPPED MAXACTION MAXMAPENTRIES negative examples (i.e., these affect compile-time struct layout) MAXSTRINGLEN MAXNESTING
One might pursue some such things with special /*guru*/ tapset functions to clear counters instead.