parameters: (self, ibmperf_dir=DEFAULT_DIR)
docstring: Initializes this instance.
  
      Checks to see if the toolkit is installed (the running kernel has been
      patched), and attempts to install if not.
  
      Args:
        ibmperf_dir: path to the IBM Performance Inspector tools. Defaults to
            DEFAULT_DIR.
  
      Raises:
        ExecutionFailed: An error occurred trying to install the toolkit, or
            while checking if it was installed.
        OSError: The toolkit was not installed at the provided path.
docstring_summary: Initializes this instance.
docstring_tokens: Initializes this instance .
function: def __init__(self, ibmperf_dir=DEFAULT_DIR):
      """Initializes this instance.
  
      Checks to see if the toolkit is installed (the running kernel has been
      patched), and attempts to install if not.
  
      Args:
        ibmperf_dir: path to the IBM Performance Inspector tools. Defaults to
            DEFAULT_DIR.
  
      Raises:
        ExecutionFailed: An error occurred trying to install the toolkit, or
            while checking if it was installed.
        OSError: The toolkit was not installed at the provided path.
      """
      self._ibmperf_dir = os.path.abspath(ibmperf_dir)
      try:
        _LOGGER.info("Checking if driver installed.")
        self._Run(_DDQ, [])
        _LOGGER.info("Driver already installed.")
      except Error:
        # If ddq fails, it's because the driver is not installed. Try
        # to install it.
        _LOGGER.info("Installing IBM Performance Inspector driver.")
        self._Run(_TINSTALL, [])
function_tokens: def __init__ ( self , ibmperf_dir = DEFAULT_DIR ) : self . _ibmperf_dir = os . path . abspath ( ibmperf_dir ) try : _LOGGER . info ( "Checking if driver installed." ) self . _Run ( _DDQ , [ ] ) _LOGGER . info ( "Driver already installed." ) except Error : # If ddq fails, it's because the driver is not installed. Try # to install it. _LOGGER . info ( "Installing IBM Performance Inspector driver." ) self . _Run ( _TINSTALL , [ ] )