summaryrefslogtreecommitdiff
path: root/Ports/stress-ng/patches/0011-make-lsearch-stressor-a-nop.patch
blob: 3c5960b5ae4a415a5583bbc0875bae31fbc9433d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
From 176c9d8becd0ea0469a9d75df46a78ae913acd33 Mon Sep 17 00:00:00 2001
From: Brian Gianforcaro <b.gianfo@gmail.com>
Date: Mon, 27 Dec 2021 23:47:22 -0800
Subject: [PATCH 11/14] serenity: Make lsearch stressor a nop on Serenity

---
 stress-lsearch.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/stress-lsearch.c b/stress-lsearch.c
index 60174a2..74a9ef9 100644
--- a/stress-lsearch.c
+++ b/stress-lsearch.c
@@ -31,6 +31,8 @@ static const stress_help_t help[] = {
 	{ NULL, NULL,		  NULL }
 };
 
+#if !defined(__serenity__)
+
 /*
  *  stress_set_lsearch_size()
  *      set lsearch size from given option string
@@ -129,3 +131,10 @@ stressor_info_t stress_lsearch_info = {
 	.opt_set_funcs = opt_set_funcs,
 	.help = help
 };
+#else
+stressor_info_t stress_lsearch_info = {
+	.stressor = stress_not_implemented,
+	.class = CLASS_CPU_CACHE | CLASS_CPU | CLASS_MEMORY,
+	.help = help
+};
+#endif
-- 
2.32.0