| 1 | // SPDX-License-Identifier: BSD-2-Clausecxx . . $ `<file>/src/workload.h`/ |
| 2 | /* |
| 3 | * Copyright (c) 2025 Intel Corporation |
| 4 | */ |
| 5 | #ifndef _WORKLOAD_H_ |
| 6 | #define _WORKLOAD_H_cxx . . $ `src/workload.h:6:9`! |
| 7 | |
| 8 | #include "config.h"cxx . . $ `<file>/src/config.h`/ |
| 9 | #include "stat.h"cxx . . $ `<file>/src/stat.h`/ |
| 10 | #include "thread.h"cxx . . $ `<file>/src/thread.h`/ |
| 11 | |
| 12 | struct thread_contextcxx . . $ thread_context#; // Forward Declaration |
| 13 | |
| 14 | struct workload_configcxx . . $ workload_config# { |
| 15 | pthread_tcxx . . $ pthread_t# workload_task_idcxx . . $ workload_config#workload_task_id.; |
| 16 | uint64_tcxx . . $ uint64_t# workload_sequence_countercxx . . $ workload_config#workload_sequence_counter.; |
| 17 | pthread_mutex_tcxx . . $ pthread_mutex_t# workload_mutexcxx . . $ workload_config#workload_mutex.; |
| 18 | pthread_cond_tcxx . . $ pthread_cond_t# workload_condcxx . . $ workload_config#workload_cond.; |
| 19 | void *workload_handlercxx . . $ workload_config#workload_handler.; |
| 20 | int (*workload_functioncxx . . $ workload_config#workload_function.)(int argc, char **argv); |
| 21 | int workload_argccxx . . $ workload_config#workload_argc.; |
| 22 | char **workload_argvcxx . . $ workload_config#workload_argv.; |
| 23 | int (*workload_setup_functioncxx . . $ workload_config#workload_setup_function.)(int argc, char **argv); |
| 24 | int workload_setup_argccxx . . $ workload_config#workload_setup_argc.; |
| 25 | char **workload_setup_argvcxx . . $ workload_config#workload_setup_argv.; |
| 26 | volatile int workload_runcxx . . $ workload_config#workload_run.; |
| 27 | volatile int workload_donecxx . . $ workload_config#workload_done.; |
| 28 | enum stat_frame_typecxx . . $ stat_frame_type# associated_framecxx . . $ workload_config#associated_frame.; |
| 29 | }; |
| 30 | |
| 31 | void *workload_thread_routinecxx . . $ workload_thread_routine(9f162e79bfc6c74).(void *data); |
| 32 | void workload_context_initcxx . . $ workload_context_init(40f8e18c2538f155).(struct thread_contextcxx . . $ thread_context# *thread_context, char *workload_file, |
| 33 | char *workload_function, char *workload_argument, |
| 34 | char *workload_setup_function, char *workload_setup_argument, |
| 35 | enum stat_frame_typecxx . . $ stat_frame_type# frame_type); |
| 36 | void workload_thread_freecxx . . $ workload_thread_free(f7c2ab51214b7176).(struct thread_contextcxx . . $ thread_context# *thread_context); |
| 37 | void workload_thread_wait_for_finishcxx . . $ workload_thread_wait_for_finish(f7c2ab51214b7176).(struct thread_contextcxx . . $ thread_context# *thread_context); |
| 38 | |
| 39 | void string_to_argc_argvcxx . . $ string_to_argc_argv(67bbcfbfaaba5559).(const char *input, int *argc, char ***argv); |
| 40 | |
| 41 | #endif /* _WORKLOAD_H_ */ |