From 4840aa0ae06732ea694e966660c2f36699a51328 Mon Sep 17 00:00:00 2001 From: gc1202 Date: Tue, 18 Oct 2022 15:41:56 +0800 Subject: [PATCH 1/8] =?UTF-8?q?=E8=AE=B8=E5=8F=AF=E8=AF=81=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=20Apache=3D=3D>GPL,=E5=88=A0=E9=99=A4=E6=97=A0?= =?UTF-8?q?=E5=85=B3=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: gc1202 --- .../accessftokenidgrptest_fuzzer.cpp | 3 --- .../accessftokenidgrptestother_fuzzer.cpp | 3 --- .../accessftokenidthreadtest_fuzzer.cpp | 3 --- .../accesstokenidgrptest_fuzzer.cpp | 3 --- .../accesstokenidgrptestother_fuzzer.cpp | 3 --- .../accesstokenidthreadtest_fuzzer.cpp | 3 --- .../getftokenidcmdcorrect_fuzzer.cpp | 3 --- .../getftokenidcmderror_fuzzer.cpp | 3 --- .../getftokenidnullptr_fuzzer/getftokenidnullptr_fuzzer.cpp | 3 --- .../gettokenidcmdcorrect_fuzzer.cpp | 3 --- .../gettokenidcmderror_fuzzer/gettokenidcmderror_fuzzer.cpp | 3 --- .../gettokenidnullptr_fuzzer/gettokenidnullptr_fuzzer.cpp | 3 --- test/fuzztest/accesstokenid/include/accesstokenidcommon.h | 3 --- .../setftokenidcmdcorrect_fuzzer.cpp | 3 --- .../setftokenidcmderror_fuzzer.cpp | 3 --- .../setftokenidnullptr_fuzzer/setftokenidnullptr_fuzzer.cpp | 3 --- .../settokenidcmdcorrect_fuzzer.cpp | 3 --- .../settokenidcmderror_fuzzer/settokenidcmderror_fuzzer.cpp | 3 --- .../settokenidnullptr_fuzzer/settokenidnullptr_fuzzer.cpp | 3 --- test/fuzztest/accesstokenid/src/accesstokenidcommon.cpp | 3 --- test/fuzztest/hc_node/hcenable_fuzzer/hcenable_fuzzer.cpp | 3 --- .../hchotdatalowerlimit_fuzzer.cpp | 3 --- .../hchotdatawaterline_fuzzer/hchotdatawaterline_fuzzer.cpp | 3 --- .../hchotnodelowerlimit_fuzzer.cpp | 3 --- .../hchotnodewaterline_fuzzer/hchotnodewaterline_fuzzer.cpp | 3 --- .../hcwarmdatalowerlimit_fuzzer.cpp | 3 --- .../hcwarmdatawaterline_fuzzer.cpp | 3 --- .../hcwarmnodelowerlimit_fuzzer.cpp | 3 --- .../hcwarmnodewaterline_fuzzer.cpp | 3 --- test/fuzztest/hc_node/include/hccommon.h | 3 --- test/fuzztest/hc_node/src/hccommon.cpp | 3 --- .../anonrefaultsnapshotmininterval_fuzzer.cpp | 3 --- test/fuzztest/memory/appscore_fuzzer/appscore_fuzzer.cpp | 3 --- .../areaanonrefaultthreshold_fuzzer.cpp | 3 --- .../memory/availbuffers_fuzzer/availbuffers_fuzzer.cpp | 3 --- .../bufferratioparams_fuzzer/bufferratioparams_fuzzer.cpp | 3 --- .../memory/compressratio_fuzzer/compressratio_fuzzer.cpp | 3 --- .../emptyroundcheckthreshold_fuzzer.cpp | 3 --- .../emptyroundskipinterval_fuzzer.cpp | 3 --- .../memory/forceshrinkanon_fuzzer/forceshrinkanon_fuzzer.cpp | 3 --- test/fuzztest/memory/include/memorycommon.h | 3 --- .../memory/maxskipinterval_fuzzer/maxskipinterval_fuzzer.cpp | 3 --- test/fuzztest/memory/name_fuzzer/name_fuzzer.cpp | 3 --- test/fuzztest/memory/src/memorycommon.cpp | 3 --- .../memory/ubufs2zramratio_fuzzer/ubufs2zramratio_fuzzer.cpp | 3 --- .../zramcriticalthreshold_fuzzer.cpp | 3 --- .../memory/zramwmratio_fuzzer/zramwmratio_fuzzer.cpp | 3 --- .../zswapdmaxreclaimsize_fuzzer.cpp | 3 --- .../zswapdmemcgsparam_fuzzer/zswapdmemcgsparam_fuzzer.cpp | 3 --- .../zswapdpressureshow_fuzzer/zswapdpressureshow_fuzzer.cpp | 3 --- .../zswapdsinglememcgparam_fuzzer.cpp | 3 --- .../sched/addthreadtortg_fuzzer/addthreadtortg_fuzzer.cpp | 3 --- .../sched/beginframefreq_fuzzer/beginframefreq_fuzzer.cpp | 3 --- .../sched/endframefreq_fuzzer/endframefreq_fuzzer.cpp | 3 --- test/fuzztest/sched/endscene_fuzzer/endscene_fuzzer.cpp | 3 --- .../sched/searchrtgfortid_fuzzer/searchrtgfortid_fuzzer.cpp | 3 --- test/fuzztest/sched/setmargin_fuzzer/setmargin_fuzzer.cpp | 3 --- test/init_runtest.sh | 3 --- test/kernel_ltp/generate_config.sh | 3 --- .../bin/cpuisolation_t/testcases/bin/cpuisolation01.sh | 3 --- .../bin/cpuisolation_t/testcases/bin/cpuisolation02.sh | 3 --- .../bin/cpuisolation_t/testcases/bin/cpuisolation03.sh | 3 --- .../bin/cpuisolation_t/testcases/bin/cpuisolation04.sh | 3 --- .../bin/cpuisolation_t/testcases/bin/cpuisolation05.sh | 3 --- .../bin/cpuisolation_t/testcases/bin/cpuisolation06.sh | 3 --- .../bin/cpuisolation_t/testcases/bin/cpuisolation07.sh | 3 --- .../bin/cpuisolation_t/testcases/bin/cpuisolation08.sh | 3 --- .../bin/cpuisolation_t/testcases/bin/cpuisolation09.sh | 3 --- .../bin/cpuisolation_t/testcases/bin/create_process.sh | 3 --- .../testcases/bin/cpusetdecouple_cpuhotplug01.sh | 3 --- .../testcases/bin/cpusetdecouple_cpuhotplug02.sh | 3 --- .../testcases/bin/cpusetdecouple_cpuhotplug03.sh | 3 --- .../testcases/bin/cpusetdecouple_cpuhotplug04.sh | 3 --- .../bin/enhancedf2fs_t/testcases/bin/enhancedf2fs01.sh | 3 --- .../bin/enhancedf2fs_t/testcases/bin/enhancedf2fs02.sh | 3 --- .../bin/enhancedf2fs_t/testcases/bin/enhancedf2fs03.sh | 3 --- .../bin/enhancedf2fs_t/testcases/bin/enhancedf2fs05.sh | 3 --- .../bin/enhancedf2fs_t/testcases/bin/enhancedf2fs07.sh | 3 --- .../bin/enhancedf2fs_t/testcases/bin/enhancedf2fs08.sh | 3 --- .../bin/enhancedf2fs_t/testcases/bin/enhancedf2fs09.sh | 3 --- .../bin/enhancedf2fs_t/testcases/bin/enhancedf2fs10.sh | 3 --- .../bin/enhancedf2fs_t/testcases/bin/enhancedf2fs11.sh | 3 --- .../bin/enhancedf2fs_t/testcases/bin/enhancedf2fs12.sh | 3 --- .../bin/enhancedf2fs_t/testcases/bin/equilibrium_init.sh | 3 --- .../runtest/bin/enhancedf2fs_t/testcases/bin/life_init.sh | 3 --- .../bin/enhancedf2fs_t/testcases/bin/performance_init.sh | 3 --- .../runtest/bin/enhancedf2fs_t/testcases/bin/run_fio.sh | 3 --- test/moduletest/runtest/bin/enhancedf2fs_t_init.sh | 3 --- test/moduletest/runtest/bin/enhancedf2fs_t_uninit.sh | 3 --- .../bin/enhancedswap_t/testcases/bin/enhancedswap01.sh | 3 --- .../bin/enhancedswap_t/testcases/bin/enhancedswap02.sh | 3 --- .../bin/enhancedswap_t/testcases/bin/enhancedswap03.sh | 3 --- .../bin/enhancedswap_t/testcases/bin/enhancedswap04.sh | 3 --- .../bin/enhancedswap_t/testcases/bin/enhancedswap05.sh | 3 --- test/moduletest/runtest/bin/enhancedswap_t_init.sh | 3 --- test/moduletest/runtest/bin/enhancedswap_t_uninit.sh | 3 --- .../runtest/bin/mem_debug_t/testcases/bin/mem_debug01.sh | 3 --- .../runtest/bin/mem_debug_t/testcases/bin/mem_debug02.sh | 3 --- .../runtest/bin/mem_debug_t/testcases/bin/mem_debug03.sh | 3 --- .../runtest/bin/mem_debug_t/testcases/bin/mem_debug04.sh | 3 --- .../runtest/bin/mem_debug_t/testcases/bin/mem_debug05.sh | 3 --- .../runtest/bin/mem_debug_t/testcases/bin/mem_debug06.sh | 3 --- .../runtest/bin/mem_debug_t/testcases/bin/mem_debug07.sh | 3 --- .../runtest/bin/mem_debug_t/testcases/bin/mem_debug08.sh | 3 --- .../runtest/bin/mem_debug_t/testcases/bin/mem_debug09.sh | 3 --- .../runtest/bin/mem_debug_t/testcases/bin/mem_debug10.sh | 3 --- test/moduletest/runtest/bin/mem_debug_t_init.sh | 3 --- test/moduletest/runtest/bin/mem_debug_t_uninit.sh | 3 --- .../runtest/bin/sched_rtg_t/testcases/bin/create_process.sh | 3 --- .../runtest/bin/sched_rtg_t/testcases/bin/sched_rtg01.sh | 3 --- .../runtest/bin/sched_rtg_t/testcases/bin/sched_rtg02.sh | 3 --- .../runtest/bin/sched_rtg_t/testcases/bin/sched_rtg03.sh | 3 --- .../runtest/bin/sched_rtg_t/testcases/bin/sched_rtg04.sh | 3 --- .../runtest/bin/sched_rtg_t/testcases/bin/sched_rtg06.sh | 3 --- test/moduletest/runtest/lib/libapi.sh | 3 --- test/moduletest/runtest/lib/tst_oh.sh | 3 --- test/tracepointtest/emmc.h | 3 --- test/tracepointtest/tracepoint.sh | 3 --- test/tracepointtest/tracepoint_test/tracepoint_test.c | 3 --- test/tracepointtest/tracepointtestko.sh | 3 --- .../vendoramlemmcpartition_test.c | 3 --- test/tracepointtest/vendordommap_test/vendordommap_test.c | 3 --- .../vendordomprotectpkey_test/vendordomprotectpkey_test.c | 3 --- .../vendorfakebootpartition_test.c | 3 --- test/unittest/accesstokenid/accesstokenid_test.cpp | 3 --- test/unittest/accesstokenid/accesstokenid_test.h | 5 +---- 126 files changed, 1 insertion(+), 379 deletions(-) diff --git a/test/fuzztest/accesstokenid/accessftokenidgrptest_fuzzer/accessftokenidgrptest_fuzzer.cpp b/test/fuzztest/accesstokenid/accessftokenidgrptest_fuzzer/accessftokenidgrptest_fuzzer.cpp index 3530012..bf7230b 100644 --- a/test/fuzztest/accesstokenid/accessftokenidgrptest_fuzzer/accessftokenidgrptest_fuzzer.cpp +++ b/test/fuzztest/accesstokenid/accessftokenidgrptest_fuzzer/accessftokenidgrptest_fuzzer.cpp @@ -2,9 +2,6 @@ * Copyright (c) 2022 Huawei Device Co., Ltd. * SPDX-License-Identifier: GPL-2.0 * - * Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. - * Do not use in new code. - * * 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. diff --git a/test/fuzztest/accesstokenid/accessftokenidgrptestother_fuzzer/accessftokenidgrptestother_fuzzer.cpp b/test/fuzztest/accesstokenid/accessftokenidgrptestother_fuzzer/accessftokenidgrptestother_fuzzer.cpp index 1138272..b2b659d 100644 --- a/test/fuzztest/accesstokenid/accessftokenidgrptestother_fuzzer/accessftokenidgrptestother_fuzzer.cpp +++ b/test/fuzztest/accesstokenid/accessftokenidgrptestother_fuzzer/accessftokenidgrptestother_fuzzer.cpp @@ -2,9 +2,6 @@ * Copyright (c) 2022 Huawei Device Co., Ltd. * SPDX-License-Identifier: GPL-2.0 * - * Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. - * Do not use in new code. - * * 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. diff --git a/test/fuzztest/accesstokenid/accessftokenidthreadtest_fuzzer/accessftokenidthreadtest_fuzzer.cpp b/test/fuzztest/accesstokenid/accessftokenidthreadtest_fuzzer/accessftokenidthreadtest_fuzzer.cpp index efcbaec..a112824 100644 --- a/test/fuzztest/accesstokenid/accessftokenidthreadtest_fuzzer/accessftokenidthreadtest_fuzzer.cpp +++ b/test/fuzztest/accesstokenid/accessftokenidthreadtest_fuzzer/accessftokenidthreadtest_fuzzer.cpp @@ -2,9 +2,6 @@ * Copyright (c) 2022 Huawei Device Co., Ltd. * SPDX-License-Identifier: GPL-2.0 * - * Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. - * Do not use in new code. - * * 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. diff --git a/test/fuzztest/accesstokenid/accesstokenidgrptest_fuzzer/accesstokenidgrptest_fuzzer.cpp b/test/fuzztest/accesstokenid/accesstokenidgrptest_fuzzer/accesstokenidgrptest_fuzzer.cpp index fe42be4..0882cc5 100644 --- a/test/fuzztest/accesstokenid/accesstokenidgrptest_fuzzer/accesstokenidgrptest_fuzzer.cpp +++ b/test/fuzztest/accesstokenid/accesstokenidgrptest_fuzzer/accesstokenidgrptest_fuzzer.cpp @@ -2,9 +2,6 @@ * Copyright (c) 2022 Huawei Device Co., Ltd. * SPDX-License-Identifier: GPL-2.0 * - * Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. - * Do not use in new code. - * * 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. diff --git a/test/fuzztest/accesstokenid/accesstokenidgrptestother_fuzzer/accesstokenidgrptestother_fuzzer.cpp b/test/fuzztest/accesstokenid/accesstokenidgrptestother_fuzzer/accesstokenidgrptestother_fuzzer.cpp index 93fdd1a..4903fd9 100644 --- a/test/fuzztest/accesstokenid/accesstokenidgrptestother_fuzzer/accesstokenidgrptestother_fuzzer.cpp +++ b/test/fuzztest/accesstokenid/accesstokenidgrptestother_fuzzer/accesstokenidgrptestother_fuzzer.cpp @@ -2,9 +2,6 @@ * Copyright (c) 2022 Huawei Device Co., Ltd. * SPDX-License-Identifier: GPL-2.0 * - * Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. - * Do not use in new code. - * * 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. diff --git a/test/fuzztest/accesstokenid/accesstokenidthreadtest_fuzzer/accesstokenidthreadtest_fuzzer.cpp b/test/fuzztest/accesstokenid/accesstokenidthreadtest_fuzzer/accesstokenidthreadtest_fuzzer.cpp index 99a2124..43d5ff9 100644 --- a/test/fuzztest/accesstokenid/accesstokenidthreadtest_fuzzer/accesstokenidthreadtest_fuzzer.cpp +++ b/test/fuzztest/accesstokenid/accesstokenidthreadtest_fuzzer/accesstokenidthreadtest_fuzzer.cpp @@ -2,9 +2,6 @@ * Copyright (c) 2022 Huawei Device Co., Ltd. * SPDX-License-Identifier: GPL-2.0 * - * Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. - * Do not use in new code. - * * 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. diff --git a/test/fuzztest/accesstokenid/getftokenidcmdcorrect_fuzzer/getftokenidcmdcorrect_fuzzer.cpp b/test/fuzztest/accesstokenid/getftokenidcmdcorrect_fuzzer/getftokenidcmdcorrect_fuzzer.cpp index e8ea26b..b93abca 100644 --- a/test/fuzztest/accesstokenid/getftokenidcmdcorrect_fuzzer/getftokenidcmdcorrect_fuzzer.cpp +++ b/test/fuzztest/accesstokenid/getftokenidcmdcorrect_fuzzer/getftokenidcmdcorrect_fuzzer.cpp @@ -2,9 +2,6 @@ * Copyright (c) 2022 Huawei Device Co., Ltd. * SPDX-License-Identifier: GPL-2.0 * - * Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. - * Do not use in new code. - * * 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. diff --git a/test/fuzztest/accesstokenid/getftokenidcmderror_fuzzer/getftokenidcmderror_fuzzer.cpp b/test/fuzztest/accesstokenid/getftokenidcmderror_fuzzer/getftokenidcmderror_fuzzer.cpp index 11391f0..6429c2b 100644 --- a/test/fuzztest/accesstokenid/getftokenidcmderror_fuzzer/getftokenidcmderror_fuzzer.cpp +++ b/test/fuzztest/accesstokenid/getftokenidcmderror_fuzzer/getftokenidcmderror_fuzzer.cpp @@ -2,9 +2,6 @@ * Copyright (c) 2022 Huawei Device Co., Ltd. * SPDX-License-Identifier: GPL-2.0 * - * Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. - * Do not use in new code. - * * 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. diff --git a/test/fuzztest/accesstokenid/getftokenidnullptr_fuzzer/getftokenidnullptr_fuzzer.cpp b/test/fuzztest/accesstokenid/getftokenidnullptr_fuzzer/getftokenidnullptr_fuzzer.cpp index c32e4c1..80fdd53 100644 --- a/test/fuzztest/accesstokenid/getftokenidnullptr_fuzzer/getftokenidnullptr_fuzzer.cpp +++ b/test/fuzztest/accesstokenid/getftokenidnullptr_fuzzer/getftokenidnullptr_fuzzer.cpp @@ -2,9 +2,6 @@ * Copyright (c) 2022 Huawei Device Co., Ltd. * SPDX-License-Identifier: GPL-2.0 * - * Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. - * Do not use in new code. - * * 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. diff --git a/test/fuzztest/accesstokenid/gettokenidcmdcorrect_fuzzer/gettokenidcmdcorrect_fuzzer.cpp b/test/fuzztest/accesstokenid/gettokenidcmdcorrect_fuzzer/gettokenidcmdcorrect_fuzzer.cpp index 41f863f..7f5cf70 100644 --- a/test/fuzztest/accesstokenid/gettokenidcmdcorrect_fuzzer/gettokenidcmdcorrect_fuzzer.cpp +++ b/test/fuzztest/accesstokenid/gettokenidcmdcorrect_fuzzer/gettokenidcmdcorrect_fuzzer.cpp @@ -2,9 +2,6 @@ * Copyright (c) 2022 Huawei Device Co., Ltd. * SPDX-License-Identifier: GPL-2.0 * - * Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. - * Do not use in new code. - * * 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. diff --git a/test/fuzztest/accesstokenid/gettokenidcmderror_fuzzer/gettokenidcmderror_fuzzer.cpp b/test/fuzztest/accesstokenid/gettokenidcmderror_fuzzer/gettokenidcmderror_fuzzer.cpp index c26f8e6..057788a 100644 --- a/test/fuzztest/accesstokenid/gettokenidcmderror_fuzzer/gettokenidcmderror_fuzzer.cpp +++ b/test/fuzztest/accesstokenid/gettokenidcmderror_fuzzer/gettokenidcmderror_fuzzer.cpp @@ -2,9 +2,6 @@ * Copyright (c) 2022 Huawei Device Co., Ltd. * SPDX-License-Identifier: GPL-2.0 * - * Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. - * Do not use in new code. - * * 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. diff --git a/test/fuzztest/accesstokenid/gettokenidnullptr_fuzzer/gettokenidnullptr_fuzzer.cpp b/test/fuzztest/accesstokenid/gettokenidnullptr_fuzzer/gettokenidnullptr_fuzzer.cpp index 0ebc7fa..2067aee 100644 --- a/test/fuzztest/accesstokenid/gettokenidnullptr_fuzzer/gettokenidnullptr_fuzzer.cpp +++ b/test/fuzztest/accesstokenid/gettokenidnullptr_fuzzer/gettokenidnullptr_fuzzer.cpp @@ -2,9 +2,6 @@ * Copyright (c) 2022 Huawei Device Co., Ltd. * SPDX-License-Identifier: GPL-2.0 * - * Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. - * Do not use in new code. - * * 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. diff --git a/test/fuzztest/accesstokenid/include/accesstokenidcommon.h b/test/fuzztest/accesstokenid/include/accesstokenidcommon.h index d547728..f516b31 100644 --- a/test/fuzztest/accesstokenid/include/accesstokenidcommon.h +++ b/test/fuzztest/accesstokenid/include/accesstokenidcommon.h @@ -2,9 +2,6 @@ * Copyright (c) 2022 Huawei Device Co., Ltd. * SPDX-License-Identifier: GPL-2.0 * - * Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. - * Do not use in new code. - * * 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. diff --git a/test/fuzztest/accesstokenid/setftokenidcmdcorrect_fuzzer/setftokenidcmdcorrect_fuzzer.cpp b/test/fuzztest/accesstokenid/setftokenidcmdcorrect_fuzzer/setftokenidcmdcorrect_fuzzer.cpp index bec5a2c..9f05892 100644 --- a/test/fuzztest/accesstokenid/setftokenidcmdcorrect_fuzzer/setftokenidcmdcorrect_fuzzer.cpp +++ b/test/fuzztest/accesstokenid/setftokenidcmdcorrect_fuzzer/setftokenidcmdcorrect_fuzzer.cpp @@ -2,9 +2,6 @@ * Copyright (c) 2022 Huawei Device Co., Ltd. * SPDX-License-Identifier: GPL-2.0 * - * Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. - * Do not use in new code. - * * 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. diff --git a/test/fuzztest/accesstokenid/setftokenidcmderror_fuzzer/setftokenidcmderror_fuzzer.cpp b/test/fuzztest/accesstokenid/setftokenidcmderror_fuzzer/setftokenidcmderror_fuzzer.cpp index 8a74ae3..bb030d4 100644 --- a/test/fuzztest/accesstokenid/setftokenidcmderror_fuzzer/setftokenidcmderror_fuzzer.cpp +++ b/test/fuzztest/accesstokenid/setftokenidcmderror_fuzzer/setftokenidcmderror_fuzzer.cpp @@ -2,9 +2,6 @@ * Copyright (c) 2022 Huawei Device Co., Ltd. * SPDX-License-Identifier: GPL-2.0 * - * Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. - * Do not use in new code. - * * 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. diff --git a/test/fuzztest/accesstokenid/setftokenidnullptr_fuzzer/setftokenidnullptr_fuzzer.cpp b/test/fuzztest/accesstokenid/setftokenidnullptr_fuzzer/setftokenidnullptr_fuzzer.cpp index ff46291..403b7d3 100644 --- a/test/fuzztest/accesstokenid/setftokenidnullptr_fuzzer/setftokenidnullptr_fuzzer.cpp +++ b/test/fuzztest/accesstokenid/setftokenidnullptr_fuzzer/setftokenidnullptr_fuzzer.cpp @@ -2,9 +2,6 @@ * Copyright (c) 2022 Huawei Device Co., Ltd. * SPDX-License-Identifier: GPL-2.0 * - * Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. - * Do not use in new code. - * * 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. diff --git a/test/fuzztest/accesstokenid/settokenidcmdcorrect_fuzzer/settokenidcmdcorrect_fuzzer.cpp b/test/fuzztest/accesstokenid/settokenidcmdcorrect_fuzzer/settokenidcmdcorrect_fuzzer.cpp index 3fdd9a6..6e7bbf2 100644 --- a/test/fuzztest/accesstokenid/settokenidcmdcorrect_fuzzer/settokenidcmdcorrect_fuzzer.cpp +++ b/test/fuzztest/accesstokenid/settokenidcmdcorrect_fuzzer/settokenidcmdcorrect_fuzzer.cpp @@ -2,9 +2,6 @@ * Copyright (c) 2022 Huawei Device Co., Ltd. * SPDX-License-Identifier: GPL-2.0 * - * Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. - * Do not use in new code. - * * 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. diff --git a/test/fuzztest/accesstokenid/settokenidcmderror_fuzzer/settokenidcmderror_fuzzer.cpp b/test/fuzztest/accesstokenid/settokenidcmderror_fuzzer/settokenidcmderror_fuzzer.cpp index 899bb77..af142d4 100644 --- a/test/fuzztest/accesstokenid/settokenidcmderror_fuzzer/settokenidcmderror_fuzzer.cpp +++ b/test/fuzztest/accesstokenid/settokenidcmderror_fuzzer/settokenidcmderror_fuzzer.cpp @@ -2,9 +2,6 @@ * Copyright (c) 2022 Huawei Device Co., Ltd. * SPDX-License-Identifier: GPL-2.0 * - * Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. - * Do not use in new code. - * * 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. diff --git a/test/fuzztest/accesstokenid/settokenidnullptr_fuzzer/settokenidnullptr_fuzzer.cpp b/test/fuzztest/accesstokenid/settokenidnullptr_fuzzer/settokenidnullptr_fuzzer.cpp index a79ecf7..bad6580 100644 --- a/test/fuzztest/accesstokenid/settokenidnullptr_fuzzer/settokenidnullptr_fuzzer.cpp +++ b/test/fuzztest/accesstokenid/settokenidnullptr_fuzzer/settokenidnullptr_fuzzer.cpp @@ -2,9 +2,6 @@ * Copyright (c) 2022 Huawei Device Co., Ltd. * SPDX-License-Identifier: GPL-2.0 * - * Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. - * Do not use in new code. - * * 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. diff --git a/test/fuzztest/accesstokenid/src/accesstokenidcommon.cpp b/test/fuzztest/accesstokenid/src/accesstokenidcommon.cpp index b9fa288..1650852 100644 --- a/test/fuzztest/accesstokenid/src/accesstokenidcommon.cpp +++ b/test/fuzztest/accesstokenid/src/accesstokenidcommon.cpp @@ -2,9 +2,6 @@ * Copyright (c) 2022 Huawei Device Co., Ltd. * SPDX-License-Identifier: GPL-2.0 * - * Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. - * Do not use in new code. - * * 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. diff --git a/test/fuzztest/hc_node/hcenable_fuzzer/hcenable_fuzzer.cpp b/test/fuzztest/hc_node/hcenable_fuzzer/hcenable_fuzzer.cpp index 5bd5c33..2668d4c 100644 --- a/test/fuzztest/hc_node/hcenable_fuzzer/hcenable_fuzzer.cpp +++ b/test/fuzztest/hc_node/hcenable_fuzzer/hcenable_fuzzer.cpp @@ -2,9 +2,6 @@ * Copyright (c) 2022 Huawei Device Co., Ltd. * SPDX-License-Identifier: GPL-2.0 * - * Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. - * Do not use in new code. - * * 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. diff --git a/test/fuzztest/hc_node/hchotdatalowerlimit_fuzzer/hchotdatalowerlimit_fuzzer.cpp b/test/fuzztest/hc_node/hchotdatalowerlimit_fuzzer/hchotdatalowerlimit_fuzzer.cpp index a1bed11..49d7010 100644 --- a/test/fuzztest/hc_node/hchotdatalowerlimit_fuzzer/hchotdatalowerlimit_fuzzer.cpp +++ b/test/fuzztest/hc_node/hchotdatalowerlimit_fuzzer/hchotdatalowerlimit_fuzzer.cpp @@ -2,9 +2,6 @@ * Copyright (c) 2022 Huawei Device Co., Ltd. * SPDX-License-Identifier: GPL-2.0 * - * Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. - * Do not use in new code. - * * 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. diff --git a/test/fuzztest/hc_node/hchotdatawaterline_fuzzer/hchotdatawaterline_fuzzer.cpp b/test/fuzztest/hc_node/hchotdatawaterline_fuzzer/hchotdatawaterline_fuzzer.cpp index 5a43267..f40fa83 100644 --- a/test/fuzztest/hc_node/hchotdatawaterline_fuzzer/hchotdatawaterline_fuzzer.cpp +++ b/test/fuzztest/hc_node/hchotdatawaterline_fuzzer/hchotdatawaterline_fuzzer.cpp @@ -2,9 +2,6 @@ * Copyright (c) 2022 Huawei Device Co., Ltd. * SPDX-License-Identifier: GPL-2.0 * - * Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. - * Do not use in new code. - * * 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. diff --git a/test/fuzztest/hc_node/hchotnodelowerlimit_fuzzer/hchotnodelowerlimit_fuzzer.cpp b/test/fuzztest/hc_node/hchotnodelowerlimit_fuzzer/hchotnodelowerlimit_fuzzer.cpp index 1d19668..923339e 100644 --- a/test/fuzztest/hc_node/hchotnodelowerlimit_fuzzer/hchotnodelowerlimit_fuzzer.cpp +++ b/test/fuzztest/hc_node/hchotnodelowerlimit_fuzzer/hchotnodelowerlimit_fuzzer.cpp @@ -2,9 +2,6 @@ * Copyright (c) 2022 Huawei Device Co., Ltd. * SPDX-License-Identifier: GPL-2.0 * - * Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. - * Do not use in new code. - * * 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. diff --git a/test/fuzztest/hc_node/hchotnodewaterline_fuzzer/hchotnodewaterline_fuzzer.cpp b/test/fuzztest/hc_node/hchotnodewaterline_fuzzer/hchotnodewaterline_fuzzer.cpp index 740b1ce..868f6db 100644 --- a/test/fuzztest/hc_node/hchotnodewaterline_fuzzer/hchotnodewaterline_fuzzer.cpp +++ b/test/fuzztest/hc_node/hchotnodewaterline_fuzzer/hchotnodewaterline_fuzzer.cpp @@ -2,9 +2,6 @@ * Copyright (c) 2022 Huawei Device Co., Ltd. * SPDX-License-Identifier: GPL-2.0 * - * Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. - * Do not use in new code. - * * 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. diff --git a/test/fuzztest/hc_node/hcwarmdatalowerlimit_fuzzer/hcwarmdatalowerlimit_fuzzer.cpp b/test/fuzztest/hc_node/hcwarmdatalowerlimit_fuzzer/hcwarmdatalowerlimit_fuzzer.cpp index ffb8780..b4a59bc 100644 --- a/test/fuzztest/hc_node/hcwarmdatalowerlimit_fuzzer/hcwarmdatalowerlimit_fuzzer.cpp +++ b/test/fuzztest/hc_node/hcwarmdatalowerlimit_fuzzer/hcwarmdatalowerlimit_fuzzer.cpp @@ -2,9 +2,6 @@ * Copyright (c) 2022 Huawei Device Co., Ltd. * SPDX-License-Identifier: GPL-2.0 * - * Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. - * Do not use in new code. - * * 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. diff --git a/test/fuzztest/hc_node/hcwarmdatawaterline_fuzzer/hcwarmdatawaterline_fuzzer.cpp b/test/fuzztest/hc_node/hcwarmdatawaterline_fuzzer/hcwarmdatawaterline_fuzzer.cpp index e795d51..3001463 100644 --- a/test/fuzztest/hc_node/hcwarmdatawaterline_fuzzer/hcwarmdatawaterline_fuzzer.cpp +++ b/test/fuzztest/hc_node/hcwarmdatawaterline_fuzzer/hcwarmdatawaterline_fuzzer.cpp @@ -2,9 +2,6 @@ * Copyright (c) 2022 Huawei Device Co., Ltd. * SPDX-License-Identifier: GPL-2.0 * - * Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. - * Do not use in new code. - * * 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. diff --git a/test/fuzztest/hc_node/hcwarmnodelowerlimit_fuzzer/hcwarmnodelowerlimit_fuzzer.cpp b/test/fuzztest/hc_node/hcwarmnodelowerlimit_fuzzer/hcwarmnodelowerlimit_fuzzer.cpp index dedd76f..d5ec619 100644 --- a/test/fuzztest/hc_node/hcwarmnodelowerlimit_fuzzer/hcwarmnodelowerlimit_fuzzer.cpp +++ b/test/fuzztest/hc_node/hcwarmnodelowerlimit_fuzzer/hcwarmnodelowerlimit_fuzzer.cpp @@ -2,9 +2,6 @@ * Copyright (c) 2022 Huawei Device Co., Ltd. * SPDX-License-Identifier: GPL-2.0 * - * Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. - * Do not use in new code. - * * 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. diff --git a/test/fuzztest/hc_node/hcwarmnodewaterline_fuzzer/hcwarmnodewaterline_fuzzer.cpp b/test/fuzztest/hc_node/hcwarmnodewaterline_fuzzer/hcwarmnodewaterline_fuzzer.cpp index 434fa9a..e13cde7 100644 --- a/test/fuzztest/hc_node/hcwarmnodewaterline_fuzzer/hcwarmnodewaterline_fuzzer.cpp +++ b/test/fuzztest/hc_node/hcwarmnodewaterline_fuzzer/hcwarmnodewaterline_fuzzer.cpp @@ -2,9 +2,6 @@ * Copyright (c) 2022 Huawei Device Co., Ltd. * SPDX-License-Identifier: GPL-2.0 * - * Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. - * Do not use in new code. - * * 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. diff --git a/test/fuzztest/hc_node/include/hccommon.h b/test/fuzztest/hc_node/include/hccommon.h index 24a76a9..ddcc1bf 100644 --- a/test/fuzztest/hc_node/include/hccommon.h +++ b/test/fuzztest/hc_node/include/hccommon.h @@ -2,9 +2,6 @@ * Copyright (c) 2022 Huawei Device Co., Ltd. * SPDX-License-Identifier: GPL-2.0 * - * Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. - * Do not use in new code. - * * 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. diff --git a/test/fuzztest/hc_node/src/hccommon.cpp b/test/fuzztest/hc_node/src/hccommon.cpp index 2602785..336dd66 100644 --- a/test/fuzztest/hc_node/src/hccommon.cpp +++ b/test/fuzztest/hc_node/src/hccommon.cpp @@ -2,9 +2,6 @@ * Copyright (c) 2022 Huawei Device Co., Ltd. * SPDX-License-Identifier: GPL-2.0 * - * Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. - * Do not use in new code. - * * 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. diff --git a/test/fuzztest/memory/anonrefaultsnapshotmininterval_fuzzer/anonrefaultsnapshotmininterval_fuzzer.cpp b/test/fuzztest/memory/anonrefaultsnapshotmininterval_fuzzer/anonrefaultsnapshotmininterval_fuzzer.cpp index 5db3956..294d1ef 100644 --- a/test/fuzztest/memory/anonrefaultsnapshotmininterval_fuzzer/anonrefaultsnapshotmininterval_fuzzer.cpp +++ b/test/fuzztest/memory/anonrefaultsnapshotmininterval_fuzzer/anonrefaultsnapshotmininterval_fuzzer.cpp @@ -2,9 +2,6 @@ * Copyright (c) 2022 Huawei Device Co., Ltd. * SPDX-License-Identifier: GPL-2.0 * - * Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. - * Do not use in new code. - * * 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. diff --git a/test/fuzztest/memory/appscore_fuzzer/appscore_fuzzer.cpp b/test/fuzztest/memory/appscore_fuzzer/appscore_fuzzer.cpp index f7a24d3..f4d8bb9 100644 --- a/test/fuzztest/memory/appscore_fuzzer/appscore_fuzzer.cpp +++ b/test/fuzztest/memory/appscore_fuzzer/appscore_fuzzer.cpp @@ -2,9 +2,6 @@ * Copyright (c) 2022 Huawei Device Co., Ltd. * SPDX-License-Identifier: GPL-2.0 * - * Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. - * Do not use in new code. - * * 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. diff --git a/test/fuzztest/memory/areaanonrefaultthreshold_fuzzer/areaanonrefaultthreshold_fuzzer.cpp b/test/fuzztest/memory/areaanonrefaultthreshold_fuzzer/areaanonrefaultthreshold_fuzzer.cpp index 6331a84..6635aea 100644 --- a/test/fuzztest/memory/areaanonrefaultthreshold_fuzzer/areaanonrefaultthreshold_fuzzer.cpp +++ b/test/fuzztest/memory/areaanonrefaultthreshold_fuzzer/areaanonrefaultthreshold_fuzzer.cpp @@ -2,9 +2,6 @@ * Copyright (c) 2022 Huawei Device Co., Ltd. * SPDX-License-Identifier: GPL-2.0 * - * Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. - * Do not use in new code. - * * 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. diff --git a/test/fuzztest/memory/availbuffers_fuzzer/availbuffers_fuzzer.cpp b/test/fuzztest/memory/availbuffers_fuzzer/availbuffers_fuzzer.cpp index 403a791..5355188 100644 --- a/test/fuzztest/memory/availbuffers_fuzzer/availbuffers_fuzzer.cpp +++ b/test/fuzztest/memory/availbuffers_fuzzer/availbuffers_fuzzer.cpp @@ -2,9 +2,6 @@ * Copyright (c) 2022 Huawei Device Co., Ltd. * SPDX-License-Identifier: GPL-2.0 * - * Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. - * Do not use in new code. - * * 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. diff --git a/test/fuzztest/memory/bufferratioparams_fuzzer/bufferratioparams_fuzzer.cpp b/test/fuzztest/memory/bufferratioparams_fuzzer/bufferratioparams_fuzzer.cpp index faaa324..5979bd2 100644 --- a/test/fuzztest/memory/bufferratioparams_fuzzer/bufferratioparams_fuzzer.cpp +++ b/test/fuzztest/memory/bufferratioparams_fuzzer/bufferratioparams_fuzzer.cpp @@ -2,9 +2,6 @@ * Copyright (c) 2022 Huawei Device Co., Ltd. * SPDX-License-Identifier: GPL-2.0 * - * Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. - * Do not use in new code. - * * 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. diff --git a/test/fuzztest/memory/compressratio_fuzzer/compressratio_fuzzer.cpp b/test/fuzztest/memory/compressratio_fuzzer/compressratio_fuzzer.cpp index 86ed6ac..7604ec9 100644 --- a/test/fuzztest/memory/compressratio_fuzzer/compressratio_fuzzer.cpp +++ b/test/fuzztest/memory/compressratio_fuzzer/compressratio_fuzzer.cpp @@ -2,9 +2,6 @@ * Copyright (c) 2022 Huawei Device Co., Ltd. * SPDX-License-Identifier: GPL-2.0 * - * Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. - * Do not use in new code. - * * 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. diff --git a/test/fuzztest/memory/emptyroundcheckthreshold_fuzzer/emptyroundcheckthreshold_fuzzer.cpp b/test/fuzztest/memory/emptyroundcheckthreshold_fuzzer/emptyroundcheckthreshold_fuzzer.cpp index 9629597..2b9b47b 100644 --- a/test/fuzztest/memory/emptyroundcheckthreshold_fuzzer/emptyroundcheckthreshold_fuzzer.cpp +++ b/test/fuzztest/memory/emptyroundcheckthreshold_fuzzer/emptyroundcheckthreshold_fuzzer.cpp @@ -2,9 +2,6 @@ * Copyright (c) 2022 Huawei Device Co., Ltd. * SPDX-License-Identifier: GPL-2.0 * - * Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. - * Do not use in new code. - * * 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. diff --git a/test/fuzztest/memory/emptyroundskipinterval_fuzzer/emptyroundskipinterval_fuzzer.cpp b/test/fuzztest/memory/emptyroundskipinterval_fuzzer/emptyroundskipinterval_fuzzer.cpp index 59f1585..1083190 100644 --- a/test/fuzztest/memory/emptyroundskipinterval_fuzzer/emptyroundskipinterval_fuzzer.cpp +++ b/test/fuzztest/memory/emptyroundskipinterval_fuzzer/emptyroundskipinterval_fuzzer.cpp @@ -2,9 +2,6 @@ * Copyright (c) 2022 Huawei Device Co., Ltd. * SPDX-License-Identifier: GPL-2.0 * - * Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. - * Do not use in new code. - * * 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. diff --git a/test/fuzztest/memory/forceshrinkanon_fuzzer/forceshrinkanon_fuzzer.cpp b/test/fuzztest/memory/forceshrinkanon_fuzzer/forceshrinkanon_fuzzer.cpp index be31580..702e157 100644 --- a/test/fuzztest/memory/forceshrinkanon_fuzzer/forceshrinkanon_fuzzer.cpp +++ b/test/fuzztest/memory/forceshrinkanon_fuzzer/forceshrinkanon_fuzzer.cpp @@ -2,9 +2,6 @@ * Copyright (c) 2022 Huawei Device Co., Ltd. * SPDX-License-Identifier: GPL-2.0 * - * Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. - * Do not use in new code. - * * 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. diff --git a/test/fuzztest/memory/include/memorycommon.h b/test/fuzztest/memory/include/memorycommon.h index 3e97362..fb1b058 100644 --- a/test/fuzztest/memory/include/memorycommon.h +++ b/test/fuzztest/memory/include/memorycommon.h @@ -2,9 +2,6 @@ * Copyright (c) 2022 Huawei Device Co., Ltd. * SPDX-License-Identifier: GPL-2.0 * - * Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. - * Do not use in new code. - * * 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. diff --git a/test/fuzztest/memory/maxskipinterval_fuzzer/maxskipinterval_fuzzer.cpp b/test/fuzztest/memory/maxskipinterval_fuzzer/maxskipinterval_fuzzer.cpp index 26be6cb..1021158 100644 --- a/test/fuzztest/memory/maxskipinterval_fuzzer/maxskipinterval_fuzzer.cpp +++ b/test/fuzztest/memory/maxskipinterval_fuzzer/maxskipinterval_fuzzer.cpp @@ -2,9 +2,6 @@ * Copyright (c) 2022 Huawei Device Co., Ltd. * SPDX-License-Identifier: GPL-2.0 * - * Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. - * Do not use in new code. - * * 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. diff --git a/test/fuzztest/memory/name_fuzzer/name_fuzzer.cpp b/test/fuzztest/memory/name_fuzzer/name_fuzzer.cpp index 1d13160..4d27d84 100644 --- a/test/fuzztest/memory/name_fuzzer/name_fuzzer.cpp +++ b/test/fuzztest/memory/name_fuzzer/name_fuzzer.cpp @@ -2,9 +2,6 @@ * Copyright (c) 2022 Huawei Device Co., Ltd. * SPDX-License-Identifier: GPL-2.0 * - * Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. - * Do not use in new code. - * * 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. diff --git a/test/fuzztest/memory/src/memorycommon.cpp b/test/fuzztest/memory/src/memorycommon.cpp index dc7b9b4..0b41a6c 100644 --- a/test/fuzztest/memory/src/memorycommon.cpp +++ b/test/fuzztest/memory/src/memorycommon.cpp @@ -2,9 +2,6 @@ * Copyright (c) 2022 Huawei Device Co., Ltd. * SPDX-License-Identifier: GPL-2.0 * - * Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. - * Do not use in new code. - * * 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. diff --git a/test/fuzztest/memory/ubufs2zramratio_fuzzer/ubufs2zramratio_fuzzer.cpp b/test/fuzztest/memory/ubufs2zramratio_fuzzer/ubufs2zramratio_fuzzer.cpp index de872c2..e890c18 100644 --- a/test/fuzztest/memory/ubufs2zramratio_fuzzer/ubufs2zramratio_fuzzer.cpp +++ b/test/fuzztest/memory/ubufs2zramratio_fuzzer/ubufs2zramratio_fuzzer.cpp @@ -2,9 +2,6 @@ * Copyright (c) 2022 Huawei Device Co., Ltd. * SPDX-License-Identifier: GPL-2.0 * - * Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. - * Do not use in new code. - * * 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. diff --git a/test/fuzztest/memory/zramcriticalthreshold_fuzzer/zramcriticalthreshold_fuzzer.cpp b/test/fuzztest/memory/zramcriticalthreshold_fuzzer/zramcriticalthreshold_fuzzer.cpp index 11df9e1..5e1f191 100644 --- a/test/fuzztest/memory/zramcriticalthreshold_fuzzer/zramcriticalthreshold_fuzzer.cpp +++ b/test/fuzztest/memory/zramcriticalthreshold_fuzzer/zramcriticalthreshold_fuzzer.cpp @@ -2,9 +2,6 @@ * Copyright (c) 2022 Huawei Device Co., Ltd. * SPDX-License-Identifier: GPL-2.0 * - * Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. - * Do not use in new code. - * * 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. diff --git a/test/fuzztest/memory/zramwmratio_fuzzer/zramwmratio_fuzzer.cpp b/test/fuzztest/memory/zramwmratio_fuzzer/zramwmratio_fuzzer.cpp index daae4a7..829577e 100644 --- a/test/fuzztest/memory/zramwmratio_fuzzer/zramwmratio_fuzzer.cpp +++ b/test/fuzztest/memory/zramwmratio_fuzzer/zramwmratio_fuzzer.cpp @@ -2,9 +2,6 @@ * Copyright (c) 2022 Huawei Device Co., Ltd. * SPDX-License-Identifier: GPL-2.0 * - * Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. - * Do not use in new code. - * * 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. diff --git a/test/fuzztest/memory/zswapdmaxreclaimsize_fuzzer/zswapdmaxreclaimsize_fuzzer.cpp b/test/fuzztest/memory/zswapdmaxreclaimsize_fuzzer/zswapdmaxreclaimsize_fuzzer.cpp index 00f6c79..eea2664 100644 --- a/test/fuzztest/memory/zswapdmaxreclaimsize_fuzzer/zswapdmaxreclaimsize_fuzzer.cpp +++ b/test/fuzztest/memory/zswapdmaxreclaimsize_fuzzer/zswapdmaxreclaimsize_fuzzer.cpp @@ -2,9 +2,6 @@ * Copyright (c) 2022 Huawei Device Co., Ltd. * SPDX-License-Identifier: GPL-2.0 * - * Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. - * Do not use in new code. - * * 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. diff --git a/test/fuzztest/memory/zswapdmemcgsparam_fuzzer/zswapdmemcgsparam_fuzzer.cpp b/test/fuzztest/memory/zswapdmemcgsparam_fuzzer/zswapdmemcgsparam_fuzzer.cpp index 6838b07..b30149c 100644 --- a/test/fuzztest/memory/zswapdmemcgsparam_fuzzer/zswapdmemcgsparam_fuzzer.cpp +++ b/test/fuzztest/memory/zswapdmemcgsparam_fuzzer/zswapdmemcgsparam_fuzzer.cpp @@ -2,9 +2,6 @@ * Copyright (c) 2022 Huawei Device Co., Ltd. * SPDX-License-Identifier: GPL-2.0 * - * Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. - * Do not use in new code. - * * 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. diff --git a/test/fuzztest/memory/zswapdpressureshow_fuzzer/zswapdpressureshow_fuzzer.cpp b/test/fuzztest/memory/zswapdpressureshow_fuzzer/zswapdpressureshow_fuzzer.cpp index 4ec816c..32ec0b8 100644 --- a/test/fuzztest/memory/zswapdpressureshow_fuzzer/zswapdpressureshow_fuzzer.cpp +++ b/test/fuzztest/memory/zswapdpressureshow_fuzzer/zswapdpressureshow_fuzzer.cpp @@ -2,9 +2,6 @@ * Copyright (c) 2022 Huawei Device Co., Ltd. * SPDX-License-Identifier: GPL-2.0 * - * Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. - * Do not use in new code. - * * 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. diff --git a/test/fuzztest/memory/zswapdsinglememcgparam_fuzzer/zswapdsinglememcgparam_fuzzer.cpp b/test/fuzztest/memory/zswapdsinglememcgparam_fuzzer/zswapdsinglememcgparam_fuzzer.cpp index 9d1605b..b901d92 100644 --- a/test/fuzztest/memory/zswapdsinglememcgparam_fuzzer/zswapdsinglememcgparam_fuzzer.cpp +++ b/test/fuzztest/memory/zswapdsinglememcgparam_fuzzer/zswapdsinglememcgparam_fuzzer.cpp @@ -2,9 +2,6 @@ * Copyright (c) 2022 Huawei Device Co., Ltd. * SPDX-License-Identifier: GPL-2.0 * - * Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. - * Do not use in new code. - * * 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. diff --git a/test/fuzztest/sched/addthreadtortg_fuzzer/addthreadtortg_fuzzer.cpp b/test/fuzztest/sched/addthreadtortg_fuzzer/addthreadtortg_fuzzer.cpp index b63a743..ac27a49 100644 --- a/test/fuzztest/sched/addthreadtortg_fuzzer/addthreadtortg_fuzzer.cpp +++ b/test/fuzztest/sched/addthreadtortg_fuzzer/addthreadtortg_fuzzer.cpp @@ -2,9 +2,6 @@ * Copyright (c) 2022 Huawei Device Co., Ltd. * SPDX-License-Identifier: GPL-2.0 * - * Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. - * Do not use in new code. - * * 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. diff --git a/test/fuzztest/sched/beginframefreq_fuzzer/beginframefreq_fuzzer.cpp b/test/fuzztest/sched/beginframefreq_fuzzer/beginframefreq_fuzzer.cpp index 79c5de1..241641f 100644 --- a/test/fuzztest/sched/beginframefreq_fuzzer/beginframefreq_fuzzer.cpp +++ b/test/fuzztest/sched/beginframefreq_fuzzer/beginframefreq_fuzzer.cpp @@ -2,9 +2,6 @@ * Copyright (c) 2022 Huawei Device Co., Ltd. * SPDX-License-Identifier: GPL-2.0 * - * Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. - * Do not use in new code. - * * 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. diff --git a/test/fuzztest/sched/endframefreq_fuzzer/endframefreq_fuzzer.cpp b/test/fuzztest/sched/endframefreq_fuzzer/endframefreq_fuzzer.cpp index ff3fece..345609b 100644 --- a/test/fuzztest/sched/endframefreq_fuzzer/endframefreq_fuzzer.cpp +++ b/test/fuzztest/sched/endframefreq_fuzzer/endframefreq_fuzzer.cpp @@ -2,9 +2,6 @@ * Copyright (c) 2022 Huawei Device Co., Ltd. * SPDX-License-Identifier: GPL-2.0 * - * Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. - * Do not use in new code. - * * 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. diff --git a/test/fuzztest/sched/endscene_fuzzer/endscene_fuzzer.cpp b/test/fuzztest/sched/endscene_fuzzer/endscene_fuzzer.cpp index 37bd017..26de101 100644 --- a/test/fuzztest/sched/endscene_fuzzer/endscene_fuzzer.cpp +++ b/test/fuzztest/sched/endscene_fuzzer/endscene_fuzzer.cpp @@ -2,9 +2,6 @@ * Copyright (c) 2022 Huawei Device Co., Ltd. * SPDX-License-Identifier: GPL-2.0 * - * Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. - * Do not use in new code. - * * 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. diff --git a/test/fuzztest/sched/searchrtgfortid_fuzzer/searchrtgfortid_fuzzer.cpp b/test/fuzztest/sched/searchrtgfortid_fuzzer/searchrtgfortid_fuzzer.cpp index 586dcee..4a737b9 100644 --- a/test/fuzztest/sched/searchrtgfortid_fuzzer/searchrtgfortid_fuzzer.cpp +++ b/test/fuzztest/sched/searchrtgfortid_fuzzer/searchrtgfortid_fuzzer.cpp @@ -2,9 +2,6 @@ * Copyright (c) 2022 Huawei Device Co., Ltd. * SPDX-License-Identifier: GPL-2.0 * - * Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. - * Do not use in new code. - * * 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. diff --git a/test/fuzztest/sched/setmargin_fuzzer/setmargin_fuzzer.cpp b/test/fuzztest/sched/setmargin_fuzzer/setmargin_fuzzer.cpp index f88cd2e..c90741e 100644 --- a/test/fuzztest/sched/setmargin_fuzzer/setmargin_fuzzer.cpp +++ b/test/fuzztest/sched/setmargin_fuzzer/setmargin_fuzzer.cpp @@ -2,9 +2,6 @@ * Copyright (c) 2022 Huawei Device Co., Ltd. * SPDX-License-Identifier: GPL-2.0 * - * Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. - * Do not use in new code. - * * 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. diff --git a/test/init_runtest.sh b/test/init_runtest.sh index 3cb5a44..2407fd6 100755 --- a/test/init_runtest.sh +++ b/test/init_runtest.sh @@ -4,9 +4,6 @@ # Copyright (C) 2022 Huawei Device Co., Ltd. # SPDX-License-Identifier: GPL-2.0 # -# Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. -# Do not use in new code. -# # 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. diff --git a/test/kernel_ltp/generate_config.sh b/test/kernel_ltp/generate_config.sh index 63cfb85..5afc1dd 100755 --- a/test/kernel_ltp/generate_config.sh +++ b/test/kernel_ltp/generate_config.sh @@ -4,9 +4,6 @@ # Copyright (C) 2022 Huawei Device Co., Ltd. # SPDX-License-Identifier: GPL-2.0 # -# Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. -# Do not use in new code. -# # 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. diff --git a/test/moduletest/runtest/bin/cpuisolation_t/testcases/bin/cpuisolation01.sh b/test/moduletest/runtest/bin/cpuisolation_t/testcases/bin/cpuisolation01.sh index f2702e0..902667b 100644 --- a/test/moduletest/runtest/bin/cpuisolation_t/testcases/bin/cpuisolation01.sh +++ b/test/moduletest/runtest/bin/cpuisolation_t/testcases/bin/cpuisolation01.sh @@ -4,9 +4,6 @@ # Copyright (C) 2022 Huawei Device Co., Ltd. # SPDX-License-Identifier: GPL-2.0 # -# Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. -# Do not use in new code. -# # 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. diff --git a/test/moduletest/runtest/bin/cpuisolation_t/testcases/bin/cpuisolation02.sh b/test/moduletest/runtest/bin/cpuisolation_t/testcases/bin/cpuisolation02.sh index 3ba3e7c..bfa74f9 100644 --- a/test/moduletest/runtest/bin/cpuisolation_t/testcases/bin/cpuisolation02.sh +++ b/test/moduletest/runtest/bin/cpuisolation_t/testcases/bin/cpuisolation02.sh @@ -4,9 +4,6 @@ # Copyright (C) 2022 Huawei Device Co., Ltd. # SPDX-License-Identifier: GPL-2.0 # -# Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. -# Do not use in new code. -# # 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. diff --git a/test/moduletest/runtest/bin/cpuisolation_t/testcases/bin/cpuisolation03.sh b/test/moduletest/runtest/bin/cpuisolation_t/testcases/bin/cpuisolation03.sh index 106438c..e61409d 100644 --- a/test/moduletest/runtest/bin/cpuisolation_t/testcases/bin/cpuisolation03.sh +++ b/test/moduletest/runtest/bin/cpuisolation_t/testcases/bin/cpuisolation03.sh @@ -4,9 +4,6 @@ # Copyright (C) 2022 Huawei Device Co., Ltd. # SPDX-License-Identifier: GPL-2.0 # -# Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. -# Do not use in new code. -# # 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. diff --git a/test/moduletest/runtest/bin/cpuisolation_t/testcases/bin/cpuisolation04.sh b/test/moduletest/runtest/bin/cpuisolation_t/testcases/bin/cpuisolation04.sh index 5aa4983..39e846a 100644 --- a/test/moduletest/runtest/bin/cpuisolation_t/testcases/bin/cpuisolation04.sh +++ b/test/moduletest/runtest/bin/cpuisolation_t/testcases/bin/cpuisolation04.sh @@ -4,9 +4,6 @@ # Copyright (C) 2022 Huawei Device Co., Ltd. # SPDX-License-Identifier: GPL-2.0 # -# Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. -# Do not use in new code. -# # 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. diff --git a/test/moduletest/runtest/bin/cpuisolation_t/testcases/bin/cpuisolation05.sh b/test/moduletest/runtest/bin/cpuisolation_t/testcases/bin/cpuisolation05.sh index ff7914d..f32fd70 100644 --- a/test/moduletest/runtest/bin/cpuisolation_t/testcases/bin/cpuisolation05.sh +++ b/test/moduletest/runtest/bin/cpuisolation_t/testcases/bin/cpuisolation05.sh @@ -4,9 +4,6 @@ # Copyright (C) 2022 Huawei Device Co., Ltd. # SPDX-License-Identifier: GPL-2.0 # -# Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. -# Do not use in new code. -# # 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. diff --git a/test/moduletest/runtest/bin/cpuisolation_t/testcases/bin/cpuisolation06.sh b/test/moduletest/runtest/bin/cpuisolation_t/testcases/bin/cpuisolation06.sh index 1e79874..8e68bf9 100644 --- a/test/moduletest/runtest/bin/cpuisolation_t/testcases/bin/cpuisolation06.sh +++ b/test/moduletest/runtest/bin/cpuisolation_t/testcases/bin/cpuisolation06.sh @@ -4,9 +4,6 @@ # Copyright (C) 2022 Huawei Device Co., Ltd. # SPDX-License-Identifier: GPL-2.0 # -# Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. -# Do not use in new code. -# # 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. diff --git a/test/moduletest/runtest/bin/cpuisolation_t/testcases/bin/cpuisolation07.sh b/test/moduletest/runtest/bin/cpuisolation_t/testcases/bin/cpuisolation07.sh index 3977584..1408f2d 100644 --- a/test/moduletest/runtest/bin/cpuisolation_t/testcases/bin/cpuisolation07.sh +++ b/test/moduletest/runtest/bin/cpuisolation_t/testcases/bin/cpuisolation07.sh @@ -4,9 +4,6 @@ # Copyright (C) 2022 Huawei Device Co., Ltd. # SPDX-License-Identifier: GPL-2.0 # -# Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. -# Do not use in new code. -# # 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. diff --git a/test/moduletest/runtest/bin/cpuisolation_t/testcases/bin/cpuisolation08.sh b/test/moduletest/runtest/bin/cpuisolation_t/testcases/bin/cpuisolation08.sh index 7a6cc8d..e3733f3 100644 --- a/test/moduletest/runtest/bin/cpuisolation_t/testcases/bin/cpuisolation08.sh +++ b/test/moduletest/runtest/bin/cpuisolation_t/testcases/bin/cpuisolation08.sh @@ -4,9 +4,6 @@ # Copyright (C) 2022 Huawei Device Co., Ltd. # SPDX-License-Identifier: GPL-2.0 # -# Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. -# Do not use in new code. -# # 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. diff --git a/test/moduletest/runtest/bin/cpuisolation_t/testcases/bin/cpuisolation09.sh b/test/moduletest/runtest/bin/cpuisolation_t/testcases/bin/cpuisolation09.sh index 19d3129..3918da1 100644 --- a/test/moduletest/runtest/bin/cpuisolation_t/testcases/bin/cpuisolation09.sh +++ b/test/moduletest/runtest/bin/cpuisolation_t/testcases/bin/cpuisolation09.sh @@ -4,9 +4,6 @@ # Copyright (C) 2022 Huawei Device Co., Ltd. # SPDX-License-Identifier: GPL-2.0 # -# Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. -# Do not use in new code. -# # 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. diff --git a/test/moduletest/runtest/bin/cpuisolation_t/testcases/bin/create_process.sh b/test/moduletest/runtest/bin/cpuisolation_t/testcases/bin/create_process.sh index 461699a..ec318c7 100644 --- a/test/moduletest/runtest/bin/cpuisolation_t/testcases/bin/create_process.sh +++ b/test/moduletest/runtest/bin/cpuisolation_t/testcases/bin/create_process.sh @@ -4,9 +4,6 @@ # Copyright (C) 2022 Huawei Device Co., Ltd. # SPDX-License-Identifier: GPL-2.0 # -# Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. -# Do not use in new code. -# # 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. diff --git a/test/moduletest/runtest/bin/cpusetdecouple_cpuhotplug_t/testcases/bin/cpusetdecouple_cpuhotplug01.sh b/test/moduletest/runtest/bin/cpusetdecouple_cpuhotplug_t/testcases/bin/cpusetdecouple_cpuhotplug01.sh index f2be9bb..4cbdca9 100644 --- a/test/moduletest/runtest/bin/cpusetdecouple_cpuhotplug_t/testcases/bin/cpusetdecouple_cpuhotplug01.sh +++ b/test/moduletest/runtest/bin/cpusetdecouple_cpuhotplug_t/testcases/bin/cpusetdecouple_cpuhotplug01.sh @@ -4,9 +4,6 @@ # Copyright (C) 2022 Huawei Device Co., Ltd. # SPDX-License-Identifier: GPL-2.0 # -# Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. -# Do not use in new code. -# # 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. diff --git a/test/moduletest/runtest/bin/cpusetdecouple_cpuhotplug_t/testcases/bin/cpusetdecouple_cpuhotplug02.sh b/test/moduletest/runtest/bin/cpusetdecouple_cpuhotplug_t/testcases/bin/cpusetdecouple_cpuhotplug02.sh index b6b1ccd..908c0b8 100644 --- a/test/moduletest/runtest/bin/cpusetdecouple_cpuhotplug_t/testcases/bin/cpusetdecouple_cpuhotplug02.sh +++ b/test/moduletest/runtest/bin/cpusetdecouple_cpuhotplug_t/testcases/bin/cpusetdecouple_cpuhotplug02.sh @@ -4,9 +4,6 @@ # Copyright (C) 2022 Huawei Device Co., Ltd. # SPDX-License-Identifier: GPL-2.0 # -# Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. -# Do not use in new code. -# # 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. diff --git a/test/moduletest/runtest/bin/cpusetdecouple_cpuhotplug_t/testcases/bin/cpusetdecouple_cpuhotplug03.sh b/test/moduletest/runtest/bin/cpusetdecouple_cpuhotplug_t/testcases/bin/cpusetdecouple_cpuhotplug03.sh index 8757bb5..728b743 100644 --- a/test/moduletest/runtest/bin/cpusetdecouple_cpuhotplug_t/testcases/bin/cpusetdecouple_cpuhotplug03.sh +++ b/test/moduletest/runtest/bin/cpusetdecouple_cpuhotplug_t/testcases/bin/cpusetdecouple_cpuhotplug03.sh @@ -4,9 +4,6 @@ # Copyright (C) 2022 Huawei Device Co., Ltd. # SPDX-License-Identifier: GPL-2.0 # -# Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. -# Do not use in new code. -# # 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. diff --git a/test/moduletest/runtest/bin/cpusetdecouple_cpuhotplug_t/testcases/bin/cpusetdecouple_cpuhotplug04.sh b/test/moduletest/runtest/bin/cpusetdecouple_cpuhotplug_t/testcases/bin/cpusetdecouple_cpuhotplug04.sh index c6f2b83..5d13780 100644 --- a/test/moduletest/runtest/bin/cpusetdecouple_cpuhotplug_t/testcases/bin/cpusetdecouple_cpuhotplug04.sh +++ b/test/moduletest/runtest/bin/cpusetdecouple_cpuhotplug_t/testcases/bin/cpusetdecouple_cpuhotplug04.sh @@ -4,9 +4,6 @@ # Copyright (C) 2022 Huawei Device Co., Ltd. # SPDX-License-Identifier: GPL-2.0 # -# Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. -# Do not use in new code. -# # 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. diff --git a/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs01.sh b/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs01.sh index a8f7adc..f7787c6 100644 --- a/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs01.sh +++ b/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs01.sh @@ -4,9 +4,6 @@ # Copyright (C) 2022 Huawei Device Co., Ltd. # SPDX-License-Identifier: GPL-2.0 # -# Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. -# Do not use in new code. -# # 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. diff --git a/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs02.sh b/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs02.sh index 0afcdd8..2fd2563 100644 --- a/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs02.sh +++ b/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs02.sh @@ -4,9 +4,6 @@ # Copyright (C) 2022 Huawei Device Co., Ltd. # SPDX-License-Identifier: GPL-2.0 # -# Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. -# Do not use in new code. -# # 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. diff --git a/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs03.sh b/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs03.sh index 4b1f50f..88a46e2 100644 --- a/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs03.sh +++ b/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs03.sh @@ -4,9 +4,6 @@ # Copyright (C) 2022 Huawei Device Co., Ltd. # SPDX-License-Identifier: GPL-2.0 # -# Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. -# Do not use in new code. -# # 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. diff --git a/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs05.sh b/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs05.sh index 3a5f788..f967244 100644 --- a/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs05.sh +++ b/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs05.sh @@ -4,9 +4,6 @@ # Copyright (C) 2022 Huawei Device Co., Ltd. # SPDX-License-Identifier: GPL-2.0 # -# Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. -# Do not use in new code. -# # 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. diff --git a/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs07.sh b/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs07.sh index a749a3f..e0f9167 100644 --- a/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs07.sh +++ b/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs07.sh @@ -4,9 +4,6 @@ # Copyright (C) 2022 Huawei Device Co., Ltd. # SPDX-License-Identifier: GPL-2.0 # -# Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. -# Do not use in new code. -# # 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. diff --git a/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs08.sh b/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs08.sh index 77a2946..fec1882 100644 --- a/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs08.sh +++ b/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs08.sh @@ -4,9 +4,6 @@ # Copyright (C) 2022 Huawei Device Co., Ltd. # SPDX-License-Identifier: GPL-2.0 # -# Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. -# Do not use in new code. -# # 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. diff --git a/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs09.sh b/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs09.sh index 8700731..73d043e 100644 --- a/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs09.sh +++ b/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs09.sh @@ -4,9 +4,6 @@ # Copyright (C) 2022 Huawei Device Co., Ltd. # SPDX-License-Identifier: GPL-2.0 # -# Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. -# Do not use in new code. -# # 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. diff --git a/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs10.sh b/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs10.sh index ebafc0f..10f8ec3 100644 --- a/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs10.sh +++ b/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs10.sh @@ -4,9 +4,6 @@ # Copyright (C) 2022 Huawei Device Co., Ltd. # SPDX-License-Identifier: GPL-2.0 # -# Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. -# Do not use in new code. -# # 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. diff --git a/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs11.sh b/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs11.sh index b1bc0b9..9c89422 100644 --- a/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs11.sh +++ b/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs11.sh @@ -4,9 +4,6 @@ # Copyright (C) 2022 Huawei Device Co., Ltd. # SPDX-License-Identifier: GPL-2.0 # -# Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. -# Do not use in new code. -# # 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. diff --git a/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs12.sh b/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs12.sh index aaca37e..f80ab28 100644 --- a/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs12.sh +++ b/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs12.sh @@ -4,9 +4,6 @@ # Copyright (C) 2022 Huawei Device Co., Ltd. # SPDX-License-Identifier: GPL-2.0 # -# Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. -# Do not use in new code. -# # 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. diff --git a/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/equilibrium_init.sh b/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/equilibrium_init.sh index 0ce081a..095cd8b 100644 --- a/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/equilibrium_init.sh +++ b/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/equilibrium_init.sh @@ -4,9 +4,6 @@ # Copyright (C) 2022 Huawei Device Co., Ltd. # SPDX-License-Identifier: GPL-2.0 # -# Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. -# Do not use in new code. -# # 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. diff --git a/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/life_init.sh b/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/life_init.sh index 1e407bd..72ce03a 100644 --- a/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/life_init.sh +++ b/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/life_init.sh @@ -4,9 +4,6 @@ # Copyright (C) 2022 Huawei Device Co., Ltd. # SPDX-License-Identifier: GPL-2.0 # -# Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. -# Do not use in new code. -# # 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. diff --git a/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/performance_init.sh b/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/performance_init.sh index b38e723..841d136 100644 --- a/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/performance_init.sh +++ b/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/performance_init.sh @@ -4,9 +4,6 @@ # Copyright (C) 2022 Huawei Device Co., Ltd. # SPDX-License-Identifier: GPL-2.0 # -# Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. -# Do not use in new code. -# # 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. diff --git a/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/run_fio.sh b/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/run_fio.sh index 38b7e6c..a9b355f 100644 --- a/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/run_fio.sh +++ b/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/run_fio.sh @@ -4,9 +4,6 @@ # Copyright (C) 2022 Huawei Device Co., Ltd. # SPDX-License-Identifier: GPL-2.0 # -# Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. -# Do not use in new code. -# # 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. diff --git a/test/moduletest/runtest/bin/enhancedf2fs_t_init.sh b/test/moduletest/runtest/bin/enhancedf2fs_t_init.sh index 5a6f483..0886d84 100644 --- a/test/moduletest/runtest/bin/enhancedf2fs_t_init.sh +++ b/test/moduletest/runtest/bin/enhancedf2fs_t_init.sh @@ -4,9 +4,6 @@ # Copyright (C) 2022 Huawei Device Co., Ltd. # SPDX-License-Identifier: GPL-2.0 # -# Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. -# Do not use in new code. -# # 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. diff --git a/test/moduletest/runtest/bin/enhancedf2fs_t_uninit.sh b/test/moduletest/runtest/bin/enhancedf2fs_t_uninit.sh index fda31b5..5602e4d 100644 --- a/test/moduletest/runtest/bin/enhancedf2fs_t_uninit.sh +++ b/test/moduletest/runtest/bin/enhancedf2fs_t_uninit.sh @@ -4,9 +4,6 @@ # Copyright (C) 2022 Huawei Device Co., Ltd. # SPDX-License-Identifier: GPL-2.0 # -# Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. -# Do not use in new code. -# # 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. diff --git a/test/moduletest/runtest/bin/enhancedswap_t/testcases/bin/enhancedswap01.sh b/test/moduletest/runtest/bin/enhancedswap_t/testcases/bin/enhancedswap01.sh index 388c952..249f08f 100644 --- a/test/moduletest/runtest/bin/enhancedswap_t/testcases/bin/enhancedswap01.sh +++ b/test/moduletest/runtest/bin/enhancedswap_t/testcases/bin/enhancedswap01.sh @@ -4,9 +4,6 @@ # Copyright (C) 2022 Huawei Device Co., Ltd. # SPDX-License-Identifier: GPL-2.0 # -# Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. -# Do not use in new code. -# # 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. diff --git a/test/moduletest/runtest/bin/enhancedswap_t/testcases/bin/enhancedswap02.sh b/test/moduletest/runtest/bin/enhancedswap_t/testcases/bin/enhancedswap02.sh index bf122bd..377961b 100644 --- a/test/moduletest/runtest/bin/enhancedswap_t/testcases/bin/enhancedswap02.sh +++ b/test/moduletest/runtest/bin/enhancedswap_t/testcases/bin/enhancedswap02.sh @@ -4,9 +4,6 @@ # Copyright (C) 2022 Huawei Device Co., Ltd. # SPDX-License-Identifier: GPL-2.0 # -# Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. -# Do not use in new code. -# # 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. diff --git a/test/moduletest/runtest/bin/enhancedswap_t/testcases/bin/enhancedswap03.sh b/test/moduletest/runtest/bin/enhancedswap_t/testcases/bin/enhancedswap03.sh index 75bc11d..1bd795e 100644 --- a/test/moduletest/runtest/bin/enhancedswap_t/testcases/bin/enhancedswap03.sh +++ b/test/moduletest/runtest/bin/enhancedswap_t/testcases/bin/enhancedswap03.sh @@ -4,9 +4,6 @@ # Copyright (C) 2022 Huawei Device Co., Ltd. # SPDX-License-Identifier: GPL-2.0 # -# Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. -# Do not use in new code. -# # 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. diff --git a/test/moduletest/runtest/bin/enhancedswap_t/testcases/bin/enhancedswap04.sh b/test/moduletest/runtest/bin/enhancedswap_t/testcases/bin/enhancedswap04.sh index 8562f96..9184254 100644 --- a/test/moduletest/runtest/bin/enhancedswap_t/testcases/bin/enhancedswap04.sh +++ b/test/moduletest/runtest/bin/enhancedswap_t/testcases/bin/enhancedswap04.sh @@ -4,9 +4,6 @@ # Copyright (C) 2022 Huawei Device Co., Ltd. # SPDX-License-Identifier: GPL-2.0 # -# Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. -# Do not use in new code. -# # 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. diff --git a/test/moduletest/runtest/bin/enhancedswap_t/testcases/bin/enhancedswap05.sh b/test/moduletest/runtest/bin/enhancedswap_t/testcases/bin/enhancedswap05.sh index 6a3ac9b..2a3fd47 100644 --- a/test/moduletest/runtest/bin/enhancedswap_t/testcases/bin/enhancedswap05.sh +++ b/test/moduletest/runtest/bin/enhancedswap_t/testcases/bin/enhancedswap05.sh @@ -4,9 +4,6 @@ # Copyright (C) 2022 Huawei Device Co., Ltd. # SPDX-License-Identifier: GPL-2.0 # -# Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. -# Do not use in new code. -# # 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. diff --git a/test/moduletest/runtest/bin/enhancedswap_t_init.sh b/test/moduletest/runtest/bin/enhancedswap_t_init.sh index 6bf7e18..2b7ac70 100644 --- a/test/moduletest/runtest/bin/enhancedswap_t_init.sh +++ b/test/moduletest/runtest/bin/enhancedswap_t_init.sh @@ -4,9 +4,6 @@ # Copyright (C) 2022 Huawei Device Co., Ltd. # SPDX-License-Identifier: GPL-2.0 # -# Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. -# Do not use in new code. -# # 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. diff --git a/test/moduletest/runtest/bin/enhancedswap_t_uninit.sh b/test/moduletest/runtest/bin/enhancedswap_t_uninit.sh index a49b923..c36abbe 100644 --- a/test/moduletest/runtest/bin/enhancedswap_t_uninit.sh +++ b/test/moduletest/runtest/bin/enhancedswap_t_uninit.sh @@ -4,9 +4,6 @@ # Copyright (C) 2022 Huawei Device Co., Ltd. # SPDX-License-Identifier: GPL-2.0 # -# Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. -# Do not use in new code. -# # 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. diff --git a/test/moduletest/runtest/bin/mem_debug_t/testcases/bin/mem_debug01.sh b/test/moduletest/runtest/bin/mem_debug_t/testcases/bin/mem_debug01.sh index 6a3b872..f76af0b 100644 --- a/test/moduletest/runtest/bin/mem_debug_t/testcases/bin/mem_debug01.sh +++ b/test/moduletest/runtest/bin/mem_debug_t/testcases/bin/mem_debug01.sh @@ -4,9 +4,6 @@ # Copyright (C) 2022 Huawei Device Co., Ltd. # SPDX-License-Identifier: GPL-2.0 # -# Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. -# Do not use in new code. -# # 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. diff --git a/test/moduletest/runtest/bin/mem_debug_t/testcases/bin/mem_debug02.sh b/test/moduletest/runtest/bin/mem_debug_t/testcases/bin/mem_debug02.sh index 8ba7096..377a66d 100644 --- a/test/moduletest/runtest/bin/mem_debug_t/testcases/bin/mem_debug02.sh +++ b/test/moduletest/runtest/bin/mem_debug_t/testcases/bin/mem_debug02.sh @@ -4,9 +4,6 @@ # Copyright (C) 2022 Huawei Device Co., Ltd. # SPDX-License-Identifier: GPL-2.0 # -# Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. -# Do not use in new code. -# # 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. diff --git a/test/moduletest/runtest/bin/mem_debug_t/testcases/bin/mem_debug03.sh b/test/moduletest/runtest/bin/mem_debug_t/testcases/bin/mem_debug03.sh index aa5cf0d..cbcea7e 100644 --- a/test/moduletest/runtest/bin/mem_debug_t/testcases/bin/mem_debug03.sh +++ b/test/moduletest/runtest/bin/mem_debug_t/testcases/bin/mem_debug03.sh @@ -4,9 +4,6 @@ # Copyright (C) 2022 Huawei Device Co., Ltd. # SPDX-License-Identifier: GPL-2.0 # -# Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. -# Do not use in new code. -# # 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. diff --git a/test/moduletest/runtest/bin/mem_debug_t/testcases/bin/mem_debug04.sh b/test/moduletest/runtest/bin/mem_debug_t/testcases/bin/mem_debug04.sh index 06f6164..911d1b1 100644 --- a/test/moduletest/runtest/bin/mem_debug_t/testcases/bin/mem_debug04.sh +++ b/test/moduletest/runtest/bin/mem_debug_t/testcases/bin/mem_debug04.sh @@ -4,9 +4,6 @@ # Copyright (C) 2022 Huawei Device Co., Ltd. # SPDX-License-Identifier: GPL-2.0 # -# Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. -# Do not use in new code. -# # 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. diff --git a/test/moduletest/runtest/bin/mem_debug_t/testcases/bin/mem_debug05.sh b/test/moduletest/runtest/bin/mem_debug_t/testcases/bin/mem_debug05.sh index bf84468..9949cc9 100644 --- a/test/moduletest/runtest/bin/mem_debug_t/testcases/bin/mem_debug05.sh +++ b/test/moduletest/runtest/bin/mem_debug_t/testcases/bin/mem_debug05.sh @@ -4,9 +4,6 @@ # Copyright (C) 2022 Huawei Device Co., Ltd. # SPDX-License-Identifier: GPL-2.0 # -# Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. -# Do not use in new code. -# # 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. diff --git a/test/moduletest/runtest/bin/mem_debug_t/testcases/bin/mem_debug06.sh b/test/moduletest/runtest/bin/mem_debug_t/testcases/bin/mem_debug06.sh index fbf84c6..f245cdb 100644 --- a/test/moduletest/runtest/bin/mem_debug_t/testcases/bin/mem_debug06.sh +++ b/test/moduletest/runtest/bin/mem_debug_t/testcases/bin/mem_debug06.sh @@ -4,9 +4,6 @@ # Copyright (C) 2022 Huawei Device Co., Ltd. # SPDX-License-Identifier: GPL-2.0 # -# Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. -# Do not use in new code. -# # 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. diff --git a/test/moduletest/runtest/bin/mem_debug_t/testcases/bin/mem_debug07.sh b/test/moduletest/runtest/bin/mem_debug_t/testcases/bin/mem_debug07.sh index a09d448..8e3025b 100644 --- a/test/moduletest/runtest/bin/mem_debug_t/testcases/bin/mem_debug07.sh +++ b/test/moduletest/runtest/bin/mem_debug_t/testcases/bin/mem_debug07.sh @@ -4,9 +4,6 @@ # Copyright (C) 2022 Huawei Device Co., Ltd. # SPDX-License-Identifier: GPL-2.0 # -# Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. -# Do not use in new code. -# # 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. diff --git a/test/moduletest/runtest/bin/mem_debug_t/testcases/bin/mem_debug08.sh b/test/moduletest/runtest/bin/mem_debug_t/testcases/bin/mem_debug08.sh index c4ee052..ff4826b 100644 --- a/test/moduletest/runtest/bin/mem_debug_t/testcases/bin/mem_debug08.sh +++ b/test/moduletest/runtest/bin/mem_debug_t/testcases/bin/mem_debug08.sh @@ -4,9 +4,6 @@ # Copyright (C) 2022 Huawei Device Co., Ltd. # SPDX-License-Identifier: GPL-2.0 # -# Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. -# Do not use in new code. -# # 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. diff --git a/test/moduletest/runtest/bin/mem_debug_t/testcases/bin/mem_debug09.sh b/test/moduletest/runtest/bin/mem_debug_t/testcases/bin/mem_debug09.sh index b1720a4..9af4be4 100644 --- a/test/moduletest/runtest/bin/mem_debug_t/testcases/bin/mem_debug09.sh +++ b/test/moduletest/runtest/bin/mem_debug_t/testcases/bin/mem_debug09.sh @@ -4,9 +4,6 @@ # Copyright (C) 2022 Huawei Device Co., Ltd. # SPDX-License-Identifier: GPL-2.0 # -# Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. -# Do not use in new code. -# # 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. diff --git a/test/moduletest/runtest/bin/mem_debug_t/testcases/bin/mem_debug10.sh b/test/moduletest/runtest/bin/mem_debug_t/testcases/bin/mem_debug10.sh index d43e358..c3e1d63 100644 --- a/test/moduletest/runtest/bin/mem_debug_t/testcases/bin/mem_debug10.sh +++ b/test/moduletest/runtest/bin/mem_debug_t/testcases/bin/mem_debug10.sh @@ -4,9 +4,6 @@ # Copyright (C) 2022 Huawei Device Co., Ltd. # SPDX-License-Identifier: GPL-2.0 # -# Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. -# Do not use in new code. -# # 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. diff --git a/test/moduletest/runtest/bin/mem_debug_t_init.sh b/test/moduletest/runtest/bin/mem_debug_t_init.sh index 2162870..f3a57b0 100644 --- a/test/moduletest/runtest/bin/mem_debug_t_init.sh +++ b/test/moduletest/runtest/bin/mem_debug_t_init.sh @@ -4,9 +4,6 @@ # Copyright (C) 2022 Huawei Device Co., Ltd. # SPDX-License-Identifier: GPL-2.0 # -# Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. -# Do not use in new code. -# # 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. diff --git a/test/moduletest/runtest/bin/mem_debug_t_uninit.sh b/test/moduletest/runtest/bin/mem_debug_t_uninit.sh index ec9bbc5..90b338a 100644 --- a/test/moduletest/runtest/bin/mem_debug_t_uninit.sh +++ b/test/moduletest/runtest/bin/mem_debug_t_uninit.sh @@ -4,9 +4,6 @@ # Copyright (C) 2022 Huawei Device Co., Ltd. # SPDX-License-Identifier: GPL-2.0 # -# Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. -# Do not use in new code. -# # 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. diff --git a/test/moduletest/runtest/bin/sched_rtg_t/testcases/bin/create_process.sh b/test/moduletest/runtest/bin/sched_rtg_t/testcases/bin/create_process.sh index 6a9521c..d464621 100644 --- a/test/moduletest/runtest/bin/sched_rtg_t/testcases/bin/create_process.sh +++ b/test/moduletest/runtest/bin/sched_rtg_t/testcases/bin/create_process.sh @@ -4,9 +4,6 @@ # Copyright (C) 2022 Huawei Device Co., Ltd. # SPDX-License-Identifier: GPL-2.0 # -# Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. -# Do not use in new code. -# # 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. diff --git a/test/moduletest/runtest/bin/sched_rtg_t/testcases/bin/sched_rtg01.sh b/test/moduletest/runtest/bin/sched_rtg_t/testcases/bin/sched_rtg01.sh index 571c3b4..2177f91 100644 --- a/test/moduletest/runtest/bin/sched_rtg_t/testcases/bin/sched_rtg01.sh +++ b/test/moduletest/runtest/bin/sched_rtg_t/testcases/bin/sched_rtg01.sh @@ -4,9 +4,6 @@ # Copyright (C) 2022 Huawei Device Co., Ltd. # SPDX-License-Identifier: GPL-2.0 # -# Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. -# Do not use in new code. -# # 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. diff --git a/test/moduletest/runtest/bin/sched_rtg_t/testcases/bin/sched_rtg02.sh b/test/moduletest/runtest/bin/sched_rtg_t/testcases/bin/sched_rtg02.sh index 664fdbf..c665044 100644 --- a/test/moduletest/runtest/bin/sched_rtg_t/testcases/bin/sched_rtg02.sh +++ b/test/moduletest/runtest/bin/sched_rtg_t/testcases/bin/sched_rtg02.sh @@ -4,9 +4,6 @@ # Copyright (C) 2022 Huawei Device Co., Ltd. # SPDX-License-Identifier: GPL-2.0 # -# Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. -# Do not use in new code. -# # 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. diff --git a/test/moduletest/runtest/bin/sched_rtg_t/testcases/bin/sched_rtg03.sh b/test/moduletest/runtest/bin/sched_rtg_t/testcases/bin/sched_rtg03.sh index d4c0e8f..384ab26 100644 --- a/test/moduletest/runtest/bin/sched_rtg_t/testcases/bin/sched_rtg03.sh +++ b/test/moduletest/runtest/bin/sched_rtg_t/testcases/bin/sched_rtg03.sh @@ -4,9 +4,6 @@ # Copyright (C) 2022 Huawei Device Co., Ltd. # SPDX-License-Identifier: GPL-2.0 # -# Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. -# Do not use in new code. -# # 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. diff --git a/test/moduletest/runtest/bin/sched_rtg_t/testcases/bin/sched_rtg04.sh b/test/moduletest/runtest/bin/sched_rtg_t/testcases/bin/sched_rtg04.sh index a74fa4d..3f39855 100644 --- a/test/moduletest/runtest/bin/sched_rtg_t/testcases/bin/sched_rtg04.sh +++ b/test/moduletest/runtest/bin/sched_rtg_t/testcases/bin/sched_rtg04.sh @@ -4,9 +4,6 @@ # Copyright (C) 2022 Huawei Device Co., Ltd. # SPDX-License-Identifier: GPL-2.0 # -# Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. -# Do not use in new code. -# # 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. diff --git a/test/moduletest/runtest/bin/sched_rtg_t/testcases/bin/sched_rtg06.sh b/test/moduletest/runtest/bin/sched_rtg_t/testcases/bin/sched_rtg06.sh index 337dac9..5e2723f 100644 --- a/test/moduletest/runtest/bin/sched_rtg_t/testcases/bin/sched_rtg06.sh +++ b/test/moduletest/runtest/bin/sched_rtg_t/testcases/bin/sched_rtg06.sh @@ -4,9 +4,6 @@ # Copyright (C) 2022 Huawei Device Co., Ltd. # SPDX-License-Identifier: GPL-2.0 # -# Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. -# Do not use in new code. -# # 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. diff --git a/test/moduletest/runtest/lib/libapi.sh b/test/moduletest/runtest/lib/libapi.sh index 8616265..2cee1a0 100644 --- a/test/moduletest/runtest/lib/libapi.sh +++ b/test/moduletest/runtest/lib/libapi.sh @@ -4,9 +4,6 @@ # Copyright (C) 2022 Huawei Device Co., Ltd. # SPDX-License-Identifier: GPL-2.0 # -# Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. -# Do not use in new code. -# # 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. diff --git a/test/moduletest/runtest/lib/tst_oh.sh b/test/moduletest/runtest/lib/tst_oh.sh index 3fb9a94..3d3826d 100644 --- a/test/moduletest/runtest/lib/tst_oh.sh +++ b/test/moduletest/runtest/lib/tst_oh.sh @@ -4,9 +4,6 @@ # Copyright (C) 2022 Huawei Device Co., Ltd. # SPDX-License-Identifier: GPL-2.0 # -# Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. -# Do not use in new code. -# # 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. diff --git a/test/tracepointtest/emmc.h b/test/tracepointtest/emmc.h index 290da58..166c686 100644 --- a/test/tracepointtest/emmc.h +++ b/test/tracepointtest/emmc.h @@ -2,9 +2,6 @@ * Copyright (c) 2022 Huawei Device Co., Ltd. * SPDX-License-Identifier: GPL-2.0 * - * Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. - * Do not use in new code. - * * 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. diff --git a/test/tracepointtest/tracepoint.sh b/test/tracepointtest/tracepoint.sh index 440369f..5300644 100755 --- a/test/tracepointtest/tracepoint.sh +++ b/test/tracepointtest/tracepoint.sh @@ -4,9 +4,6 @@ # Copyright (C) 2022 Huawei Device Co., Ltd. # SPDX-License-Identifier: GPL-2.0 # -# Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. -# Do not use in new code. -# # 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. diff --git a/test/tracepointtest/tracepoint_test/tracepoint_test.c b/test/tracepointtest/tracepoint_test/tracepoint_test.c index 99b7b37..2510ee0 100644 --- a/test/tracepointtest/tracepoint_test/tracepoint_test.c +++ b/test/tracepointtest/tracepoint_test/tracepoint_test.c @@ -2,9 +2,6 @@ * Copyright (c) 2022 Huawei Device Co., Ltd. * SPDX-License-Identifier: GPL-2.0 * - * Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. - * Do not use in new code. - * * 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. diff --git a/test/tracepointtest/tracepointtestko.sh b/test/tracepointtest/tracepointtestko.sh index b3e7e1e..9da7323 100755 --- a/test/tracepointtest/tracepointtestko.sh +++ b/test/tracepointtest/tracepointtestko.sh @@ -4,9 +4,6 @@ # Copyright (C) 2022 Huawei Device Co., Ltd. # SPDX-License-Identifier: GPL-2.0 # -# Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. -# Do not use in new code. -# # 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. diff --git a/test/tracepointtest/vendoramlemmcpartition_test/vendoramlemmcpartition_test.c b/test/tracepointtest/vendoramlemmcpartition_test/vendoramlemmcpartition_test.c index bca8482..a2e0b24 100644 --- a/test/tracepointtest/vendoramlemmcpartition_test/vendoramlemmcpartition_test.c +++ b/test/tracepointtest/vendoramlemmcpartition_test/vendoramlemmcpartition_test.c @@ -2,9 +2,6 @@ * Copyright (c) 2022 Huawei Device Co., Ltd. * SPDX-License-Identifier: GPL-2.0 * - * Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. - * Do not use in new code. - * * 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. diff --git a/test/tracepointtest/vendordommap_test/vendordommap_test.c b/test/tracepointtest/vendordommap_test/vendordommap_test.c index 714b0f2..e109b62 100644 --- a/test/tracepointtest/vendordommap_test/vendordommap_test.c +++ b/test/tracepointtest/vendordommap_test/vendordommap_test.c @@ -2,9 +2,6 @@ * Copyright (c) 2022 Huawei Device Co., Ltd. * SPDX-License-Identifier: GPL-2.0 * - * Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. - * Do not use in new code. - * * 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. diff --git a/test/tracepointtest/vendordomprotectpkey_test/vendordomprotectpkey_test.c b/test/tracepointtest/vendordomprotectpkey_test/vendordomprotectpkey_test.c index 9370a08..4f67eb5 100644 --- a/test/tracepointtest/vendordomprotectpkey_test/vendordomprotectpkey_test.c +++ b/test/tracepointtest/vendordomprotectpkey_test/vendordomprotectpkey_test.c @@ -2,9 +2,6 @@ * Copyright (c) 2022 Huawei Device Co., Ltd. * SPDX-License-Identifier: GPL-2.0 * - * Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. - * Do not use in new code. - * * 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. diff --git a/test/tracepointtest/vendorfakebootpartition_test/vendorfakebootpartition_test.c b/test/tracepointtest/vendorfakebootpartition_test/vendorfakebootpartition_test.c index dbf9810..8cbbb85 100644 --- a/test/tracepointtest/vendorfakebootpartition_test/vendorfakebootpartition_test.c +++ b/test/tracepointtest/vendorfakebootpartition_test/vendorfakebootpartition_test.c @@ -2,9 +2,6 @@ * Copyright (c) 2022 Huawei Device Co., Ltd. * SPDX-License-Identifier: GPL-2.0 * - * Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. - * Do not use in new code. - * * 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. diff --git a/test/unittest/accesstokenid/accesstokenid_test.cpp b/test/unittest/accesstokenid/accesstokenid_test.cpp index 5ba93c9..4851e1d 100644 --- a/test/unittest/accesstokenid/accesstokenid_test.cpp +++ b/test/unittest/accesstokenid/accesstokenid_test.cpp @@ -2,9 +2,6 @@ * Copyright (c) 2022 Huawei Device Co., Ltd. * SPDX-License-Identifier: GPL-2.0 * - * Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. - * Do not use in new code. - * * 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. diff --git a/test/unittest/accesstokenid/accesstokenid_test.h b/test/unittest/accesstokenid/accesstokenid_test.h index d09d169..da29709 100644 --- a/test/unittest/accesstokenid/accesstokenid_test.h +++ b/test/unittest/accesstokenid/accesstokenid_test.h @@ -1,9 +1,6 @@ /* * Copyright (c) 2022 Huawei Device Co., Ltd. -# SPDX-License-Identifier: GPL-2.0 -# -# Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. -# Do not use in new code. + * SPDX-License-Identifier: GPL-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, -- Gitee From 446b4ace7af0216a080a453fce196c1cdebe6b8a Mon Sep 17 00:00:00 2001 From: gc1202 Date: Thu, 20 Oct 2022 17:21:32 +0800 Subject: [PATCH 2/8] =?UTF-8?q?test=E7=9B=AE=E5=BD=95=E4=B8=8B=E5=91=8A?= =?UTF-8?q?=E8=AD=A6=E6=B8=85=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: gc1202 --- test/fuzztest/accesstokenid/include/accesstokenidcommon.h | 4 ++-- test/fuzztest/accesstokenid/src/accesstokenidcommon.cpp | 4 ++-- test/unittest/accesstokenid/accesstokenid_test.cpp | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/test/fuzztest/accesstokenid/include/accesstokenidcommon.h b/test/fuzztest/accesstokenid/include/accesstokenidcommon.h index f516b31..55f1177 100644 --- a/test/fuzztest/accesstokenid/include/accesstokenidcommon.h +++ b/test/fuzztest/accesstokenid/include/accesstokenidcommon.h @@ -65,7 +65,7 @@ int SetfTokenid(unsigned long long *ftoken); void SetUidAndGrp(); void SetUidAndGrpOther(); void GetCurToken(unsigned long long *token); -void SetRandTokenAndCheck(unsigned long long *dataToken); +void SetRandTokenAndCheck(const unsigned long long *dataToken); void TokenTest(unsigned long long *dataToken); void ThreadTest(unsigned long long *dataToken); int AccessTokenidThreadTest(uint8_t *dataToken); @@ -73,7 +73,7 @@ int AccessTokenidGrpTest(uint8_t *dataToken); int AccessTokenidGrpTestOther(uint8_t *dataToken); void GetCurfToken(unsigned long long *ftoken); -void SetRandfTokenAndCheck(unsigned long long *dataFtoken); +void SetRandfTokenAndCheck(const unsigned long long *dataFtoken); void FTokenTest(unsigned long long *dataFtoken); void ThreadTest(unsigned long long *dataFtoken); int AccessfTokenidThreadTest(uint8_t *dataFtoken); diff --git a/test/fuzztest/accesstokenid/src/accesstokenidcommon.cpp b/test/fuzztest/accesstokenid/src/accesstokenidcommon.cpp index 1650852..fc35c97 100644 --- a/test/fuzztest/accesstokenid/src/accesstokenidcommon.cpp +++ b/test/fuzztest/accesstokenid/src/accesstokenidcommon.cpp @@ -91,7 +91,7 @@ void SetUidAndGrpOther() return; } -void SetRandTokenAndCheck(unsigned long long *dataToken) +void SetRandTokenAndCheck(const unsigned long long *dataToken) { pid_t pid = getpid(); pid_t tid = syscall(__NR_gettid); @@ -214,7 +214,7 @@ int SetfTokenid(unsigned long long *ftoken) return 0; } -void SetRandfTokenAndCheck(unsigned long long *dataFtoken) +void SetRandfTokenAndCheck(const unsigned long long *dataFtoken) { pid_t pid = getpid(); pid_t tid = syscall(__NR_gettid); diff --git a/test/unittest/accesstokenid/accesstokenid_test.cpp b/test/unittest/accesstokenid/accesstokenid_test.cpp index 4851e1d..00f6898 100644 --- a/test/unittest/accesstokenid/accesstokenid_test.cpp +++ b/test/unittest/accesstokenid/accesstokenid_test.cpp @@ -169,7 +169,7 @@ static void GetCurToken(unsigned long long *token, unsigned long long *ftoken) static void *CheckChildThreadInheritance(void *args) { - struct tokeninfo *tinfo = (struct tokeninfo *) args; + struct tokeninfo *tinfo = static_cast (args); tinfo->pid = getpid(); tinfo->tid = gettid(); @@ -182,7 +182,7 @@ static void *CheckChildThreadInheritance(void *args) static void *CheckChildThreadSetIndepent(void *args) { - struct tokeninfo *tinfo = (struct tokeninfo *) args; + struct tokeninfo *tinfo = static_cast (args); unsigned long long tokenSet = GenRand64(); unsigned long long ftokenSet = GenRand64(); unsigned long long tokenidGet = INVAL_TOKEN; -- Gitee From a425d10e6abb4f85d70c1ceb2a27703f6b093bcf Mon Sep 17 00:00:00 2001 From: wulisai Date: Thu, 27 Oct 2022 15:26:20 +0800 Subject: [PATCH 3/8] kernel_linux_build: add rss_threshold testcase Signed-off-by: Ke Liu --- .../testcases/bin/rss_monitor01.sh | 60 +++++++++++++++++++ .../testcases/bin/rss_monitor02.sh | 55 +++++++++++++++++ .../testcases/bin/rss_monitor03.sh | 55 +++++++++++++++++ test/moduletest/runtest/conf/OH_RK3568_config | 1 + test/moduletest/runtest/tests/rss_monitor_t | 26 ++++++++ 5 files changed, 197 insertions(+) create mode 100644 test/moduletest/runtest/bin/rss_monitor_t/testcases/bin/rss_monitor01.sh create mode 100644 test/moduletest/runtest/bin/rss_monitor_t/testcases/bin/rss_monitor02.sh create mode 100644 test/moduletest/runtest/bin/rss_monitor_t/testcases/bin/rss_monitor03.sh create mode 100644 test/moduletest/runtest/tests/rss_monitor_t diff --git a/test/moduletest/runtest/bin/rss_monitor_t/testcases/bin/rss_monitor01.sh b/test/moduletest/runtest/bin/rss_monitor_t/testcases/bin/rss_monitor01.sh new file mode 100644 index 0000000..a26b11b --- /dev/null +++ b/test/moduletest/runtest/bin/rss_monitor_t/testcases/bin/rss_monitor01.sh @@ -0,0 +1,60 @@ +#!/bin/sh +################################################################################ +# +# Copyright (C) 2022 Huawei Device Co., Ltd. +# SPDX-License-Identifier: GPL-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. +# +################################################################################ +# File: rss_monitor01.sh +# +# Description: Verify /proc/pid/rss take effect +# +# Authors: Liu Ke - liuke94@huawei.com +# +# History: Sep 20 2022 - init scripts +# +################################################################################ +source tst_oh.sh + +do_setup() +{ + zcat /proc/config.gz | grep CONFIG_RSS_THRESHOLD=y || tst_res TCONF "CONFIG_RSS_THRESHOLD=y not satisfied!" +} + +do_test() +{ + local ret=0 + + tst_res TINFO "Start to verify rss ." + flag=0 + while (($flag < 1)) + do + pid=$(ps -ef | grep com.ohos.systemui | awk 'NR==1 {print $2}') + rss=$(cat /proc/$pid/rss | awk -F ':' '{print$2}'| awk '{print$1}') + statusVMRss=$(cat /proc/$pid/status | grep VmRSS | awk -F ':' '{print$2}' | awk '{print$1}') + if [ "$rss"x = "$statusVMRss"x ]; then + tst_res TPASS "rss info correct." + flag=1 + else + flag=0 + fi + done + + +} + +do_clean() +{ + +} + +do_setup +do_test +do_clean +tst_exit diff --git a/test/moduletest/runtest/bin/rss_monitor_t/testcases/bin/rss_monitor02.sh b/test/moduletest/runtest/bin/rss_monitor_t/testcases/bin/rss_monitor02.sh new file mode 100644 index 0000000..1112dd2 --- /dev/null +++ b/test/moduletest/runtest/bin/rss_monitor_t/testcases/bin/rss_monitor02.sh @@ -0,0 +1,55 @@ +#!/bin/sh +################################################################################ +# +# Copyright (C) 2022 Huawei Device Co., Ltd. +# SPDX-License-Identifier: GPL-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. +# +################################################################################ +# File: rss_monitor02.sh +# +# Description: Verify /proc/pid/rss_threshold default value +# +# Authors: Liu Ke - liuke94@huawei.com +# +# History: Oct 27 2022 - init scripts +# +################################################################################ +source tst_oh.sh + +do_setup() +{ + zcat /proc/config.gz | grep CONFIG_RSS_THRESHOLD=y || tst_res TCONF "CONFIG_RSS_THRESHOLD=y not satisfied!" +} + +do_test() +{ + local ret=0 + tst_res TINFO "Start to verify rss_threshold default value ." + pid=$(ps -ef | grep com.ohos.systemui | awk 'NR==1 {print $2}') + value=$(cat /proc/$pid/rss_threshold | awk -F ':' '{print$2}'| awk '{print$1}') + echo $value + if [ "$value"x = "0"x ]; then + tst_res TPASS "rss_threshold default value correct." + else + tst_res TFAIL "rss_threshold default value incorrect." + ((ret++)) + fi + + +} + +do_clean() +{ + +} + +do_setup +do_test +do_clean +tst_exit diff --git a/test/moduletest/runtest/bin/rss_monitor_t/testcases/bin/rss_monitor03.sh b/test/moduletest/runtest/bin/rss_monitor_t/testcases/bin/rss_monitor03.sh new file mode 100644 index 0000000..b11a85b --- /dev/null +++ b/test/moduletest/runtest/bin/rss_monitor_t/testcases/bin/rss_monitor03.sh @@ -0,0 +1,55 @@ +#!/bin/sh +################################################################################ +# +# Copyright (C) 2022 Huawei Device Co., Ltd. +# SPDX-License-Identifier: GPL-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. +# +################################################################################ +# File: rss_monitor03.sh +# +# Description: Verify /proc/pid/rss_threshold value +# +# Authors: Wulisai - wulisai@h-partners.com +# +# History: Oct 24 2022 - init scripts +# +################################################################################ +source tst_oh.sh + +do_setup() +{ + zcat /proc/config.gz | grep CONFIG_RSS_THRESHOLD=y || tst_res TCONF "CONFIG_RSS_THRESHOLD=y not satisfied!" +} + +do_test() +{ + + local ret = 0 + pid=$(ps -ef | grep com.ohos.systemui | awk 'NR==1 {print $2}') + echo 2000 > /proc/$pid/rss_threshold + value=$(cat /proc/$pid/rss_threshold | awk -F ':' '{print$2}'| awk '{print$1}') + if [ "$value"x = "2000"x ]; then + tst_res TPASS "rss_threshold value correct." + else + tst_res TFAIL "rss_threshold value incorrect." + ((ret++)) + fi + + +} + +do_clean() +{ + +} + +do_setup +do_test +do_clean +tst_exit diff --git a/test/moduletest/runtest/conf/OH_RK3568_config b/test/moduletest/runtest/conf/OH_RK3568_config index 66603f4..e01c964 100644 --- a/test/moduletest/runtest/conf/OH_RK3568_config +++ b/test/moduletest/runtest/conf/OH_RK3568_config @@ -29,3 +29,4 @@ enhancedswap_t sched_rtg_t enhancedf2fs_t mem_debug_t +rss_monitor_t diff --git a/test/moduletest/runtest/tests/rss_monitor_t b/test/moduletest/runtest/tests/rss_monitor_t new file mode 100644 index 0000000..7b657ad --- /dev/null +++ b/test/moduletest/runtest/tests/rss_monitor_t @@ -0,0 +1,26 @@ +################################################################################ +# +# Copyright (C) 2022 Huawei Device Co., Ltd. +# SPDX-License-Identifier: GPL-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. +# +################################################################################ +# File: rss_monitor_t +# +# Description: rss_monitor_t testcase list +# +# Authors: Liu Ke - liuke94@huawei.com +# +# History: Sep 20 2022 - init scripts +# +################################################################################ + +rss_monitor01 rss_monitor01.sh +rss_monitor02 rss_monitor02.sh +rss_monitor03 rss_monitor03.sh + -- Gitee From cff0168a3caabdb89a87787fdf3aaec9b31ed649 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=91=A3=E6=A3=AE=E6=B5=A9?= <2506549626@qq.com> Date: Wed, 2 Nov 2022 11:19:04 +0800 Subject: [PATCH 4/8] add purgeable memory testcase Signed-off-by: Ke Liu --- .../testcases/bin/purgeable_mem01.sh | 65 +++++++++++++++++ .../testcases/bin/purgeable_mem02.sh | 71 +++++++++++++++++++ .../testcases/bin/purgeable_mem03.sh | 71 +++++++++++++++++++ test/moduletest/runtest/conf/OH_RK3568_config | 1 + test/moduletest/runtest/tests/purgeable_t | 24 +++++++ 5 files changed, 232 insertions(+) create mode 100644 test/moduletest/runtest/bin/purgeable_t/testcases/bin/purgeable_mem01.sh create mode 100644 test/moduletest/runtest/bin/purgeable_t/testcases/bin/purgeable_mem02.sh create mode 100644 test/moduletest/runtest/bin/purgeable_t/testcases/bin/purgeable_mem03.sh create mode 100644 test/moduletest/runtest/tests/purgeable_t diff --git a/test/moduletest/runtest/bin/purgeable_t/testcases/bin/purgeable_mem01.sh b/test/moduletest/runtest/bin/purgeable_t/testcases/bin/purgeable_mem01.sh new file mode 100644 index 0000000..376b939 --- /dev/null +++ b/test/moduletest/runtest/bin/purgeable_t/testcases/bin/purgeable_mem01.sh @@ -0,0 +1,65 @@ +#!/bin/sh +################################################################################ +# +# Copyright (C) 2022 Huawei Device Co., Ltd. +# SPDX-License-Identifier: GPL-2.0 +# +# Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. +# Do not use in new code. +# +# 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. +# +################################################################################ +# File: purgeable_mem01.sh +# +# Description: Static memory reservation query test +# +# Authors: Ke Liu - liuke94@huawei.com +# +# History: Nov 2 2022 - init scripts +# +################################################################################ +source tst_oh.sh + +do_setup() +{ + zcat /proc/config.gz | grep CONFIG_MEM_PURGEABLE=y || tst_res TCONF "CONFIG_MEM_PURGEABLE=y not satisfied!" +} + +do_test() +{ + local testpath=$(find / -name purgeable_cpp_test | grep -v find) + if [ ! $testpath ];then + tst_res TFAIL "can not find purgeable_cpp_test!" + fi + (cd $(echo ${testpath%purgeable_cpp_test});chmod 777 purgeable_cpp_test;./purgeable_cpp_test >mylog.log) + if [ $(grep -c -i "ok\|success\|true" ${testpath%purgeable_cpp_test}/mylog.log) -ne '0' ];then + tst_res TINFO "purgeable_cpp_test executed success." + else + tst_res TFAIL "purgeable_cpp_test executed fail!" + fi + if [ $(grep -c -i "error\|fail\|false" ${testpath%purgeable_cpp_test}/mylog.log) -ne '0' ];then + tst_res TFAIL "purgeable_cpp_test test error!" + else + tst_res TPASS "purgeable_cpp_test test pass." + fi + rm ${testpath%purgeable_cpp_test}/mylog.log + ls ${testpath%purgeable_cpp_test} >log2.log + local lastxml=$(tac log2.log | grep purgeable_cpp_test | grep xml| head -n 1) + rm ${testpath%purgeable_cpp_test}${lastxml} +} + +do_clean() +{ + rm log2.log +} + + +do_setup +do_test +do_clean +tst_exit diff --git a/test/moduletest/runtest/bin/purgeable_t/testcases/bin/purgeable_mem02.sh b/test/moduletest/runtest/bin/purgeable_t/testcases/bin/purgeable_mem02.sh new file mode 100644 index 0000000..cfdcfb1 --- /dev/null +++ b/test/moduletest/runtest/bin/purgeable_t/testcases/bin/purgeable_mem02.sh @@ -0,0 +1,71 @@ +#!/bin/sh +################################################################################ +# +# Copyright (C) 2022 Huawei Device Co., Ltd. +# SPDX-License-Identifier: GPL-2.0 +# +# Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. +# Do not use in new code. +# +# 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. +# +################################################################################ +# File: purgeable_mem02.sh +# +# Description: Static memory reservation query test +# +# Authors: Ke Liu - liuke94@huawei.com +# +# History: Nov 2 2022 - init scripts +# +################################################################################ +source tst_oh.sh + +do_setup() +{ + zcat /proc/config.gz | grep CONFIG_MEM_PURGEABLE=y || tst_res TCONF "CONFIG_MEM_PURGEABLE=y not satisfied!" +} + +do_test() +{ + local testpath=$(find / -name purgeable_cpp_test | grep -v find) + if [ ! $testpath ];then + tst_res TFAIL "can not find purgeable_cpp_test!" + fi + (cd $(echo ${testpath%purgeable_cpp_test});chmod 777 purgeable_cpp_test;./purgeable_cpp_test &>/dev/null &) + local pid=$(pidof purgeable_cpp_test) + while [ "$pid" -eq '0' ] + do + pid=$(pidof purgeable_cpp_test) + done + while [ "$pid" -ne '0' ] + do + cat /proc/meminfo | grep -i purg | grep -v grep | grep -v Name >>mem.log + pid=$(pidof purgeable_cpp_test) + done + cat mem.log | grep -v '0 kB' >mem1.log + if [ -s mem1.log ];then + tst_res TPASS "Purgeable memory reservation query test pass." + else + tst_res TFAIL "Purgeable memory reservation query test error!" + fi + ls ${testpath%purgeable_cpp_test} >log2.log + local lastxml=$(tac log2.log | grep purgeable_cpp_test | grep xml| head -n 1) + rm ${testpath%purgeable_cpp_test}${lastxml} +} + +do_clean() +{ + rm mem.log + rm mem1.log + rm log2.log +} + +do_setup +do_test +do_clean +tst_exit diff --git a/test/moduletest/runtest/bin/purgeable_t/testcases/bin/purgeable_mem03.sh b/test/moduletest/runtest/bin/purgeable_t/testcases/bin/purgeable_mem03.sh new file mode 100644 index 0000000..3ef4a69 --- /dev/null +++ b/test/moduletest/runtest/bin/purgeable_t/testcases/bin/purgeable_mem03.sh @@ -0,0 +1,71 @@ +#!/bin/sh +################################################################################ +# +# Copyright (C) 2022 Huawei Device Co., Ltd. +# SPDX-License-Identifier: GPL-2.0 +# +# Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. +# Do not use in new code. +# +# 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. +# +################################################################################ +# File: purgeable_mem03.sh +# +# Description: Static memory reservation query test +# +# Authors: Ke Liu - liuke94@huawei.com +# +# History: Nov 2 2022 - init scripts +# +################################################################################ +source tst_oh.sh + +do_setup() +{ + zcat /proc/config.gz | grep CONFIG_MEM_PURGEABLE=y || tst_res TCONF "CONFIG_MEM_PURGEABLE=y not satisfied!" +} + +do_test() +{ + local testpath=$(find / -name purgeable_cpp_test | grep -v find) + if [ ! $testpath ];then + tst_res TFAIL "can not find purgeable_cpp_test!" + fi + (cd $(echo ${testpath%purgeable_cpp_test});chmod 777 purgeable_cpp_test;./purgeable_cpp_test &>/dev/null &) + local pid= $(pidof purgeable_cpp_test) + while [ "$pid" -eq '0' ] + do + pid=$(pidof purgeable_cpp_test) + done + while [ "$pid" -ne '0' ] + do + cat /proc/${pid}/status | grep -i purg | grep -v grep | grep -v Name >>mem.log + pid=$(pidof purgeable_cpp_test) + done + cat mem.log | grep -v '0 kB' >mem1.log + if [ -s mem1.log ];then + tst_res TPASS "Purgeable memory reservation query test pass." + else + tst_res TFAIL "Purgeable memory reservation query test error!" + fi + ls ${testpath%purgeable_cpp_test} >log2.log + local lastxml=$(tac log2.log | grep purgeable_cpp_test | grep xml| head -n 1) + rm ${testpath%purgeable_cpp_test}${lastxml} +} + +do_clean() +{ + rm mem.log + rm mem1.log + rm log2.log +} + +do_setup +do_test +do_clean +tst_exit diff --git a/test/moduletest/runtest/conf/OH_RK3568_config b/test/moduletest/runtest/conf/OH_RK3568_config index e01c964..8d0d143 100644 --- a/test/moduletest/runtest/conf/OH_RK3568_config +++ b/test/moduletest/runtest/conf/OH_RK3568_config @@ -30,3 +30,4 @@ sched_rtg_t enhancedf2fs_t mem_debug_t rss_monitor_t +purgeable_t diff --git a/test/moduletest/runtest/tests/purgeable_t b/test/moduletest/runtest/tests/purgeable_t new file mode 100644 index 0000000..1d11906 --- /dev/null +++ b/test/moduletest/runtest/tests/purgeable_t @@ -0,0 +1,24 @@ +################################################################################ +## +## Copyright (C) 2022 Huawei Device Co., Ltd. +## SPDX-License-Identifier: GPL-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. +## +################################################################################ +# File: purgeable_t +# +# Description: cpuisolation testcase list +# +# Authors: Ke Liu - liuke94@huawei.com +# +# History: Nov 2 2022 - init scripts +# +################################################################################ +purgeable_mem01 purgeable_mem01.sh +purgeable_mem02 purgeable_mem02.sh +purgeable_mem03 purgeable_mem03.sh -- Gitee From 2cd5e0304e88f0a6069f2b42f84348e073a3d273 Mon Sep 17 00:00:00 2001 From: liudanning Date: Wed, 9 Nov 2022 15:57:07 +0800 Subject: [PATCH 5/8] kernel_linux_build:modify enhancedf2fs_t testcases suit Signed-off-by: liudanning --- .../testcases/bin/enhancedf2fs01.sh | 22 +++++++---- .../testcases/bin/enhancedf2fs02.sh | 24 +++++------- .../testcases/bin/enhancedf2fs03.sh | 17 ++++---- .../testcases/bin/enhancedf2fs05.sh | 19 ++++----- .../testcases/bin/enhancedf2fs07.sh | 12 ++---- .../testcases/bin/enhancedf2fs08.sh | 12 ++---- .../testcases/bin/enhancedf2fs09.sh | 9 ++--- .../testcases/bin/enhancedf2fs10.sh | 39 ++++++++++++------- .../testcases/bin/enhancedf2fs11.sh | 29 +++++++------- .../testcases/bin/enhancedf2fs12.sh | 21 +++++----- .../testcases/bin/equilibrium_init.sh | 16 +++++--- .../enhancedf2fs_t/testcases/bin/life_init.sh | 6 +-- .../testcases/bin/performance_init.sh | 16 +++++--- .../enhancedf2fs_t/testcases/bin/run_fio.sh | 9 +++-- .../runtest/bin/enhancedf2fs_t_init.sh | 20 ++++++++-- .../runtest/bin/enhancedf2fs_t_uninit.sh | 3 +- 16 files changed, 146 insertions(+), 128 deletions(-) diff --git a/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs01.sh b/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs01.sh index f7787c6..1a32333 100644 --- a/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs01.sh +++ b/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs01.sh @@ -35,8 +35,15 @@ do_test() local ret=0 tst_res TINFO "Start test discard size >= 512 blocks in life mode." + undiscard_num=$(cat /proc/fs/f2fs/${DISK_NAME}/undiscard_info |tr -cd "[0-9]") + if [ "$undiscard_num" != "" ] ;then + tst_res TPASS "Get undiscard info successfully, number is ${undiscard_num}." + else + tst_res TFAIL "Get undiscard info failed." + ret=$(( $ret + 1 )) + fi cat /sys/kernel/debug/tracing/trace_pipe | grep issue_discard >> log01.txt & - mkdir /mnt/f2fs_mount/test1 + mkdir $DISK_PATH/test1 if [ $? -eq 0 ]; then tst_res TPASS "Created test1 dir successfully." else @@ -46,10 +53,10 @@ do_test() local i=0 while [ $i -lt 30 ] do - dd if=/dev/zero of=/mnt/f2fs_mount/test1/image$i bs=8M count=1 + dd if=/dev/zero of=$DISK_PATH/test1/image$i bs=8M count=1 i=$(( $i + 1 )) done - rm -rf /mnt/f2fs_mount/test1/image*[1,3,5,7,9] + echo "y" | rm $DISK_PATH/test1/image*[1,3,5,7,9] if [ $? -eq 0 ]; then tst_res TPASS "Deleted successfully." else @@ -62,9 +69,9 @@ do_test() local blklen=$(cat log01.txt | awk 'NR == 1' | awk -F '0x' '{print$3}') if [ $((16#$blklen)) -ge 512 ]; then - tst_res TPASS "blklen >= 512 successfully." + tst_res TPASS "blklen = $blklen >= 512 successfully." else - tst_res TFAIL "blklen >= 512 failed." + tst_res TFAIL "blklen = $blklen >= 512 failed." ret=$(( $ret + 1 )) fi @@ -77,9 +84,8 @@ do_test() do_clean() { - rm log01.txt - losetup -d /dev/block/loop1 - umount /mnt/f2fs_mount + echo "y" | rm $DISK_PATH/test1/* + rmdir $DISK_PATH/test1/ } do_setup diff --git a/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs02.sh b/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs02.sh index 2fd2563..02a3aa7 100644 --- a/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs02.sh +++ b/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs02.sh @@ -41,7 +41,7 @@ do_test() cat /sys/kernel/debug/tracing/trace_pipe | grep issue_discard >> log02.txt & sh run_fio.sh > run_fio.txt & sleep 60 - mkdir /mnt/f2fs_mount/test2 + mkdir $DISK_PATH/test2 if [ $? -eq 0 ]; then tst_res TPASS "Created test2 dir successfully." else @@ -52,10 +52,10 @@ do_test() local i=0 while [ $i -lt 30 ] do - dd if=/dev/zero of=/mnt/f2fs_mount/test2/image$i bs=8M count=1 + dd if=/dev/zero of=$DISK_PATH/test2/image$i bs=8M count=1 i=$(( $i + 1 )) done - rm -rf /mnt/f2fs_mount/test2/image*[1,3,5,7,9] + echo "y" | rm $DISK_PATH/test2/image*[1,3,5,7,9] if [ $? -eq 0 ]; then tst_res TPASS "Deleted successfully." else @@ -67,7 +67,7 @@ do_test() local second=$(wc -l log02.txt | awk -F ' ' '{print$1}') sleep 90 kill %1 - + sleep 5 local err=$(cat run_fio.txt | grep err | awk -F ':' '{print$3}' | tr -cd "[0-9]") if [ $err -eq 0 ]; then tst_res TPASS "fio read successfully." @@ -78,18 +78,12 @@ do_test() local blklen=$(cat log02.txt | awk 'NR == 1' | awk -F '0x' '{print$3}') if [ $((16#$blklen)) -ge 512 ]; then - tst_res TPASS "blklen >= 512 successfully." + tst_res TPASS "blklen = $blklen >= 512 successfully." else - tst_res TFAIL "blklen >= 512 failed." + tst_res TFAIL "blklen = $blklen >= 512 failed." ret=$(( $ret + 1 )) fi - if [ $(( $second - $first )) -gt 0 ]; then - tst_res TPASS "IO perception test successfully." - else - tst_res TFAIL "IO perception test failed." - ret=$(( $ret + 1 )) - fi if [ $ret -eq 0 ];then tst_res TPASS "life mode, discard is greater than or equal to 512 block \ @@ -102,9 +96,9 @@ do_test() do_clean() { - rm -rf log02.txt - losetup -d /dev/block/loop1 - umount /mnt/f2fs_mount + echo "y" | rm $DISK_PATH/test2/* + rmdir $DISK_PATH/test2/ + echo "y" | rm log02.txt } do_setup diff --git a/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs03.sh b/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs03.sh index 88a46e2..f698712 100644 --- a/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs03.sh +++ b/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs03.sh @@ -38,7 +38,7 @@ do_test() cat /sys/kernel/debug/tracing/trace_pipe | grep issue_discard >> log03.txt & sleep 60 - mkdir /mnt/f2fs_mount/test3 + mkdir $DISK_PATH/test3 if [ $? -eq 0 ]; then tst_res TPASS "Creation test3 dir successfully." else @@ -49,10 +49,10 @@ do_test() local i=0 while [ $i -lt 50 ] do - dd if=/dev/zero of=/mnt/f2fs_mount/test3/image$i bs=512K count=1 + dd if=/dev/zero of=$DISK_PATH/test3/image$i bs=512K count=1 i=$(( $i + 1 )) done - rm -rf /mnt/f2fs_mount/test3/image*[1,3,5,7,9] + echo "y" | rm $DISK_PATH/test3/image*[1,3,5,7,9] if [ $? -eq 0 ]; then tst_res TPASS "Deleted successfully." else @@ -65,9 +65,9 @@ do_test() local blklen=$(cat log03.txt | awk 'NR == 1' | awk -F '0x' '{print$3}') if [ $((16#$blklen)) -ge 16 ];then - tst_res TPASS "blklen >= 16 successfully." + tst_res TPASS "blklen = $blklen >= 16 successfully." else - tst_res TFAIL "Log printing fail." + tst_res TFAIL "blklen = $blklen >= 16 fail." ret=$(( $ret + 1 )) fi @@ -82,9 +82,10 @@ do_test() do_clean() { - rm -rf log03.txt - losetup -d /dev/block/loop1 - umount /mnt/f2fs_mount + echo "y" | rm $DISK_PATH/test3/* + rmdir $DISK_PATH/test3/ + echo "y" | rm $DISK_PATH/f2fs_test/* + rmdir $DISK_PATH/f2fs_test/ } do_setup diff --git a/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs05.sh b/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs05.sh index f967244..0de0cdf 100644 --- a/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs05.sh +++ b/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs05.sh @@ -27,7 +27,7 @@ source performance_init.sh do_setup() { - + } do_test() @@ -37,7 +37,7 @@ do_test() tst_res TINFO "Start test discard size >= 1 block in performance mode." cat /sys/kernel/debug/tracing/trace_pipe | grep issue_discard >> log05.txt & - mkdir /mnt/f2fs_mount/test5 + mkdir $DISK_PATH/test5 if [ $? -eq 0 ]; then tst_res TPASS "Creation test5 dir successfully." else @@ -47,10 +47,10 @@ do_test() local i=0 while [ $i -lt 200 ] do - dd if=/dev/zero of=/mnt/f2fs_mount/test5/image$i bs=4k count=1 + dd if=/dev/zero of=$DISK_PATH/test5/image$i bs=4k count=1 i=$((i+1)) done - rm -rf /mnt/f2fs_mount/test5/image*[1,3,5,7,9] + echo "y" | rm $DISK_PATH/test5/image*[1,3,5,7,9] if [ $? -eq 0 ]; then tst_res TPASS "Delete successfully." else @@ -62,9 +62,9 @@ do_test() kill %1 local blklen=$(cat log05.txt | awk 'NR == 1' | awk -F '0x' '{print$3}') if [ $((16#$blklen)) -ge 1 ];then - tst_res TPASS "Log printing successfully." + tst_res TPASS "blklen = $blklen >= 1 successfully." else - tst_res TFAIL "Log printing failed." + tst_res TFAIL "blklen = $blklen >= 1 failed." ret=$(( $ret + 1 )) fi @@ -79,9 +79,10 @@ do_test() do_clean() { - rm -rf log05.txt - losetup -d /dev/block/loop1 - umount /mnt/f2fs_mount + echo "y" | rm $DISK_PATH/test5/* + rmdir $DISK_PATH/test5/ + echo "y" | rm $DISK_PATH/f2fs_test/* + rmdir $DISK_PATH/f2fs_test/ } do_setup diff --git a/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs07.sh b/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs07.sh index e0f9167..e96a80d 100644 --- a/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs07.sh +++ b/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs07.sh @@ -25,22 +25,20 @@ source tst_oh.sh do_setup() { - mkfs.f2fs -d1 -t1 -O quota $IMG_FILE - losetup /dev/block/loop1 $IMG_FILE - mount -t f2fs /dev/block/loop1 /mnt/f2fs_mount/ + } do_test() { local ret=0 - _ssr_path=/sys/fs/f2fs/loop1 + _ssr_path=/sys/fs/f2fs/${DISK_NAME} tst_res TINFO "Start test hierarchical SSR control interface." if [ $(cat $_ssr_path/hc_enable) == '0' ]; then - tst_res TPASS "default is 0 successfully." + tst_res TPASS "$_ssr_path default is 0 successfully." else - tst_res TFAIL "default not is 0 failed." + tst_res TFAIL "$_ssr_path default not is 0 failed." ret=$(( $ret + 1 )) fi @@ -56,8 +54,6 @@ do_test() do_clean() { echo $temp > $_ssr_path/hc_enable - losetup -d /dev/block/loop1 - umount /mnt/f2fs_mount } do_setup diff --git a/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs08.sh b/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs08.sh index fec1882..894ae22 100644 --- a/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs08.sh +++ b/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs08.sh @@ -25,15 +25,13 @@ source tst_oh.sh do_setup() { - mkfs.f2fs -d1 -t1 -O quota $IMG_FILE - losetup /dev/block/loop1 $IMG_FILE - mount -t f2fs /dev/block/loop1 /mnt/f2fs_mount/ + } do_test() { ret=0 - _ssr_path=/sys/fs/f2fs/loop1 + _ssr_path=/sys/fs/f2fs/${DISK_NAME} tst_res TINFO "Start test hierarchical SSR threshold configuration interface." @@ -70,7 +68,7 @@ do_test() confirm_value() { - local result_out1=$(cat /sys/fs/f2fs/loop1/$1) + local result_out1=$(cat /sys/fs/f2fs/${DISK_NAME}/$1) if [ "$result_out1" == "5242880" ]; then tst_res TPASS "$1 is 5242880 expected." return 0 @@ -82,7 +80,7 @@ confirm_value() confirm_change_value() { - local result_out2=$(cat /sys/fs/f2fs/loop1/$1) + local result_out2=$(cat /sys/fs/f2fs/${DISK_NAME}/$1) if [ "$result_out2" == "6000000" ]; then tst_res TPASS "$1 is 6000000 expected." else @@ -97,8 +95,6 @@ do_clean() echo $init_value2 > $_ssr_path/hc_warm_data_lower_limit echo $init_value3 > $_ssr_path/hc_hot_node_lower_limit echo $init_value4 > $_ssr_path/hc_warm_node_lower_limit - losetup -d /dev/block/loop1 - umount /mnt/f2fs_mount } do_setup diff --git a/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs09.sh b/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs09.sh index 73d043e..672c852 100644 --- a/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs09.sh +++ b/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs09.sh @@ -25,15 +25,13 @@ source tst_oh.sh do_setup() { - mkfs.f2fs -d1 -t1 -O quota $IMG_FILE - losetup /dev/block/loop1 $IMG_FILE - mount -t f2fs /dev/block/loop1 /mnt/f2fs_mount/ + } do_test() { ret=0 - _ssr_path=/sys/fs/f2fs/loop1 + _ssr_path=/sys/fs/f2fs/${DISK_NAME} tst_res TINFO "Start test hierarchical SSR waterline configuration interface." @@ -96,8 +94,7 @@ do_clean() echo $init_value2 > $_ssr_path/hc_warm_data_waterline echo $init_value3 > $_ssr_path/hc_hot_node_waterline echo $init_value4 > $_ssr_path/hc_warm_node_waterline - losetup -d /dev/block/loop1 - umount /mnt/f2fs_mount + } do_setup diff --git a/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs10.sh b/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs10.sh index 10f8ec3..b5dea9e 100644 --- a/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs10.sh +++ b/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs10.sh @@ -25,9 +25,7 @@ source tst_oh.sh do_setup() { - mkfs.f2fs -d1 -t1 -O quota $IMG_FILE - losetup /dev/block/loop1 $IMG_FILE - mount -t f2fs /dev/block/loop1 /mnt/f2fs_mount/ + mkdir $DISK_PATH/ } do_test() @@ -38,34 +36,40 @@ do_test() tst_res TINFO "Start test hierarchical SSR recovery function is enabled." local i=0 - while [ $i -lt 32 ] + df -h | grep -w "$DISK_NAME" | awk -F " " '{print $2}' > 1.txt + df -h | grep -w "$DISK_NAME" | awk -F " " '{print $3}' > 2.txt + total_mem=$(sed 's/.$//' 1.txt) + used_mem=$(sed 's/.$//' 2.txt | cut -d '.' -f1) + mid_mem=$(expr $total_mem - 2) + expected_mem=$(expr $mid_mem - $used_mem) + while [ $i -lt $expected_mem ] do - dd if=/dev/zero of=/mnt/f2fs_mount/image$i bs=512M count=1 + dd if=/dev/zero of=$DISK_PATH/image$i bs=1G count=1 i=$(( $i + 1 )) done - mkdir /mnt/f2fs_mount/test10 + mkdir $DISK_PATH/test10 local i=0 while [ $i -lt 5120 ] do - dd if=/dev/zero of=/mnt/f2fs_mount/test10/image$i bs=512k count=1 + dd if=/dev/zero of=$DISK_PATH/test10/image$i bs=512k count=1 i=$(( $i + 1 )) done - rm -rf /mnt/f2fs_mount/test10/image*[1,3,5,7,9] + echo "y" | rm $DISK_PATH/test10/image*[1,3,5,7,9] - echo 1 > /sys/fs/f2fs/loop1/hc_enable + echo 1 > /sys/fs/f2fs/${DISK_NAME}/hc_enable echo 1 > $_sys_path/tracing_on echo 1 > $_sys_path/events/f2fs/f2fs_grading_ssr_allocate/enable cat $_sys_path/trace_pipe | grep ssr >> log10.txt & - mkdir /mnt/f2fs_mount/test10/f2fs_grading_ssr_allocate + mkdir $DISK_PATH/test10/f2fs_grading_ssr_allocate local i=0 while [ $i -lt 200 ] do - dd if=/dev/zero of=/mnt/f2fs_mount/test10/f2fs_grading_ssr_allocate/image$i bs=4k count=1 + dd if=/dev/zero of=$DISK_PATH/test10/f2fs_grading_ssr_allocate/image$i bs=4k count=1 i=$(($i + 1)) done - rm -rf /mnt/f2fs_mount/test10/f2fs_grading_ssr_allocate/image*[1,3,5,7,9] + echo "y" | rm $DISK_PATH/test10/f2fs_grading_ssr_allocate/image*[1,3,5,7,9] sleep 180 kill %1 @@ -82,13 +86,18 @@ do_test() else tst_res TFAIL "The hierarchical SSR recovery function is enabled failed!" fi + + echo "y" | rm 1.txt + echo "y" | rm 2.txt } do_clean() { - rm -rf log10.txt - losetup -d /dev/block/loop1 - umount /mnt/f2fs_mount + echo "y" | rm $DISK_PATH/test10/f2fs_grading_ssr_allocate/* + rmdir $DISK_PATH/test10/f2fs_grading_ssr_allocate/ + echo "y" | rm $DISK_PATH/test10/* + rmdir $DISK_PATH/test10/ + echo "y" | rm $DISK_PATH/image* } do_setup diff --git a/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs11.sh b/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs11.sh index 9c89422..9e51eb7 100644 --- a/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs11.sh +++ b/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs11.sh @@ -25,9 +25,7 @@ source tst_oh.sh do_setup() { - mkfs.f2fs -d1 -t1 -O quota $IMG_FILE - losetup /dev/block/loop1 $IMG_FILE - mount -t f2fs /dev/block/loop1 /mnt/f2fs_mount/ + mkdir $DISK_PATH/f2fs_test } do_test() @@ -39,32 +37,32 @@ do_test() local i=0 while [ $i -lt 32 ] do - dd if=/dev/zero of=/mnt/f2fs_mount/image$i bs=512M count=1 + dd if=/dev/zero of=$DISK_PATH/f2fs_test/image$i bs=512M count=1 i=$(( $i+ 1 )) done - mkdir /mnt/f2fs_mount/test11 + mkdir $DISK_PATH/test11 local i=0 while [ $i -lt 5120 ] do - dd if=/dev/zero of=/mnt/f2fs_mount/test11/image$i bs=512k count=1 + dd if=/dev/zero of=$DISK_PATH/test11/image$i bs=512k count=1 i=$(( $i + 1 )) done - rm -rf /mnt/f2fs_mount/test11/image*[1,3,5,7,9] + echo "y" | rm $DISK_PATH/test11/image*[1,3,5,7,9] - echo 0 > /sys/fs/f2fs/loop1/hc_enable + echo 0 > /sys/fs/f2fs/${DISK_NAME}/hc_enable echo 1 > $_sys_path/tracing_on echo 1 > $_sys_path/events/f2fs/f2fs_grading_ssr_allocate/enable cat $_sys_path/trace_pipe | grep ssr >> log11.txt & - mkdir /mnt/f2fs_mount/test11/f2fs_grading_ssr_allocate + mkdir $DISK_PATH/test11/f2fs_grading_ssr_allocate local i=0 while [ $i -lt 200 ] do - dd if=/dev/zero of=/mnt/f2fs_mount/test11/f2fs_grading_ssr_allocate/image$i bs=4k count=1 + dd if=/dev/zero of=$DISK_PATH/test11/f2fs_grading_ssr_allocate/image$i bs=4k count=1 i=$(( $i + 1 )) done - rm -rf /mnt/f2fs_mount/test11/f2fs_grading_ssr_allocate/image*[1,3,5,7,9] + echo "y" | rm $DISK_PATH/test11/f2fs_grading_ssr_allocate/image*[1,3,5,7,9] sleep 180 kill %1 @@ -85,9 +83,12 @@ do_test() do_clean() { - rm -rf log11.txt - losetup -d /dev/block/loop1 - umount /mnt/f2fs_mount + echo "y" | rm $DISK_PATH/test11/f2fs_grading_ssr_allocate/* + rmdir $DISK_PATH/test11/f2fs_grading_ssr_allocate/ + echo "y" | rm $DISK_PATH/test11/* + rmdir $DISK_PATH/test11/ + echo "y" | rm $DISK_PATH/f2fs_test/* + rmdir $DISK_PATH/f2fs_test/ } do_setup diff --git a/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs12.sh b/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs12.sh index f80ab28..8630586 100644 --- a/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs12.sh +++ b/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/enhancedf2fs12.sh @@ -25,16 +25,14 @@ source tst_oh.sh do_setup() { - mkfs.f2fs -d1 -t1 -O quota $IMG_FILE - losetup /dev/block/loop1 $IMG_FILE - mount -t f2fs /dev/block/loop1 /mnt/f2fs_mount/ + mkdir $DISK_PATH/f2fs_test } do_test() { local ret=0 local _sys_path=/sys/kernel/debug/tracing - temp=$(cat /sys/fs/f2fs/loop1/gc_urgent) + temp=$(cat /sys/fs/f2fs/${DISK_NAME}/gc_urgent) tst_res TINFO "Start test GC function." @@ -45,12 +43,12 @@ do_test() local i=0 while [ $i -lt 512 ] do - dd if=/dev/zero of=/mnt/f2fs_mount/image$i bs=1M count=1 + dd if=/dev/zero of=$DISK_PATH/f2fs_test/image$i bs=1M count=1 i=$(( $i + 1 )) done - rm -rf /mnt/f2fs_mount/image*[1,3,5,7,9] + echo "y" | rm $DISK_PATH/f2fs_test/image*[1,3,5,7,9] - echo 1 > /sys/fs/f2fs/loop1/gc_urgent + echo 1 > /sys/fs/f2fs/${DISK_NAME}/gc_urgent sleep 60 kill %1 @@ -69,11 +67,10 @@ do_test() } do_clean() -{ - rm -rf log12.txt - echo $temp > /sys/fs/f2fs/loop1/gc_urgent - losetup -d /dev/block/loop1 - umount /mnt/f2fs_mount +{ + echo $temp > /sys/fs/f2fs/${DISK_NAME}/gc_urgent + echo "y" | rm $DISK_PATH/f2fs_test/* + rmdir $DISK_PATH/f2fs_test } do_setup diff --git a/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/equilibrium_init.sh b/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/equilibrium_init.sh index 095cd8b..6b50ec8 100644 --- a/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/equilibrium_init.sh +++ b/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/equilibrium_init.sh @@ -25,9 +25,7 @@ source tst_oh.sh state_init() { - mkfs.f2fs -d1 -t1 -O quota $IMG_FILE - losetup /dev/block/loop1 $IMG_FILE - mount -t f2fs /dev/block/loop1 /mnt/f2fs_mount/ + mkdir $DISK_PATH/f2fs_test } equilibrium_init() @@ -39,9 +37,13 @@ equilibrium_init() local a=$(cat $segs_path | grep segs | awk -F ' ' '{print$3}') local i=0 - while [ $i -lt 32 ] + df -h | grep -w "$DISK_NAME" | awk -F " " '{print $2}' > 1.txt + total_mem=$(sed 's/.$//' 1.txt) + mid_mem=$(expr $total_mem \* 82) + expected_mem=$(expr $mid_mem / 100) + while [ $i -lt $expected_mem ] do - dd if=/dev/zero of=/mnt/f2fs_mount/image$i bs=512M count=1 + dd if=/dev/zero of=$DISK_PATH/f2fs_test/image$i bs=1G count=1 i=$(( $i + 1 )) done @@ -61,7 +63,7 @@ equilibrium_init() fi sleep 60 - if [ $(cat /sys/fs/f2fs/loop1/discard_type) == '1' ];then + if [ $(cat /sys/fs/f2fs/${DISK_NAME}/discard_type) == '1' ];then tst_res TPASS "equilibrium model successfully." else tst_res TFAIL "equilibrium model failed." @@ -82,6 +84,8 @@ equilibrium_init() else tst_res TFAIL "equilibrium_init failed!" fi + + echo "y" | rm 1.txt } state_init diff --git a/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/life_init.sh b/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/life_init.sh index 72ce03a..30757a2 100644 --- a/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/life_init.sh +++ b/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/life_init.sh @@ -25,9 +25,7 @@ source tst_oh.sh state_init() { - mkfs.f2fs -d1 -t1 -O quota $IMG_FILE - losetup /dev/block/loop1 $IMG_FILE - mount -t f2fs /dev/block/loop1 /mnt/f2fs_mount/ + } life_init() @@ -51,7 +49,7 @@ life_init() ret=$(( $ret + 1 )) fi - if [ $(cat /sys/fs/f2fs/loop1/discard_type) == '0' ];then + if [ $(cat /sys/fs/f2fs/${DISK_NAME}/discard_type) == '0' ];then tst_res TPASS "life model successfully." else tst_res TFAIL "life model failed." diff --git a/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/performance_init.sh b/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/performance_init.sh index 841d136..f7bfb30 100644 --- a/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/performance_init.sh +++ b/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/performance_init.sh @@ -25,9 +25,7 @@ source tst_oh.sh state_init() { - mkfs.f2fs -d1 -t1 -O quota $IMG_FILE - losetup /dev/block/loop1 $IMG_FILE - mount -t f2fs /dev/block/loop1 /mnt/f2fs_mount/ + mkdir $DISK_PATH/f2fs_test } performance_init() @@ -39,9 +37,13 @@ performance_init() local a=$(cat $segs_path | grep segs | awk -F ' ' '{print$3}') echo "start Embedded file system $(date +%Y%m%d%H%M%S)...." >> log06.txt local i=0 - while [ $i -lt 37 ] + df -h | grep -w "$DISK_NAME" | awk -F " " '{print $2}' > 1.txt + total_mem=$(sed 's/.$//' 1.txt) + mid_mem=$(expr $total_mem \* 90) + expected_mem=$(expr $mid_mem / 100) + while [ $i -lt $expected_mem ] do - dd if=/dev/zero of=/mnt/f2fs_mount/image$i bs=512M count=1 + dd if=/dev/zero of=$DISK_PATH/f2fs_test/image$i bs=1G count=1 i=$(( $i + 1 )) done echo "end Embedded file system $(date +%Y%m%d%H%M%S)...." >> log06.txt @@ -58,7 +60,7 @@ performance_init() fi sleep 60 - if [ $(cat /sys/fs/f2fs/loop1/discard_type) == '2' ];then + if [ $(cat /sys/fs/f2fs/${DISK_NAME}/discard_type) == '2' ];then tst_res TPASS "performance model successfully." else tst_res TFAIL "performance model failed." @@ -78,6 +80,8 @@ performance_init() else tst_res TFAIL "performance_init failed!" fi + + echo "y" | rm 1.txt } state_init diff --git a/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/run_fio.sh b/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/run_fio.sh index a9b355f..f517b39 100644 --- a/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/run_fio.sh +++ b/test/moduletest/runtest/bin/enhancedf2fs_t/testcases/bin/run_fio.sh @@ -22,10 +22,11 @@ ################################################################################ run_fio() -{ - ./fio --name=rw_bg --numjobs=1 --filename=/mnt/f2fs_mount/fio-test.file \ - --bs=32768K --rw=read --ioengine=psync --refill_buffers --group_reporting \ - --runtime=360 --time_based --filesize=128M +{ + mkdir $DISK_PATH/f2fs_test + ./fio --name=rw_bg --numjobs=1 --filename=$DISK_PATH/f2fs_test/fio-test.file \ + --bs=32768K --rw=read --ioengine=sync --refill_buffers --group_reporting \ + --runtime=360 --time_based --filesize=128M } run_fio \ No newline at end of file diff --git a/test/moduletest/runtest/bin/enhancedf2fs_t_init.sh b/test/moduletest/runtest/bin/enhancedf2fs_t_init.sh index 0886d84..9174a76 100644 --- a/test/moduletest/runtest/bin/enhancedf2fs_t_init.sh +++ b/test/moduletest/runtest/bin/enhancedf2fs_t_init.sh @@ -20,19 +20,33 @@ # History: April 8 2022 - init scripts # ################################################################################ -export IMG_FILE=/data/image_f2fs create_catalogue() { - mkdir /mnt/f2fs_mount/ + export DISK_PATH=$(mount | grep f2fs | cut -F 3) + export DISK_NAME=$(df -h |grep /dev/block |grep $DISK_PATH |awk '{print $1}' |cut -d "/" -f4) +} + +test_remount() +{ + gc_merge_mount_opt=$(mount |grep gc_merge) + if [[ "$gc_merge_mount_opt" == "" ]] ;then + mount -o remount,gc_merge $DISK_PATH/ + mount -o remount,nogc_merge $DISK_PATH/ + else + mount -o remount,nogc_merge $DISK_PATH/ + mount -o remount,gc_merge $DISK_PATH/ + fi + mount -o remount,rw $DISK_PATH/ } enable_init() { - dd if=/dev/zero of=$IMG_FILE bs=1M count=20480 + } echo "***************************ENHANCED INIT START***************************" create_catalogue +test_remount enable_init echo "***************************ENHANCED INIT END*****************************" diff --git a/test/moduletest/runtest/bin/enhancedf2fs_t_uninit.sh b/test/moduletest/runtest/bin/enhancedf2fs_t_uninit.sh index 5602e4d..c4d77df 100644 --- a/test/moduletest/runtest/bin/enhancedf2fs_t_uninit.sh +++ b/test/moduletest/runtest/bin/enhancedf2fs_t_uninit.sh @@ -23,8 +23,7 @@ delete_catalogue() { - rm /mnt/f2fs_mount/* - rmdir /mnt/f2fs_mount + } echo "***************************enhanced UNINIT START**************************" -- Gitee From e2087f5a121b5837ac5b16f6c81b78f8347f507f Mon Sep 17 00:00:00 2001 From: yangyanjun Date: Tue, 15 Nov 2022 20:19:28 +0800 Subject: [PATCH 6/8] No rk3568 does not support newip. Delete the newip soft link script Signed-off-by: yangyanjun --- kernel.mk | 4 ---- 1 file changed, 4 deletions(-) diff --git a/kernel.mk b/kernel.mk index dc3343b..ee391f1 100644 --- a/kernel.mk +++ b/kernel.mk @@ -67,7 +67,6 @@ PRODUCT_PATCH_FILE := $(OHOS_BUILD_HOME)/vendor/hisilicon/watchos/patches/$(DEVI SMALL_PATCH_FILE := $(DEVICE_PATCH_DIR)/$(DEVICE_NAME)_$(BUILD_TYPE).patch KERNEL_IMAGE_FILE := $(KERNEL_SRC_TMP_PATH)/arch/$(KERNEL_ARCH)/boot/$(KERNEL_IMAGE) DEFCONFIG_FILE := $(DEVICE_NAME)_$(BUILD_TYPE)_defconfig -NEWIP_PATCH_FILE := $(OHOS_BUILD_HOME)/foundation/communication/sfc/newip/apply_newip.sh export KBUILD_OUTPUT=$(KERNEL_OBJ_TMP_PATH) @@ -92,9 +91,6 @@ ifneq ($(findstring $(BUILD_TYPE), small),) $(hide) cd $(KERNEL_SRC_TMP_PATH) && patch -p1 < $(SMALL_PATCH_FILE) endif -ifeq ($(NEWIP_PATCH_FILE), $(wildcard $(NEWIP_PATCH_FILE))) - $(hide) $(NEWIP_PATCH_FILE) $(OHOS_BUILD_HOME) $(KERNEL_SRC_TMP_PATH) $(DEVICE_NAME) ${KERNEL_VERSION} -endif $(hide) cp -rf $(KERNEL_CONFIG_PATH)/. $(KERNEL_SRC_TMP_PATH)/ $(hide) $(KERNEL_MAKE) -C $(KERNEL_SRC_TMP_PATH) ARCH=$(KERNEL_ARCH) $(KERNEL_CROSS_COMPILE) distclean $(hide) $(KERNEL_MAKE) -C $(KERNEL_SRC_TMP_PATH) ARCH=$(KERNEL_ARCH) $(KERNEL_CROSS_COMPILE) $(DEFCONFIG_FILE) -- Gitee From 7d7b4dda8be5b61f62de6bddf26c8ffd600bf16d Mon Sep 17 00:00:00 2001 From: Wang Jingjin Date: Thu, 17 Nov 2022 14:01:46 +0800 Subject: [PATCH 7/8] add unitest for sched_rtg Signed-off-by: Wang Jingjin Change-Id: I23aa4c80f3dd61d85f1e2027ac97bcc40df84b15 --- test/BUILD.gn | 14 +- test/unittest/rtg/Test.json | 19 ++ test/unittest/rtg/rtg_test.cpp | 412 +++++++++++++++++++++++++++++++++ test/unittest/rtg/rtg_test.h | 24 ++ 4 files changed, 468 insertions(+), 1 deletion(-) create mode 100644 test/unittest/rtg/Test.json create mode 100644 test/unittest/rtg/rtg_test.cpp create mode 100644 test/unittest/rtg/rtg_test.h diff --git a/test/BUILD.gn b/test/BUILD.gn index b54db21..9f03f88 100644 --- a/test/BUILD.gn +++ b/test/BUILD.gn @@ -19,7 +19,10 @@ if (is_standard_system) { if (is_standard_system) { module_output_path = "linuxkerneltest/" - linuxkerneltest_public_deps = [ "//third_party/googletest:gtest_main" ] + linuxkerneltest_public_deps = [ + "//third_party/bounds_checking_function:libsec_shared", + "//third_party/googletest:gtest_main", + ] ohos_unittest("accesstokenid_test") { module_out_path = module_output_path @@ -29,6 +32,14 @@ if (is_standard_system) { subsystem_name = "kernel" } + ohos_unittest("rtg_test") { + module_out_path = module_output_path + sources = [ "unittest/rtg/rtg_test.cpp" ] + deps = linuxkerneltest_public_deps + part_name = "linux" + subsystem_name = "kernel" + } + script_dir = "kernel/linux/build/test/moduletest/runtest" action("init_runtest") { script = "init_runtest.sh" @@ -46,6 +57,7 @@ group("linuxkerneltest") { deps = [ ":accesstokenid_test", ":init_runtest", + ":rtg_test", "fuzztest:fuzztest", #"kernel_ltp:HatsKernelTest", diff --git a/test/unittest/rtg/Test.json b/test/unittest/rtg/Test.json new file mode 100644 index 0000000..2d9fd70 --- /dev/null +++ b/test/unittest/rtg/Test.json @@ -0,0 +1,19 @@ +{ + "description": "Configuration for rtg_test", + "kits": [ + { + "push": [ + "rtg_test->/data/local/tmp/rtg_test" + ], + "type": "PushKit" + } + ], + "driver": { + "native-test-timeout": "120000", + "type": "CppTest", + "module-name": "rtg_test", + "runtime-hint": "1s", + "native-test-device-path": "/data/local/tmp" + } +} + diff --git a/test/unittest/rtg/rtg_test.cpp b/test/unittest/rtg/rtg_test.cpp new file mode 100644 index 0000000..ad78f1e --- /dev/null +++ b/test/unittest/rtg/rtg_test.cpp @@ -0,0 +1,412 @@ +/* + * Copyright (c) 2022 Huawei Device Co., Ltd. + * Licensed 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 "rtg_test.h" +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +using namespace testing::ext; +using namespace std; + +// constexpr size_t MAX_LENGTH = 100; +// constexpr size_t MAX_STR_LEN = 100; +const char RTG_SCHED_IPC_MAGIC = 0xAB; +const int RTG_ERR = -1; +const int RTG_SUCC = 0; +const int MAX_TID_NUM = 5; +const int MULTI_FRAME_NUM = 5; + +#define CMD_ID_SET_ENABLE \ + _IOWR(RTG_SCHED_IPC_MAGIC, SET_ENABLE, struct rtg_enable_data) +#define CMD_ID_SET_RTG \ + _IOWR(RTG_SCHED_IPC_MAGIC, SET_RTG, struct rtg_str_data) +#define CMD_ID_BEGIN_FRAME_FREQ \ + _IOWR(RTG_SCHED_IPC_MAGIC, BEGIN_FRAME_FREQ, struct proc_state_data) +struct rtg_enable_data { + int enable; + int len; + char *data; +}; + +struct rtg_str_data { + int type; + int len; + char *data; +}; + +struct proc_state_data { + int grp_id; + int state_param; +}; + +enum grp_ctrl_cmd { + CMD_CREATE_RTG_GRP, + CMD_ADD_RTG_THREAD, + CMD_REMOVE_RTG_THREAD, + CMD_CLEAR_RTG_GRP, + CMD_DESTROY_RTG_GRP +}; + +struct rtg_grp_data { + int rtg_cmd; + int grp_id; + int prio_type; + int rt_cnt; + int tid_num; + int tids[MAX_TID_NUM]; +}; + +struct rtg_info { + int rtg_num; + int rtgs[MULTI_FRAME_NUM]; +}; + +enum rtg_sched_cmdid { + SET_ENABLE = 1, + SET_RTG, + SET_CONFIG, + SET_RTG_ATTR, + BEGIN_FRAME_FREQ = 5, + END_FRAME_FREQ, + END_SCENE, + SET_MIN_UTIL, + SET_MARGIN, + LIST_RTG = 10, + LIST_RTG_THREAD, + SEARCH_RTG, + GET_ENABLE, + RTG_CTRL_MAX_NR, +}; + +enum rtg_type : int { + VIP = 0, + TOP_TASK_KEY, + NORMAL_TASK, + RTG_TYPE_MAX, +}; + +static int BasicOpenRtgNode() +{ + char fileName[] = "/proc/self/sched_rtg_ctrl"; + int fd = open(fileName, O_RDWR); + + if (fd < 0) { + cout << "open node err." << endl; + } + + return fd; +} + +static int EnableRtg(bool flag) +{ + struct rtg_enable_data enableData; + char configStr[] = "load_freq_switch:1;sched_cycle:1"; + + enableData.enable = flag; + enableData.len = sizeof(configStr); + enableData.data = configStr; + int fd = BasicOpenRtgNode(); + if (fd < 0) { + return RTG_ERR; + } + if (ioctl(fd, CMD_ID_SET_ENABLE, &enableData)) { + close(fd); + return RTG_ERR; + } + + close(fd); + return 0; +} + +static int CreateNewRtgGrp(int prioType, int rtNum) +{ + struct rtg_grp_data grp_data; + int ret; + int fd = BasicOpenRtgNode(); + if (fd < 0) { + return RTG_ERR; + } + (void)memset_s(&grp_data, sizeof(struct rtg_grp_data), 0, sizeof(struct rtg_grp_data)); + if ((prioType > 0) && (prioType < RTG_TYPE_MAX)) { + grp_data.prio_type = prioType; + } + if (rtNum > 0) { + grp_data.rt_cnt = rtNum; + } + grp_data.rtg_cmd = CMD_CREATE_RTG_GRP; + ret = ioctl(fd, CMD_ID_SET_RTG, &grp_data); + + close(fd); + return ret; +} + +static int DestroyRtgGrp(int GrpId) +{ + struct rtg_grp_data grp_data; + int ret; + int fd = BasicOpenRtgNode(); + if (fd < 0) { + return fd; + } + (void)memset_s(&grp_data, sizeof(struct rtg_grp_data), 0, sizeof(struct rtg_grp_data)); + grp_data.rtg_cmd = CMD_DESTROY_RTG_GRP; + grp_data.grp_id = GrpId; + ret = ioctl(fd, CMD_ID_SET_RTG, &grp_data); + + close(fd); + return ret; +} + +static int AddThreadToRtg(int tid, int grpId, int prioType) +{ + struct rtg_grp_data grp_data; + int ret; + int fd = BasicOpenRtgNode(); + if (fd < 0) { + return fd; + } + (void)memset_s(&grp_data, sizeof(struct rtg_grp_data), 0, sizeof(struct rtg_grp_data)); + grp_data.tid_num = 1; + grp_data.tids[0] = tid; + grp_data.grp_id = grpId; + grp_data.rtg_cmd = CMD_ADD_RTG_THREAD; + grp_data.prio_type = prioType; + ret = ioctl(fd, CMD_ID_SET_RTG, &grp_data); + + close(fd); + return ret; +} + +static int ClearRtgGrp(int GrpId) +{ + struct rtg_grp_data grp_data; + int ret; + int fd = BasicOpenRtgNode(); + if (fd < 0) { + return fd; + } + (void)memset_s(&grp_data, sizeof(struct rtg_grp_data), 0, sizeof(struct rtg_grp_data)); + grp_data.rtg_cmd = CMD_CLEAR_RTG_GRP; + grp_data.grp_id = GrpId; + ret = ioctl(fd, CMD_ID_SET_RTG, &grp_data); + if (ret < 0) { + return ret; + } + + close(fd); + return ret; +}; + +static int BeginFrameFreq(int grpId, int stateParam) +{ + int ret = 0; + struct proc_state_data state_data; + state_data.grp_id = grpId; + state_data.state_param = stateParam; + + int fd = BasicOpenRtgNode(); + if (fd < 0) { + return fd; + } + ret = ioctl(fd, CMD_ID_BEGIN_FRAME_FREQ, &state_data); + + close(fd); + return ret; +} + +void RtgTest::SetUp() { + // must enable rtg before use the interface + int ret = EnableRtg(true); + ASSERT_EQ(RTG_SUCC, ret); +} + +void RtgTest::TearDown() { + // disable rtg after use the interface + int ret = EnableRtg(false); + ASSERT_EQ(RTG_SUCC, ret); +} + +void RtgTest::SetUpTestCase() {} + +void RtgTest::TearDownTestCase() {} + +/** + * @tc.name: setEnableSucc + * @tc.desc: Verify the enable rtg function. + * @tc.type: FUNC + */ +HWTEST_F(RtgTest, setEnableSucc, Function | MediumTest | Level1) +{ + int ret; + + // test set enable again + ret = EnableRtg(true); + ASSERT_EQ(RTG_SUCC, ret); + + // test set disable again + ret = EnableRtg(false); + ASSERT_EQ(RTG_SUCC, ret); +} + +/** + * @tc.name: createAndDestroyRtgSucc + * @tc.desc: Verify the create and destroy rtggrp function. + * @tc.type: FUNC + */ +HWTEST_F(RtgTest, createAndDestroyRtgSucc, Function | MediumTest | Level1) +{ + int ret; + int grpId; + + grpId = CreateNewRtgGrp(NORMAL_TASK, 0); + ASSERT_GT(grpId, 0); + ret = DestroyRtgGrp(grpId); + ASSERT_EQ(ret, 0); +} + +/** + * @tc.name: destoryErrorRtgGrp + * @tc.desc: Verify Destroy function with error param. + * @tc.type: FUNC + */ +HWTEST_F(RtgTest, destoryErrorRtgGrp, Function | MediumTest | Level1) +{ + int ret; + ret = DestroyRtgGrp(-1); + ASSERT_NE(RTG_SUCC, ret); +} + +/** + * @tc.name: addRtgGrpSucc + * @tc.desc: Verify add rtg function. + * @tc.type: FUNC + */ +HWTEST_F(RtgTest, addRtgGrpSucc, Function | MediumTest | Level1) +{ + int ret; + int grpId; + int pid = getpid(); + + grpId = CreateNewRtgGrp(VIP, 0); + ASSERT_GT(grpId, 0); + ret = AddThreadToRtg(pid, grpId, VIP); + ASSERT_EQ(ret, 0); + ret = DestroyRtgGrp(grpId); + ASSERT_EQ(ret, 0); +} + +/** + * @tc.name: addRtgGrpFail + * @tc.desc: Verify add rtg function with error param. + * @tc.type: FUNC + */ +HWTEST_F(RtgTest, addRtgGrpFail, Function | MediumTest | Level1) +{ + int ret; + int grpId; + int pid = getpid(); + + grpId = CreateNewRtgGrp(VIP, 0); + ASSERT_GT(grpId, 0); + + // error tid + ret = AddThreadToRtg(-1, grpId, VIP); + ASSERT_NE(ret, 0); + + // error grpid + ret=AddThreadToRtg(pid, -1, VIP); + ASSERT_NE(ret, RTG_SUCC); + ret = DestroyRtgGrp(grpId); + ASSERT_EQ(ret, 0); +} + +/** + * @tc.name: clearRtgSucc + * @tc.desc: Verify clear rtg function. + * @tc.type: FUNC + */ +HWTEST_F(RtgTest, clearRtgSucc, Function | MediumTest | Level1) +{ + int ret; + int grpId; + int pid = getpid(); + + grpId = CreateNewRtgGrp(VIP, 0); + ASSERT_GT(grpId, 0); + ret = AddThreadToRtg(pid, grpId, VIP); + ASSERT_EQ(ret, RTG_SUCC); + ret = ClearRtgGrp(grpId); + ASSERT_EQ(ret, RTG_SUCC); + ret = DestroyRtgGrp(grpId); + ASSERT_EQ(ret, RTG_SUCC); +} + +/** + * @tc.name: clearRtgFail + * @tc.desc: Verify clear rtg function with error param. + * @tc.type: FUNC + */ +HWTEST_F(RtgTest, clearRtgFail, Function | MediumTest | Level1) +{ + int ret; + + ret = ClearRtgGrp(-1); + ASSERT_NE(ret, RTG_SUCC); +} + +/** + * @tc.name: begainFrameFreqSucc + * @tc.desc: Verify rtg frame start function. + * @tc.type: FUNC + */ +HWTEST_F(RtgTest, begainFrameFreqSucc, Function | MediumTest | Level1) +{ + int ret; + int grpId; + + grpId = CreateNewRtgGrp(VIP, 0); + ASSERT_GT(grpId, 0); + ret = BeginFrameFreq(grpId, 0); + ASSERT_EQ(ret, RTG_SUCC); + ret = DestroyRtgGrp(grpId); + ASSERT_EQ(ret, RTG_SUCC); +} + +/** + * @tc.name: begainFrameFreqFail + * @tc.desc: Verify rtg frame start function with error param. + * @tc.type: FUNC + */ +HWTEST_F(RtgTest, begainFrameFreqFail, Function | MediumTest | Level1) +{ + int ret; + ret = BeginFrameFreq(-1, 0); + ASSERT_NE(ret, RTG_SUCC); +} diff --git a/test/unittest/rtg/rtg_test.h b/test/unittest/rtg/rtg_test.h new file mode 100644 index 0000000..213c2c0 --- /dev/null +++ b/test/unittest/rtg/rtg_test.h @@ -0,0 +1,24 @@ +/* + * Copyright (c) 2022 Huawei Device Co., Ltd. + * SPDX-License-Identifier: GPL-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. + */ + +#ifndef RTG_TEST_H +#define RTG_TEST_H + +#include + +class RtgTest : public testing::Test { +public: + static void SetUpTestCase(); + static void TearDownTestCase(); + void SetUp(); + void TearDown(); +}; +#endif // RTG_TEST_H -- Gitee From 8b35894e746f6f4201efefff9e696f9073f54e34 Mon Sep 17 00:00:00 2001 From: wulisai Date: Sat, 19 Nov 2022 09:26:48 +0800 Subject: [PATCH 8/8] add mm/memcg_control.c testcase Signed-off-by: Ke Liu --- .../testcases/bin/memory_control01.sh | 49 ++++++++++++++++ .../testcases/bin/memory_control02.sh | 56 +++++++++++++++++++ .../testcases/bin/memory_control03.sh | 50 +++++++++++++++++ test/moduletest/runtest/conf/OH_RK3568_config | 1 + test/moduletest/runtest/tests/memorycontrol_t | 26 +++++++++ 5 files changed, 182 insertions(+) create mode 100644 test/moduletest/runtest/bin/memorycontrol_t/testcases/bin/memory_control01.sh create mode 100644 test/moduletest/runtest/bin/memorycontrol_t/testcases/bin/memory_control02.sh create mode 100644 test/moduletest/runtest/bin/memorycontrol_t/testcases/bin/memory_control03.sh create mode 100644 test/moduletest/runtest/tests/memorycontrol_t diff --git a/test/moduletest/runtest/bin/memorycontrol_t/testcases/bin/memory_control01.sh b/test/moduletest/runtest/bin/memorycontrol_t/testcases/bin/memory_control01.sh new file mode 100644 index 0000000..2bf7c85 --- /dev/null +++ b/test/moduletest/runtest/bin/memorycontrol_t/testcases/bin/memory_control01.sh @@ -0,0 +1,49 @@ +#!/bin/sh +################################################################################ +# +# Copyright (C) 2022 Huawei Device Co., Ltd. +# SPDX-License-Identifier: GPL-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. +# +################################################################################ +# File: memory_control01.sh +# +# Description: Verify /dev/memcg/memory.app_score +# +# Authors: Wu Lisai - wulisai@huawei-partners.com +# +# History: Nov 18 2022 - init scripts +# +################################################################################ +source tst_oh.sh + +do_setup() +{ + zcat /proc/config.gz | grep CONFIG_HYPERHOLD_MEMCG=y || tst_res TCONF "CONFIG_HYPERHOLD_MEMCG=y not satisfied!" +} + +do_test() +{ + local ret=0 + + tst_res TINFO "Start to verify mem ." + + mem=$(cat /dev/memcg/memory.app_score) + echo $mem + +} + +do_clean() +{ + +} + +do_setup +do_test +do_clean +tst_exit diff --git a/test/moduletest/runtest/bin/memorycontrol_t/testcases/bin/memory_control02.sh b/test/moduletest/runtest/bin/memorycontrol_t/testcases/bin/memory_control02.sh new file mode 100644 index 0000000..f014830 --- /dev/null +++ b/test/moduletest/runtest/bin/memorycontrol_t/testcases/bin/memory_control02.sh @@ -0,0 +1,56 @@ +#!/bin/sh +################################################################################ +# +# Copyright (C) 2022 Huawei Device Co., Ltd. +# SPDX-License-Identifier: GPL-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. +# +################################################################################ +# File: memory_control02.sh +# +# Description: Verify /dev/memcg/memory.ub_ufs2zram_ratio +# +# Authors: Wu Lisai - wulisai@huawei-partners.com +# +# History: Nov 18 2022 - init scripts +# +################################################################################ +source tst_oh.sh + +do_setup() +{ + zcat /proc/config.gz | grep CONFIG_HYPERHOLD_MEMCG=y || tst_res TCONF "CONFIG_HYPERHOLD_MEMCG=y not satisfied!" +} + +do_test() +{ + local ret=0 + + tst_res TINFO "Start to verify mem ." + + mem=$(cat /dev/memcg/memory.ub_ufs2zram_ratio) + echo $mem + echo $ret + if [ "$mem"x = "0"x ]; then + tst_res TPASS "memory_control default value correct." + else + tst_res TFAIL "memory_control default value incorrect." + ((ret++)) + fi + +} + +do_clean() +{ + +} + +do_setup +do_test +do_clean +tst_exit diff --git a/test/moduletest/runtest/bin/memorycontrol_t/testcases/bin/memory_control03.sh b/test/moduletest/runtest/bin/memorycontrol_t/testcases/bin/memory_control03.sh new file mode 100644 index 0000000..f308e3c --- /dev/null +++ b/test/moduletest/runtest/bin/memorycontrol_t/testcases/bin/memory_control03.sh @@ -0,0 +1,50 @@ +#!/bin/sh +################################################################################ +# +# Copyright (C) 2022 Huawei Device Co., Ltd. +# SPDX-License-Identifier: GPL-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. +# +################################################################################ +# File: memory_control03.sh +# +# Description: Verify /dev/memcg/memory.name +# +# Authors: Wu Lisai - wulisai@huawei-partners.com +# +# History: Nov 18 2022 - init scripts +# +################################################################################ +source tst_oh.sh + +do_setup() +{ + zcat /proc/config.gz | grep CONFIG_HYPERHOLD_MEMCG=y || tst_res TCONF "CONFIG_HYPERHOLD_MEMCG=y not satisfied!" +} + +do_test() +{ + local ret=0 + + tst_res TINFO "Start to verify mem ." + + echo "test_cgroup" > /dev/memcg/memory.name + mem=$(cat /dev/memcg/memory.name) + echo $mem + +} + +do_clean() +{ + +} + +do_setup +do_test +do_clean +tst_exit diff --git a/test/moduletest/runtest/conf/OH_RK3568_config b/test/moduletest/runtest/conf/OH_RK3568_config index 8d0d143..6daf876 100644 --- a/test/moduletest/runtest/conf/OH_RK3568_config +++ b/test/moduletest/runtest/conf/OH_RK3568_config @@ -31,3 +31,4 @@ enhancedf2fs_t mem_debug_t rss_monitor_t purgeable_t +memorycontrol_t diff --git a/test/moduletest/runtest/tests/memorycontrol_t b/test/moduletest/runtest/tests/memorycontrol_t new file mode 100644 index 0000000..a810a9b --- /dev/null +++ b/test/moduletest/runtest/tests/memorycontrol_t @@ -0,0 +1,26 @@ +################################################################################ +# +# Copyright (C) 2022 Huawei Device Co., Ltd. +# SPDX-License-Identifier: GPL-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. +# +################################################################################ +# File: memorycontrol_t +# +# Description: memorycontrol_t testcase list +# +# Authors: Wu Lisai - wulisai@huawei-partners.com +# +# History: Nov 18 2022 - init scripts +# +################################################################################ + +memory_control01 memory_control01.sh +memory_control02 memory_control02.sh +memory_control03 memory_control03.sh + -- Gitee