Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
You need to sign in or sign up before continuing.
  • linux
  • kernel
  • trace
  • trace_uprobe.c
Find file BlameHistoryPermalink
  • Jovi Zhang's avatar
    tracing: Verify target file before registering a uprobe event · d24d7dbf
    Jovi Zhang authored Jul 18, 2012
    Without this patch, we can register a uprobe event for a directory.
    Enabling such a uprobe event would anyway fail.
    
    Example:
    $ echo 'p /bin:0x4245c0' > /sys/kernel/debug/tracing/uprobe_events
    
    However dirctories cannot be valid targets for uprobe.
    Hence verify if the target is a regular file during the probe
    registration.
    
    Link: http://lkml.kernel.org/r/20130103004212.690763002@goodmis.org
    
    
    
    Cc: Namhyung Kim <namhyung@kernel.org>
    Signed-off-by: default avatarJovi Zhang <bookjovi@gmail.com>
    Acked-by: default avatarSrikar Dronamraju <srikar@linux.vnet.ibm.com>
    [ cleaned up whitespace and removed redundant IS_DIR() check ]
    Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
    d24d7dbf
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7