1 /* 2 * This file and its contents are supplied under the terms of the 3 * Common Development and Distribution License ("CDDL"), version 1.0. 4 * You may only use this file in accordance with the terms of version 5 * 1.0 of the CDDL. 6 * 7 * A full copy of the text of the CDDL should have accompanied this 8 * source. A copy of the CDDL is also available via the Internet at 9 * http://www.illumos.org/license/CDDL. 10 */ 11 12 /* 13 * Copyright 2026 Oxide Computer Company 14 */ 15 16 /* 17 * This program serves as a target for the agent_destroy program to run. 18 * agent_target_hook() is used as a place to set a breakpoint at which the 19 * controller performs its injections. There is no state to verify afterwards. 20 * The test is that this program remains controllable throughout and runs to 21 * completion undamaged. 22 */ 23 24 #include <stdlib.h> 25 26 /* 27 * This is used as a place to set a breakpoint for the controller to find us. 28 * It is a weak symbol to help avoid compiler optimisation. 29 */ 30 #pragma weak agent_target_hook 31 void 32 agent_target_hook(void) 33 { 34 } 35 36 int 37 main(void) 38 { 39 agent_target_hook(); 40 return (EXIT_SUCCESS); 41 } 42