Skip to content
Snippets Groups Projects
Select Git revision
  • 3096fd5b6663faefa1bb7ae4f15dcae909608d45
  • master default protected
  • antenna-patterns
  • qt5-qopenglwidget
  • license-demo
  • isolated
  • isolated-fixedprofile
  • release_1.1
  • press-conference
  • rim-only
  • release_1.0
11 results

plotdata.h

Blame
  • vboxwrapper.cpp 37.10 KiB
    // This file is part of BOINC.
    // http://boinc.berkeley.edu
    // Copyright (C) 2010-2012 University of California
    //
    // BOINC is free software; you can redistribute it and/or modify it
    // under the terms of the GNU Lesser General Public License
    // as published by the Free Software Foundation,
    // either version 3 of the License, or (at your option) any later version.
    //
    // BOINC is distributed in the hope that it will be useful,
    // but WITHOUT ANY WARRANTY; without even the implied warranty of
    // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    // See the GNU Lesser General Public License for more details.
    //
    // You should have received a copy of the GNU Lesser General Public License
    // along with BOINC.  If not, see <http://www.gnu.org/licenses/>.
    
    // vboxwrapper [options]     BOINC VirtualBox wrapper
    // see: http://boinc.berkeley.edu/trac/wiki/VboxApps
    // Options:
    // --trickle X      send a trickle message reporting elapsed time every X secs
    //                  (use this for credit granting if your app does its
    //                  own job management, like CernVM).
    //
    // Handles:
    // - suspend/resume/quit/abort
    // - reporting CPU time
    // - loss of heartbeat from core client
    //
    // Contributors:
    // Andrew J. Younge (ajy4490 AT umiacs DOT umd DOT edu)
    // Jie Wu <jiewu AT cern DOT ch>
    // Daniel Lombraña González <teleyinex AT gmail DOT com>
    // Rom Walton
    // David Anderson
    
    // To debug a VM within the BOINC/VboxWrapper framework:
    // 1. Launch BOINC with --exit_before_start
    // 2. When BOINC exits, launch the VboxWrapper with the register_only
    // 3. Set the VBOX_USER_HOME environment variable to the vbox directory
    //    under the slot directory.
    //    This changes where the VirtualBox applications look for the
    //    root VirtualBox configuration files.
    //    It may or may not apply to your installation of VirtualBox.
    //    It depends on where your copy of VirtualBox came from
    //    and what type of system it is installed on.
    // 4. Now Launch the VM using the VirtualBox UI.
    //    You should now be able to interact with your VM.
    
    #ifdef _WIN32
    #include "boinc_win.h"
    #include "win_util.h"
    #else
    #include <vector>
    #include <sys/wait.h>
    #include <sys/types.h>
    #include <sys/stat.h>
    #include <stdio.h>
    #include <cmath>
    #include <string>
    #include <unistd.h>
    #endif
    
    #include "boinc_api.h"
    #include "diagnostics.h"
    #include "filesys.h"
    #include "md5_file.h"
    #include "parse.h"
    #include "str_util.h"
    #include "str_replace.h"