def probe_from_definition(definition, types):
 if definition.get('__ignore__', False):
  return ''
 elif (len(definition['args']) == 0):
  return return_probe_from_definition(definition, types)
 else:
  entry_probe = entry_probe_from_definition(definition)
  return_probe = return_probe_from_definition(definition, types)
  return (entry_probe + return_probe)

def probe_from_definition ( definition , types ) : if definition . get ( '__ignore__' , False ) : return '' elif ( len ( definition [ 'args' ] ) == 0 ) : return return_probe_from_definition ( definition , types ) else : entry_probe = entry_probe_from_definition ( definition ) return_probe = return_probe_from_definition ( definition , types ) return ( entry_probe + return_probe )
maps the given api definition to an actual dtrace probe(s) .