def METHOD_NAME(args):
    tapsets = tapset_dir(args.binary)
    if args.verbose:
        print("Using tapset dir '%s' for binary '%s'" % (tapsets, args.binary))
    def print_probes(verbose, name):
        prefix = probe_prefix(args.binary)
        offset = len(prefix) + 1
        script = prefix + "." + name
        if verbose:
            print("Listing probes with name '%s'" % script)
        proc = subprocess.Popen(["stap", "-I", tapsets, "-l", script],
                                stdout=subprocess.PIPE,
                                universal_newlines=True)
        out, err = proc.communicate()
        if proc.returncode != 0:
            print("No probes found, are the tapsets installed in %s" % tapset_dir(args.binary))
            sys.exit(1)
        for line in out.splitlines():
            if line.startswith(prefix):
                print("%s" % line[offset:])
    if len(args.probes) == 0:
        print_probes(args.verbose, "*")
    else:
        for probe in args.probes:
            print_probes(args.verbose, probe)