• Jazel Canseco's avatar
    filetop: probe vfs_read and vfs_write instead to fix inlining issue · 6d818b68
    Jazel Canseco authored
    Filetop was originally designed to probe __vfs_read and __vfs_write,
    which are called by vfs_read and vfs_write, respectively. However,
    __vfs_read and __vfs_write are at times inlined, leading to these
    particular functions never actually being called. Since these functions
    are never called, the probes are never hit, and so filetop ends up
    registering zero READs and WRITEs.
    
    This patch fixes the issue by attaching the probes to vfs_read and
    vfs_write instead, which are guaranteed to be called during file reads
    and writes.
    Signed-off-by: default avatarJazel Canseco <jcanseco@google.com>
    6d818b68
filetop.py 5.68 KB