blob: 1efbc1ae816f7e5bb61e35a86b5e32949e8b398d [file] [log] [blame]
mardyk01f5b46352023-10-24 16:23:23 -05001/*
mardyk017b51dbe2024-01-17 15:25:36 -06002 * Copyright (c) 2024, Arm Limited. All rights reserved.
mardyk01f5b46352023-10-24 16:23:23 -05003 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
Alex Liang1d40d722024-07-23 16:42:16 -05007#include <stdlib.h>
8#include <time.h>
9
mardyk01f5b46352023-10-24 16:23:23 -050010#include <fuzz_helper.h>
Mark Dykes50297972024-03-15 12:49:22 -050011#include "smcmalloc.h"
12
mardyk01f5b46352023-10-24 16:23:23 -050013#include <power_management.h>
14#include <sdei.h>
15#include <test_helpers.h>
16#include <tftf_lib.h>
17#include <timer.h>
18
Alex Liang0fa7d212024-06-18 11:17:01 -050019int64_t tftf_test_sdei_noarg(int64_t (*sdei_func)(void), char *funcstr);
mardyk01f5b46352023-10-24 16:23:23 -050020void tftf_test_sdei_singlearg(int64_t (*sdei_func)(uint64_t), char *funcstr);
Alex Liang0fa7d212024-06-18 11:17:01 -050021void run_sdei_fuzz(int funcid, struct memmod *mmod, bool inrange, int cntid);
22char *return_str(int64_t ret);
23void print_ret(char *funcstr, int64_t ret);