def get_fpath_vs_id(root, parent_full_callpath=""):
    """
    Returns a list of (Cnode ID, full call path) tuples.
    """
    full_callpath = parent_full_callpath + root.fname
    data = [(root.cnode_id, full_callpath)]
    for child in root.children:
        data += get_fpath_vs_id(child, full_callpath + "/")
    return data