mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
Create a new top level directory called 'utils' and move the following programs there: tests/qemu/boot-analysis -> utils/boot-analysis/ tests/qemu/boot-benchmark -> utils/boot-benchmark/ tests/qemu/qemu-boot -> utils/qemu-boot/ tests/qemu/qemu-speed-test -> utils/qemu-speed-test/ Also we only build the boot-analysis program on x86-64 and aarch64, since it requires custom porting to each architecture.
37 lines
1.4 KiB
C
37 lines
1.4 KiB
C
/* libguestfs
|
|
* Copyright (C) 2016 Red Hat Inc.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any 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
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License along
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
*/
|
|
|
|
#ifndef GUESTFS_BOOT_ANALYSIS_UTILS_H_
|
|
#define GUESTFS_BOOT_ANALYSIS_UTILS_H_
|
|
|
|
/* Get current time, returning it in *ts. If there is a system call
|
|
* failure, this exits.
|
|
*/
|
|
extern void get_time (struct timespec *ts);
|
|
|
|
/* Computes Y - X, returning nanoseconds. */
|
|
extern int64_t timespec_diff (const struct timespec *x, const struct timespec *y);
|
|
|
|
/* Display host machine and test parameters (to stdout). 'g' should
|
|
* be an open libguestfs handle. It is used for reading hv, memsize
|
|
* etc. and is not modified.
|
|
*/
|
|
extern void test_info (guestfs_h *g, int nr_test_passes);
|
|
|
|
#endif /* GUESTFS_BOOT_ANALYSIS_UTILS_H_ */
|