aboutsummaryrefslogtreecommitdiffhomepage
path: root/trace_profile/src
diff options
context:
space:
mode:
authorjohannst <johannst@users.noreply.github.com>2025-03-14 01:19:37 +0000
committerjohannst <johannst@users.noreply.github.com>2025-03-14 01:19:37 +0000
commitb6627f53bf459334446bb1e2c51728a764c8651d (patch)
tree91d1326986ddb28a4bf29071c6db1bd379814402 /trace_profile/src
parent2413e9cbad620ca20b3aaffeb9cf4bb132e6113f (diff)
downloadnotes-b6627f53bf459334446bb1e2c51728a764c8651d.tar.gz
notes-b6627f53bf459334446bb1e2c51728a764c8651d.zip
deploy: cb9e06f3a5bd9d42494e6abdaf61fb3fe19d4ea4
Diffstat (limited to 'trace_profile/src')
-rw-r--r--trace_profile/src/Makefile8
-rw-r--r--trace_profile/src/noploop.c10
2 files changed, 0 insertions, 18 deletions
diff --git a/trace_profile/src/Makefile b/trace_profile/src/Makefile
deleted file mode 100644
index 7e887b8..0000000
--- a/trace_profile/src/Makefile
+++ /dev/null
@@ -1,8 +0,0 @@
-ipc: noploop
- perf stat -e cycles,instructions -- ./noploop
-
-noploop:
- $(CC) -o noploop noploop.c
-
-clean:
- $(RM) noploop
diff --git a/trace_profile/src/noploop.c b/trace_profile/src/noploop.c
deleted file mode 100644
index 76e664f..0000000
--- a/trace_profile/src/noploop.c
+++ /dev/null
@@ -1,10 +0,0 @@
-#define NOP4 "nop\nnop\nnop\nnop\n"
-#define NOP32 NOP4 NOP4 NOP4 NOP4 NOP4 NOP4 NOP4 NOP4
-#define NOP256 NOP32 NOP32 NOP32 NOP32 NOP32 NOP32 NOP32 NOP32
-#define NOP2048 NOP256 NOP256 NOP256 NOP256 NOP256 NOP256 NOP256 NOP256
-
-int main() {
- for (unsigned i = 0; i < 2000000; ++i) {
- asm volatile(NOP2048);
- }
-}