1 /* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */ 2 /* 3 * Copyright (c) 2016 Los Alamos National Security, LLC. All rights 4 * reserved. 5 * $COPYRIGHT$ 6 * 7 * Additional copyrights may follow 8 * 9 * $HEADER$ 10 */ 11 /** 12 * @file pather_overwrite.h 13 * 14 * This component works by overwritting the first couple instructions in 15 * the target function with a jump instruction to the hook function. The 16 * hook function will be expected to implement the functionality of the 17 * hooked function when using this module. 18 * 19 * Note: This component only supports x86, x86_64, ia64, and powerpc/power. 20 */ 21 22 #if !defined(OPAL_PATCHER_OVERWRITE_H) 23 #define OPAL_PATCHER_OVERWRITE_H 24 25 #include "opal_config.h" 26 #include "opal/mca/patcher/patcher.h" 27 #include "opal/class/opal_list.h" 28 29 extern mca_patcher_base_module_t mca_patcher_overwrite_module; 30 extern mca_patcher_base_component_t mca_patcher_overwrite_component; 31 32 #endif /* !defined(OPAL_PATCHER_OVERWRITE_H) */