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
  • linux
  • tools
  • lib
  • api
  • debug.c
Find file BlameHistoryPermalink
  • Jiri Olsa's avatar
    tools lib api: Add debug output support · 975f14fa
    Jiri Olsa authored Feb 14, 2016
    
    
    Adding support for warning/info/debug output within libapi code. Adding
    following macros:
    
      pr_warning(fmt, ...)
      pr_info(fmt, ...)
      pr_debug(fmt, ...)
    
    Also adding libapi_set_print function to set above functions. This will
    be used in perf to set standard debug handlers for libapi.
    
    Adding 2 header files:
      debug.h
        - to be used outside libapi, contains
          libapi_set_print interface
    
      debug-internal.h
        - to be used within libapi, contains
          pr_warning/pr_info/pr_debug definitions
    
    Signed-off-by: default avatarJiri Olsa <jolsa@kernel.org>
    Cc: David Ahern <dsahern@gmail.com>
    Cc: Namhyung Kim <namhyung@kernel.org>
    Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
    Link: http://lkml.kernel.org/r/1455465826-8426-2-git-send-email-jolsa@kernel.org
    
    
    Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    975f14fa
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7