Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

memorystress:For pressure detection of memory stability #1891

Merged
merged 2 commits into from
Aug 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions system/memstress/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#
# For a description of the syntax of this configuration file,
# see the file kconfig-language.txt in the NuttX tools repository.
#

config SYSTEM_MEMORY_STRESS
tristate "memory stress test"
default n
---help---
Enable a memory stress test.

if SYSTEM_MEMORY_STRESS

config SYSTEM_MEMORY_STRESS_PROGNAME
string "Program name"
default "memstress"
---help---
This is the name of the program that will be used when the NSH ELF
program is installed.

config SYSTEM_MEMORY_STRESS_PRIORITY
int "MEMORY stress task priority"
default 100

config SYSTEM_MEMORY_STRESS_STACKSIZE
int "MEMORY stress stack size"
default DEFAULT_TASK_STACKSIZE

endif
23 changes: 23 additions & 0 deletions system/memstress/Make.defs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
############################################################################
# apps/system/memstress/Make.defs
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
# ASF licenses this file to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance with the
# License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
############################################################################

ifneq ($(CONFIG_SYSTEM_MEMORY_STRESS),)
CONFIGURED_APPS += $(APPDIR)/system/memstress
endif
32 changes: 32 additions & 0 deletions system/memstress/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
############################################################################
# apps/system/memstress/Makefile
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
# ASF licenses this file to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance with the
# License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
############################################################################

include $(APPDIR)/Make.defs

# RAM speed test

PROGNAME = $(CONFIG_SYSTEM_MEMORY_STRESS_PROGNAME)
PRIORITY = $(CONFIG_SYSTEM_MEMORY_STRESS_PRIORITY)
STACKSIZE = $(CONFIG_SYSTEM_MEMORY_STRESS_STACKSIZE)
MODULE = $(CONFIG_SYSTEM_MEMORY_STRESS)

MAINSRC = memorystress_main.c

include $(APPDIR)/Application.mk
Loading
Loading