Resguardo inicial

This commit is contained in:
lastdragon
2026-09-06 12:53:21 -06:00
parent 662efe3c2a
commit ad2088d178
94853 changed files with 43200404 additions and 0 deletions
@@ -0,0 +1,31 @@
// SPDX-License-Identifier: GPL-2.0
#include <stdlib.h>
#include "../tests.h"
#define BENCH_RUNS 999999
#ifdef __aarch64__
static void trap_bench(void)
{
unsigned long val;
asm("mrs %0, ID_AA64ISAR0_EL1" : "=r" (val)); /* TRAP + ERET */
}
#else
static void trap_bench(void) { }
#endif
static int traploop(int argc, const char **argv)
{
int num_loops = BENCH_RUNS;
if (argc > 0)
num_loops = atoi(argv[0]);
for (int i = 0; i < num_loops; i++)
trap_bench();
return 0;
}
DEFINE_WORKLOAD(traploop);