resctrl.h (7f4d257e3a2a4864268f6f0da7c85ca4f083e643) | resctrl.h (ecdbb911f22d6cc5d422571dedf048b889d71417) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0 */ 2#define _GNU_SOURCE 3#ifndef RESCTRL_H 4#define RESCTRL_H 5#include <stdio.h> 6#include <stdarg.h> 7#include <math.h> 8#include <errno.h> --- 43 unchanged lines hidden (view full) --- 52 unsigned long span; 53 int mum_resctrlfs; 54 char filename[64]; 55 char *bw_report; 56 int (*setup)(int num, ...); 57}; 58 59pid_t bm_pid, ppid; | 1/* SPDX-License-Identifier: GPL-2.0 */ 2#define _GNU_SOURCE 3#ifndef RESCTRL_H 4#define RESCTRL_H 5#include <stdio.h> 6#include <stdarg.h> 7#include <math.h> 8#include <errno.h> --- 43 unchanged lines hidden (view full) --- 52 unsigned long span; 53 int mum_resctrlfs; 54 char filename[64]; 55 char *bw_report; 56 int (*setup)(int num, ...); 57}; 58 59pid_t bm_pid, ppid; |
60int tests_run; |
|
60 | 61 |
62bool check_resctrlfs_support(void); 63int filter_dmesg(void); |
|
61int remount_resctrlfs(bool mum_resctrlfs); 62int get_resource_id(int cpu_no, int *resource_id); 63int umount_resctrlfs(void); 64int validate_bw_report_request(char *bw_report); 65bool validate_resctrl_feature_request(char *resctrl_val); 66char *fgrep(FILE *inf, const char *str); 67int taskset_benchmark(pid_t bm_pid, int cpu_no); 68void run_benchmark(int signum, siginfo_t *info, void *ucontext); 69int write_schemata(char *ctrlgrp, char *schemata, int cpu_no, 70 char *resctrl_val); 71int write_bm_pid_to_resctrl(pid_t bm_pid, char *ctrlgrp, char *mongrp, 72 char *resctrl_val); 73int perf_event_open(struct perf_event_attr *hw_event, pid_t pid, int cpu, 74 int group_fd, unsigned long flags); 75int run_fill_buf(unsigned long span, int malloc_and_init_memory, int memflush, 76 int op, char *resctrl_va); 77int resctrl_val(char **benchmark_cmd, struct resctrl_val_param *param); | 64int remount_resctrlfs(bool mum_resctrlfs); 65int get_resource_id(int cpu_no, int *resource_id); 66int umount_resctrlfs(void); 67int validate_bw_report_request(char *bw_report); 68bool validate_resctrl_feature_request(char *resctrl_val); 69char *fgrep(FILE *inf, const char *str); 70int taskset_benchmark(pid_t bm_pid, int cpu_no); 71void run_benchmark(int signum, siginfo_t *info, void *ucontext); 72int write_schemata(char *ctrlgrp, char *schemata, int cpu_no, 73 char *resctrl_val); 74int write_bm_pid_to_resctrl(pid_t bm_pid, char *ctrlgrp, char *mongrp, 75 char *resctrl_val); 76int perf_event_open(struct perf_event_attr *hw_event, pid_t pid, int cpu, 77 int group_fd, unsigned long flags); 78int run_fill_buf(unsigned long span, int malloc_and_init_memory, int memflush, 79 int op, char *resctrl_va); 80int resctrl_val(char **benchmark_cmd, struct resctrl_val_param *param); |
81int mbm_bw_change(int span, int cpu_no, char *bw_report, char **benchmark_cmd); 82void tests_cleanup(void); 83void mbm_test_cleanup(void); |
|
78 79#endif /* RESCTRL_H */ | 84 85#endif /* RESCTRL_H */ |