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
  • testing
  • selftests
  • resctrl
  • resctrl_val.c
Find file BlameHistoryPermalink
  • Maciej Wieczor-Retman's avatar
    selftests/resctrl: Simplify cleanup in ctrl-c handler · e6487230
    Maciej Wieczor-Retman authored Feb 27, 2024
    
    
    Ctrl-c handler isn't aware of what test is currently running. Because of
    that it executes all cleanups even if they aren't necessary. Since the
    ctrl-c handler uses the sa_sigaction system no parameters can be passed
    to it as function arguments.
    
    Add a global variable to make ctrl-c handler aware of the currently run
    test and only execute the correct cleanup callback.
    
    Signed-off-by: default avatarMaciej Wieczor-Retman <maciej.wieczor-retman@intel.com>
    Reviewed-by: default avatarReinette Chatre <reinette.chatre@intel.com>
    Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
    e6487230
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7