diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2025-05-14 14:26:54 +0200 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2025-05-14 14:26:54 +0200 |
commit | 88f100f61c6be10c1c917dbe4f95afd5aa484532 (patch) | |
tree | 8c3bcb5dc9c9e72541fa90b822e9efbe2f7dcac6 /BS/include/dfatool_host.ah | |
parent | 4052d7b4c0e1a59419f07642b9a33088f5745d28 (diff) |
BS: Add AspectC++ support
Diffstat (limited to 'BS/include/dfatool_host.ah')
-rw-r--r-- | BS/include/dfatool_host.ah | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/BS/include/dfatool_host.ah b/BS/include/dfatool_host.ah new file mode 100644 index 0000000..2f55c40 --- /dev/null +++ b/BS/include/dfatool_host.ah @@ -0,0 +1,27 @@ +#pragma once + +#include <sys/time.h> +#include "dfatool_host_dpu.ah" + +aspect DfatoolHostTiming : public DfatoolHostDPUTiming { + + virtual int getKernel() { return 1; } + + DfatoolHostTiming() { + element_size = sizeof(uint32_t); + } + + advice call("% input_params(...)"): after() { + Params* p = tjp->result(); + input_size = INPUT_SIZE + p->num_querys; + printf("[>>] BS | n_dpus=%u n_elements=%lu\n", NR_DPUS, input_size); + } + + advice call("% binarySearch(...)") : after() { + printf("[--] BS | n_dpus=%u n_elements=%lu\n", NR_DPUS, input_size); + } + + advice execution("% main(...)") : after() { + printf("[<<] BS | n_dpus=%u n_elements=%lu\n", NR_DPUS, input_size); + } +}; |