Skip to content

Commit dabef81

Browse files
authored
Merge branch 'apache:master' into ostest
2 parents d3419a9 + eb9b9a2 commit dabef81

File tree

235 files changed

+6469
-1812
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

235 files changed

+6469
-1812
lines changed

.codespell-ignore-lines

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
mynewt-nimble/nimble/host/services/ans/src/ble_svc_ans.c
22
mynewt-nimble/nimble/host/services/ans/include
3+
#include "crypto/controlse/ccertificate.hxx"
4+
object = new Controlse::CCertificate(
5+
Controlse::CCertificate cert(se, settings->key_id);
6+
auto certificate = Controlse::CCertificate(

.codespellrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@ exclude-file = .codespell-ignore-lines
88
# Ignore complete files (e.g. legal text or other immutable material).
99
skip =
1010
LICENSE,
11+
12+
# Ignore words list (FTP protocol commands and technical terms)
13+
ignore-words-list = ALLO

LICENSE

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1282,7 +1282,7 @@ apps/system/telnet/telnet_client.c
12821282
Copyright (C) 2017 Gregory Nutt. All rights reserved.
12831283
Author: Gregory Nutt <[email protected]>
12841284

1285-
The original authors of libtelnet are listed below. Per their licesne,
1285+
The original authors of libtelnet are listed below. Per their license,
12861286
"The author or authors of this code dedicate any and all copyright
12871287
interest in this code to the public domain. We make this dedication for
12881288
the benefit of the public at large and to the detriment of our heirs and
@@ -2248,3 +2248,29 @@ AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22482248
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
22492249
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
22502250
POSSIBILITY OF SUCH DAMAGE.
2251+
2252+
2253+
netutils/bare/
2254+
==============
2255+
2256+
MIT License
2257+
2258+
Copyright (c) 2022 Frank Smit
2259+
2260+
Permission is hereby granted, free of charge, to any person obtaining a copy
2261+
of this software and associated documentation files (the "Software"), to deal
2262+
in the Software without restriction, including without limitation the rights
2263+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
2264+
copies of the Software, and to permit persons to whom the Software is
2265+
furnished to do so, subject to the following conditions:
2266+
2267+
The above copyright notice and this permission notice shall be included in all
2268+
copies or substantial portions of the Software.
2269+
2270+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2271+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2272+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2273+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2274+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2275+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2276+
SOFTWARE.

benchmarks/osperf/osperf.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
#include <sys/poll.h>
4040

4141
#include <nuttx/sched.h>
42+
#include <nuttx/spinlock.h>
4243

4344
/****************************************************************************
4445
* Private Types
@@ -129,7 +130,7 @@ static size_t performance_gettime(FAR struct performance_time_s *result)
129130
}
130131

131132
/****************************************************************************
132-
* Pthread swtich performance
133+
* Pthread switch performance
133134
****************************************************************************/
134135

135136
static FAR void *pthread_switch_task(FAR void *arg)

benchmarks/ramspeed/CMakeLists.txt

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# ##############################################################################
2+
# apps/benchmarks/ramspeed/CMakeLists.txt
3+
#
4+
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
5+
# license agreements. See the NOTICE file distributed with this work for
6+
# additional information regarding copyright ownership. The ASF licenses this
7+
# file to you under the Apache License, Version 2.0 (the "License"); you may not
8+
# use this file except in compliance with the License. You may obtain a copy of
9+
# the License at
10+
#
11+
# http://www.apache.org/licenses/LICENSE-2.0
12+
#
13+
# Unless required by applicable law or agreed to in writing, software
14+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
15+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
16+
# License for the specific language governing permissions and limitations under
17+
# the License.
18+
#
19+
# ##############################################################################
20+
21+
if(CONFIG_BENCHMARK_RAMSPEED)
22+
nuttx_add_application(
23+
NAME
24+
${CONFIG_BENCHMARK_RAMSPEED_PROGNAME}
25+
SRCS
26+
ramspeed_main.c
27+
STACKSIZE
28+
${CONFIG_BENCHMARK_RAMSPEED_STACKSIZE}
29+
PRIORITY
30+
${CONFIG_BENCHMARK_RAMSPEED_PRIORITY})
31+
endif()

benchmarks/tacle-bench/0001-tacle-bench-add-makefile-and-all-in-one-main-file.patch

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
From 71f51cd5ca4f492a464fb12d5bce91e5fbba300a Mon Sep 17 00:00:00 2001
1+
From 6d0be04a4b4208447e75c369e9811d089f466739 Mon Sep 17 00:00:00 2001
22
From: ouyangxiangzhen <[email protected]>
3-
Date: Tue, 11 Jun 2024 16:01:23 +0800
3+
Date: Thu, 3 Apr 2025 11:59:02 +0800
44
Subject: [PATCH] tacle-bench: add makefile and all-in-one main file
55

66
The original taclebench is used for WCET analysis. This commit allows most taclebench test cases (except parallel test cases) to be compiled and executed.
77

8+
Change-Id: I707b8ac58d3ddc4b7974c5bedecac1a7b5c887f9
89
Signed-off-by: ouyangxiangzhen <[email protected]>
910
---
1011
Makefile | 12 +
@@ -65,14 +66,14 @@ Signed-off-by: ouyangxiangzhen <[email protected]>
6566
bench/test/cover/cover.c | 3 +
6667
bench/test/duff/duff.c | 3 +
6768
bench/test/test3/test3.c | 3 +
68-
taclebench.c | 349 ++++++++++++++++++
69-
59 files changed, 532 insertions(+)
69+
taclebench.c | 366 ++++++++++++++++++
70+
59 files changed, 549 insertions(+)
7071
create mode 100644 Makefile
7172
create mode 100644 taclebench.c
7273

7374
diff --git a/Makefile b/Makefile
7475
new file mode 100644
75-
index 0000000..2385c61
76+
index 0000000..75ca0a1
7677
--- /dev/null
7778
+++ b/Makefile
7879
@@ -0,0 +1,12 @@
@@ -83,7 +84,7 @@ index 0000000..2385c61
8384
+TEST_SRCS := $(shell find bench/test -name "*.c")
8485
+
8586
+all:
86-
+ cc -DALL_IN_ONE ${APP_SRCS} ${KERNEL_SRCS} ${SEQUENTIAL_SRCS} ${TEST_SRCS} bench/kernel/cosf/wcclibm.c taclebench.c -static -o taclebench
87+
+ cc -DALL_IN_ONE ${APP_SRCS} ${KERNEL_SRCS} ${SEQUENTIAL_SRCS} ${TEST_SRCS} bench/kernel/cosf/wcclibm.c taclebench.c -static -o taclebench -O3
8788
+
8889
+clean:
8990
+ rm -f taclebench
@@ -888,11 +889,12 @@ index 0235738..6eaf8c2 100755
888889

889890
diff --git a/taclebench.c b/taclebench.c
890891
new file mode 100644
891-
index 0000000..1231b87
892+
index 0000000..aaff1bb
892893
--- /dev/null
893894
+++ b/taclebench.c
894-
@@ -0,0 +1,349 @@
895+
@@ -0,0 +1,366 @@
895896
+#include <stdio.h>
897+
+#include <time.h>
896898
+
897899
+int main_epic(void);
898900
+int main_mpeg2(void);
@@ -954,6 +956,10 @@ index 0000000..1231b87
954956
+
955957
+int main(void)
956958
+{
959+
+ struct timespec start_ts;
960+
+ struct timespec end_ts;
961+
+ clock_gettime(CLOCK_MONOTONIC, &start_ts);
962+
+
957963
+ if (main_epic() != 0)
958964
+ {
959965
+ printf("main_epic error\n");
@@ -1239,6 +1245,18 @@ index 0000000..1231b87
12391245
+ printf("main_bitonic error\n");
12401246
+ }
12411247
+
1248+
+ clock_gettime(CLOCK_MONOTONIC, &end_ts);
1249+
+ long sec_diff = end_ts.tv_sec - start_ts.tv_sec;
1250+
+ long nsec_diff = end_ts.tv_nsec - start_ts.tv_nsec;
1251+
+
1252+
+ if (nsec_diff < 0)
1253+
+ {
1254+
+ sec_diff -= 1;
1255+
+ nsec_diff += 1000000000;
1256+
+ }
1257+
+
1258+
+ printf("%ld.%09ld seconds\n", sec_diff, nsec_diff);
1259+
+
12421260
+ return 0;
12431261
+}
12441262
--
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# ##############################################################################
2+
# apps/benchmarks/whetstone/CMakeLists.txt
3+
#
4+
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
5+
# license agreements. See the NOTICE file distributed with this work for
6+
# additional information regarding copyright ownership. The ASF licenses this
7+
# file to you under the Apache License, Version 2.0 (the "License"); you may not
8+
# use this file except in compliance with the License. You may obtain a copy of
9+
# the License at
10+
#
11+
# http://www.apache.org/licenses/LICENSE-2.0
12+
#
13+
# Unless required by applicable law or agreed to in writing, software
14+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
15+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
16+
# License for the specific language governing permissions and limitations under
17+
# the License.
18+
#
19+
# ##############################################################################
20+
21+
if(CONFIG_BENCHMARK_WHETSTONE)
22+
nuttx_add_application(
23+
NAME
24+
${CONFIG_BENCHMARK_WHETSTONE_PROGNAME}
25+
SRCS
26+
whetstone.c
27+
STACKSIZE
28+
${CONFIG_BENCHMARK_WHETSTONE_STACKSIZE}
29+
PRIORITY
30+
${CONFIG_BENCHMARK_WHETSTONE_PRIORITY})
31+
endif()

benchmarks/whetstone/Kconfig

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
#
2+
# For a description of the syntax of this configuration file,
3+
# see the file kconfig-language.txt in the NuttX tools repository.
4+
#
5+
6+
config BENCHMARK_WHETSTONE
7+
tristate "Double Precision Benchmark"
8+
default n
9+
depends on ALLOW_CUSTOM_PERMISSIVE_COMPONENTS
10+
---help---
11+
Enable a Whetstone test.
12+
13+
This benchmark is based on the C converted version from
14+
https://www.netlib.org/benchmark/whetstone.c which has a
15+
custom permissive license requiring attribution.
16+
17+
if BENCHMARK_WHETSTONE
18+
19+
config BENCHMARK_WHETSTONE_PROGNAME
20+
string "Program name"
21+
default "whetstone"
22+
---help---
23+
This is the name of the program that will be used when the NSH ELF
24+
program is installed.
25+
26+
config BENCHMARK_WHETSTONE_PRIORITY
27+
int "Whetstone test task priority"
28+
default 100
29+
30+
config BENCHMARK_WHETSTONE_STACKSIZE
31+
int "Whetstone test stack size"
32+
default DEFAULT_TASK_STACKSIZE
33+
34+
endif

benchmarks/whetstone/Make.defs

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
############################################################################
2+
# apps/benchmarks/whetstone/Make.defs
3+
#
4+
# Licensed to the Apache Software Foundation (ASF) under one or more
5+
# contributor license agreements. See the NOTICE file distributed with
6+
# this work for additional information regarding copyright ownership. The
7+
# ASF licenses this file to you under the Apache License, Version 2.0 (the
8+
# "License"); you may not use this file except in compliance with the
9+
# License. You may obtain a copy of the License at
10+
#
11+
# http://www.apache.org/licenses/LICENSE-2.0
12+
#
13+
# Unless required by applicable law or agreed to in writing, software
14+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
15+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
16+
# License for the specific language governing permissions and limitations
17+
# under the License.
18+
#
19+
############################################################################
20+
21+
ifneq ($(CONFIG_BENCHMARK_WHETSTONE),)
22+
CONFIGURED_APPS += $(APPDIR)/benchmarks/whetstone
23+
endif

benchmarks/whetstone/Makefile

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
############################################################################
2+
# apps/benchmarks/whetstone/Makefile
3+
#
4+
# Licensed to the Apache Software Foundation (ASF) under one or more
5+
# contributor license agreements. See the NOTICE file distributed with
6+
# this work for additional information regarding copyright ownership. The
7+
# ASF licenses this file to you under the Apache License, Version 2.0 (the
8+
# "License"); you may not use this file except in compliance with the
9+
# License. You may obtain a copy of the License at
10+
#
11+
# http://www.apache.org/licenses/LICENSE-2.0
12+
#
13+
# Unless required by applicable law or agreed to in writing, software
14+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
15+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
16+
# License for the specific language governing permissions and limitations
17+
# under the License.
18+
#
19+
############################################################################
20+
21+
include $(APPDIR)/Make.defs
22+
23+
# WHETSTONE speed test
24+
25+
PROGNAME = $(CONFIG_BENCHMARK_WHETSTONE_PROGNAME)
26+
PRIORITY = $(CONFIG_BENCHMARK_WHETSTONE_PRIORITY)
27+
STACKSIZE = $(CONFIG_BENCHMARK_WHETSTONE_STACKSIZE)
28+
MODULE = $(CONFIG_BENCHMARK_WHETSTONE)
29+
30+
MAINSRC = whetstone.c
31+
32+
include $(APPDIR)/Application.mk

0 commit comments

Comments
 (0)