def push_on_stack_section(args):
 if (len(args) == 0):
  return ''
 parts = ['self->deeplevel++;']
 for idx in xrange(len(args)):
  parts.append(('self->arguments_stack[self->deeplevel, "arg%d"] = self->arg%d;\n DCTB self->arg%d = arg%d;' % (idx, idx, idx, idx)))
 return '\n DCTB '.join(parts)

def push_on_stack_section ( args ) : if ( len ( args ) == 0 ) : return '' parts = [ 'self->deeplevel++;' ] for idx in xrange ( len ( args ) ) : parts . append ( ( 'self->arguments_stack[self->deeplevel, "arg%d"] = self->arg%d;\n DCTB self->arg%d = arg%d;' % ( idx , idx , idx , idx ) ) ) return '\n DCTB ' . join ( parts )
composes a "push arguments on stack" section of an entry pid dtrace probe .