def entry_probe_from_definition(df):
 template = Template(ENTRY_PROBE_TEMPLATE)
 mapping = {'__LIBRARY__': df.get('library', ''), '__NAME__': df['api'], '__ARGUMENTS_PUSH_ON_STACK__': push_on_stack_section(df['args'])}
 return template.substitute(mapping)

def entry_probe_from_definition ( df ) : template = Template ( ENTRY_PROBE_TEMPLATE ) mapping = { '__LIBRARY__' : df . get ( 'library' , '' ) , '__NAME__' : df [ 'api' ] , '__ARGUMENTS_PUSH_ON_STACK__' : push_on_stack_section ( df [ 'args' ] ) } return template . substitute ( mapping )
generates an entry dtrace probe from the given api definition .