• Paul Chaignon's avatar
    u* tools: automatically detect the language (#1067) · 4bb6d7fe
    Paul Chaignon authored
    * cc: bcc function to detect the language of a process
    
    bcc_procutils_language looks into /proc/$pid/cmdline, /proc/$pid/exe,
    and /proc/$pid/maps to determine the language.
    Python wrapper takes a list of candidate languages; if the detected
    language is not part of the list, None is returned.
    
    * u* tools: automatically detect the language
    
    Uses the detect_language bcc helper. -l switch can override the
    detected language. In uthreads and ucalls, the language can be
    overwritten to 'none' to trace pthreads and syscalls respectively.
    
    All tools use the -l switch to set the language, for consistency.
    4bb6d7fe
test_utils.py 693 Bytes