From cf1cdbc2d08bff5bc1cd02bf85010bc8bf52e2a0 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Tue, 27 May 2025 11:14:57 +0200 Subject: SCAN-RSS: Add AspectC++ support --- SCAN-RSS/include/dfatool_host.ah | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 SCAN-RSS/include/dfatool_host.ah (limited to 'SCAN-RSS/include/dfatool_host.ah') diff --git a/SCAN-RSS/include/dfatool_host.ah b/SCAN-RSS/include/dfatool_host.ah new file mode 100644 index 0000000..6d2fad5 --- /dev/null +++ b/SCAN-RSS/include/dfatool_host.ah @@ -0,0 +1,29 @@ +#pragma once + +#include +#include "dfatool_host_dpu.ah" + +aspect DfatoolHostTiming : public DfatoolHostDPUTiming { + unsigned long n_elements; + unsigned int element_size; + + virtual int getKernel() { return 1; } + + DfatoolHostTiming() { + element_size = sizeof(T); + } + + advice call("% input_params(...)") : after() { + Params* p = tjp->result(); + n_elements = p->input_size; + printf("[>>] SCAN-RSS | n_dpus=%u n_elements=%lu\n", NR_DPUS, n_elements); + } + + advice call("% scan_host(...)") : after() { + printf("[--] SCAN-RSS | n_dpus=%u n_elements=%lu\n", n_dpus, n_elements); + } + + advice execution("% main(...)") : after() { + printf("[<<] SCAN-RSS | n_dpus=%u n_elements=%lu\n", NR_DPUS, n_elements); + } +}; -- cgit v1.2.3