Skip to content

Commit

Permalink
core: pta: drop benchmark
Browse files Browse the repository at this point in the history
Drop Benchmark PTA as current implementation is non-function
and obsolete, and it's not supported anymore.

Acked-by: Jens Wiklander <[email protected]>
Acked-by: Etienne Carriere <[email protected]>
Signed-off-by: Igor Opaniuk <[email protected]>
  • Loading branch information
igoropaniuk committed Jan 23, 2024
1 parent a6f60e0 commit 3778335
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 313 deletions.
5 changes: 0 additions & 5 deletions core/arch/arm/kernel/secure_partition.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
/*
* Copyright (c) 2020-2024, Arm Limited.
*/
#include <bench.h>
#include <crypto/crypto.h>
#include <initcall.h>
#include <kernel/boot.h>
Expand Down Expand Up @@ -1616,8 +1615,6 @@ static TEE_Result sp_enter_invoke_cmd(struct ts_session *s,
uint32_t panicked = false;
uint32_t panic_code = 0;

bm_timestamp();

sp_regs = &ctx->sp_regs;
ts_push_current_session(s);

Expand Down Expand Up @@ -1661,8 +1658,6 @@ static TEE_Result sp_enter_invoke_cmd(struct ts_session *s,
sess = ts_pop_current_session();
assert(sess == s);

bm_timestamp();

return res;
}

Expand Down
1 change: 0 additions & 1 deletion core/arch/arm/kernel/spmc_sp_handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
* Copyright (c) 2021-2024, Arm Limited
*/
#include <assert.h>
#include <bench.h>
#include <io.h>
#include <kernel/panic.h>
#include <kernel/secure_partition.h>
Expand Down
60 changes: 0 additions & 60 deletions core/include/bench.h

This file was deleted.

215 changes: 0 additions & 215 deletions core/pta/benchmark.c

This file was deleted.

1 change: 0 additions & 1 deletion core/pta/sub.mk
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
subdirs-$(CFG_TEE_CORE_EMBED_INTERNAL_TESTS) += tests

srcs-$(CFG_ATTESTATION_PTA) += attestation.c
srcs-$(CFG_TEE_BENCHMARK) += benchmark.c
srcs-$(CFG_DEVICE_ENUM_PTA) += device.c
srcs-$(CFG_TA_GPROF_SUPPORT) += gprof.c
ifeq ($(CFG_WITH_USER_TA),y)
Expand Down
5 changes: 0 additions & 5 deletions core/tee/entry_std.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
*/

#include <assert.h>
#include <bench.h>
#include <compiler.h>
#include <initcall.h>
#include <io.h>
Expand Down Expand Up @@ -425,8 +424,6 @@ static void entry_invoke_command(struct optee_msg_arg *arg, uint32_t num_params)
struct tee_ta_param param = { 0 };
uint64_t saved_attr[TEE_NUM_PARAMS] = { 0 };

bm_timestamp();

res = copy_in_params(arg->params, num_params, &param, saved_attr);
if (res != TEE_SUCCESS)
goto out;
Expand All @@ -440,8 +437,6 @@ static void entry_invoke_command(struct optee_msg_arg *arg, uint32_t num_params)
res = tee_ta_invoke_command(&err_orig, s, NSAPP_IDENTITY,
TEE_TIMEOUT_INFINITE, arg->func, &param);

bm_timestamp();

tee_ta_put_session(s);

copy_out_param(&param, num_params, arg->params, saved_attr);
Expand Down
26 changes: 0 additions & 26 deletions lib/libutee/include/pta_benchmark.h

This file was deleted.

0 comments on commit 3778335

Please sign in to comment.