diff options
author | Birte Kristina Friesel <birte.friesel@uos.de> | 2025-05-27 11:45:23 +0200 |
---|---|---|
committer | Birte Kristina Friesel <birte.friesel@uos.de> | 2025-05-27 11:45:23 +0200 |
commit | 29accf68f9f8914e83a271f58ceee088892503a1 (patch) | |
tree | b64162a4c0d13f48ee00b9acf18b683be5fa81cd /SCAN-SSA/include/dfatool_host.ah | |
parent | 75353ccaf532988b7b79b538e51c8d5d4c6ab9a3 (diff) |
SCAN-SSA: add dfatool support
Diffstat (limited to 'SCAN-SSA/include/dfatool_host.ah')
-rw-r--r-- | SCAN-SSA/include/dfatool_host.ah | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/SCAN-SSA/include/dfatool_host.ah b/SCAN-SSA/include/dfatool_host.ah new file mode 100644 index 0000000..6d2fad5 --- /dev/null +++ b/SCAN-SSA/include/dfatool_host.ah @@ -0,0 +1,29 @@ +#pragma once + +#include <sys/time.h> +#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); + } +}; |