From: VMware, Inc <> Date: Mon, 28 Sep 2009 20:31:04 +0000 (-0700) Subject: Retire GuestApp_ControlRecord(). X-Git-Tag: p4-sync-929606 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0a4faeebda7d3b88d4acd474e1c12cce10eb8697;p=thirdparty%2Fopen-vm-tools.git Retire GuestApp_ControlRecord(). The user-visible functionality was removed a while ago at PM's request, time to kill the underlying code. Signed-off-by: Marcelo Vanzin --- diff --git a/open-vm-tools/lib/guestApp/guestApp.c b/open-vm-tools/lib/guestApp/guestApp.c index 89c2f15b3..eb647bbca 100644 --- a/open-vm-tools/lib/guestApp/guestApp.c +++ b/open-vm-tools/lib/guestApp/guestApp.c @@ -1788,34 +1788,6 @@ GuestApp_RpcSendOneCPName(char const *cmd, // IN: RPCI command return TRUE; } - -/* - *----------------------------------------------------------------------------- - * - * GuestApp_ControlRecord -- - * - * Start or stop recording process, flagged by command. - * Command definition is in statelogger_backdoor_def.h. - * - * Results: - * TRUE on success and FALSE on failure. - * - * Side effects: - * Host VMware product starts or stops recording this vm. - * - *----------------------------------------------------------------------------- - */ - -Bool -GuestApp_ControlRecord(int32 command) // IN: flag of starting or stopping recording -{ - Backdoor_proto bp; - bp.in.size = command; - bp.in.cx.halfs.low = BDOOR_CMD_STATELOGGER; - Backdoor(&bp); - return (bp.out.ax.halfs.low == 1); -} - #ifdef __cplusplus } #endif diff --git a/open-vm-tools/lib/include/guestApp.h b/open-vm-tools/lib/include/guestApp.h index 3265f64f7..630755045 100644 --- a/open-vm-tools/lib/include/guestApp.h +++ b/open-vm-tools/lib/include/guestApp.h @@ -201,8 +201,6 @@ void GuestApp_SetSpawnEnviron(const char **spawnEnviron); Bool GuestApp_FindProgram(const char *program); #endif -Bool -GuestApp_ControlRecord(int32 command); // IN #ifdef __cplusplus } #endif diff --git a/open-vm-tools/lib/include/statelogger_backdoor_def.h b/open-vm-tools/lib/include/statelogger_backdoor_def.h deleted file mode 100644 index 04a023c87..000000000 --- a/open-vm-tools/lib/include/statelogger_backdoor_def.h +++ /dev/null @@ -1,42 +0,0 @@ -/********************************************************* - * Copyright (C) 2007 VMware, Inc. All rights reserved. - * - * This program 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 version 2.1 and no later version. - * - * This program 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 Lesser GNU General Public - * License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. - * - *********************************************************/ - -/* - * statelogger_backdoor_def.h -- - * - * Backdoor command definitions for record/replay. - */ - -#ifndef _STATELOGGER_BACKDOOR_DEF_H_ -#define _STATELOGGER_BACKDOOR_DEF_H_ - -#define INCLUDE_ALLOW_MODULE -#define INCLUDE_ALLOW_USERLEVEL -#define INCLUDE_ALLOW_VMMEXT -#define INCLUDE_ALLOW_VMCORE -#define INCLUDE_ALLOW_VMKERNEL -#include "includeCheck.h" - -#define STATELOGGER_BKDR_VM_REPLAYABLE 0 -#define STATELOGGER_BKDR_START_LOGGING 1 -#define STATELOGGER_BKDR_STOP_LOGGING 2 -#define STATELOGGER_BKDR_LAST_SNAPSHOT_UID 3 -#define STATELOGGER_BKDR_GET_BRANCH_COUNT 4 -#define STATELOGGER_BKDR_START_REPLAYING 100 - -#endif /* _STATELOGGER_BACKDOOR_DEF_H_ */