• Sasha Goldshtein's avatar
    argdist: Fix -p behavior to filter tgid and not pid · 655e3c30
    Sasha Goldshtein authored
    argdist remained one of the last holdouts to use the `-p` switch
    inconsistently with other tools, filtering for kernel pid (thread
    id from user space perspective) and not kernel tgid (process id
    from user space perspective). This is now fixed.
    
    Additionally, minor nits around generating pid filters were fixed,
    and a potential collision with user-provided argument names was
    fixed too (in general, script-generated arguments/locals should
    probably stick to reserved identifiers, such as `__whatever` rather
    than `whatever`).
    655e3c30
argdist.py 32.1 KB