f3b1ac089b
Compared to the previous version, the following factors have been taken into account in the new version of cachespeed: 1. the user needs to care about getting a piece of available memory (even if this piece of memory may memory stomp during use) 2. High repetition of test code, poor readability, and overall high test coupling 3. Not taking into account the alignment cache line situation 4. When comparing values between different test tools, there is a little error because of the different ways to get the values (different fine reading) Therefore, in the new version according to the above problems have been improved: 1. Provide a "test_skeleton", which contains the overall testing process 2. The user only needs to execute, not to care about how to get the available memory address, and the memory allocated by the program also ensures the memory security and data accuracy 3. The system to obtain the data required for the test reduces the difficulty of use and the possibility of inaccurate results due to data errors. 4. Provide two kinds of precision data results, which can be configured through Kconfig 5. Optimize the output log, now more intuitive and concise, to help the subsequent data organization and observation 6. New test items for aligned/unaligned cache line 7. Better readability and extensibility, making it easier to add/remove test items Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
37 lines
1.3 KiB
Makefile
37 lines
1.3 KiB
Makefile
############################################################################
|
|
# apps/system/cachespeed/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
|
|
|
|
#CACHE speed test
|
|
|
|
ifneq ($(CONFIG_CACHESPEED_MONOTONIC_TIME),y)
|
|
CFLAGS += -DCACHESPEED_PERFTIME
|
|
endif
|
|
|
|
PROGNAME = $(CONFIG_SYSTEM_CACHESPEED_PROGNAME)
|
|
PRIORITY = $(CONFIG_SYSTEM_CACHESPEED_PRIORITY)
|
|
STACKSIZE = $(CONFIG_SYSTEM_CACHESPEED_STACKSIZE)
|
|
MODULE = $(CONFIG_SYSTEM_CACHESPEED)
|
|
|
|
MAINSRC = cachespeed_main.c
|
|
|
|
include $(APPDIR)/Application.mk
|