summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ogness <john.ogness@linutronix.de>2018-02-20 15:03:14 +0100
committerJohn Ogness <john.ogness@linutronix.de>2018-02-20 15:03:14 +0100
commit021b32acd3cec8e255dd47681939797ec64b8206 (patch)
treef6aa8e57b5bbc8045ae9ec87f4cebac764149ebf
parentdba99eeb7689d594f9d704d8b7de15432279aa82 (diff)
tools: rename 'rtex' tool to 'pgflt'
The rtex tool only demonstrates prefaultingn to avoid runtime page faults. It makes more sense to call it pgflt. Signed-off-by: John Ogness <john.ogness@linutronix.de>
-rw-r--r--schulung_tools/pgflt/Makefile7
-rw-r--r--schulung_tools/pgflt/README.txt (renamed from schulung_tools/rtex/README.txt)6
-rw-r--r--schulung_tools/pgflt/func.c (renamed from schulung_tools/rtex/func.c)0
-rw-r--r--schulung_tools/pgflt/main.c (renamed from schulung_tools/rtex/main.c)0
-rw-r--r--schulung_tools/pgflt/rt.c (renamed from schulung_tools/rtex/rt.c)0
-rw-r--r--schulung_tools/rtex/Makefile7
6 files changed, 10 insertions, 10 deletions
diff --git a/schulung_tools/pgflt/Makefile b/schulung_tools/pgflt/Makefile
new file mode 100644
index 0000000..fb70f96
--- /dev/null
+++ b/schulung_tools/pgflt/Makefile
@@ -0,0 +1,7 @@
+pgflt: main.c func.c rt.c
+ gcc -O0 -o$@ $+ -lrt
+
+clean:
+ rm -f pgflt
+
+.PHONY: clean
diff --git a/schulung_tools/rtex/README.txt b/schulung_tools/pgflt/README.txt
index ce33bcf..6bc49ba 100644
--- a/schulung_tools/rtex/README.txt
+++ b/schulung_tools/pgflt/README.txt
@@ -1,4 +1,4 @@
-The rtex program demonstrates the importance of using several tricks to
+The pgflt program demonstrates the importance of using several tricks to
avoid page faults and memory allocation during critical runtime. It displays
the amount of time taken and generated page faults when performing various
tasks. This clearly shows the expense due to page faults.
@@ -17,7 +17,7 @@ running the test without any rt tweaks
- first big malloc+access very expensive
- second big malloc+access very expensive
- first big stack very expensive
-$ sudo ./rtex 0x10
+$ sudo ./pgflt 0x10
options: 0x10
5715 ns 0 faults : main setup
17466150 ns 2561 faults : testfunc_malloc (0)
@@ -33,7 +33,7 @@ running the test with all rt tweaks
- main setup very slow (does it really matter?)
- no expensive malloc+access calls
- no expensive big stacks
-$ sudo ./rtex 0x1f
+$ sudo ./pgflt 0x1f
options: 0x1f
31276098 ns 7083 faults : main setup
2657466 ns 0 faults : testfunc_malloc (0)
diff --git a/schulung_tools/rtex/func.c b/schulung_tools/pgflt/func.c
index 4b88166..4b88166 100644
--- a/schulung_tools/rtex/func.c
+++ b/schulung_tools/pgflt/func.c
diff --git a/schulung_tools/rtex/main.c b/schulung_tools/pgflt/main.c
index a68baf4..a68baf4 100644
--- a/schulung_tools/rtex/main.c
+++ b/schulung_tools/pgflt/main.c
diff --git a/schulung_tools/rtex/rt.c b/schulung_tools/pgflt/rt.c
index 86a6506..86a6506 100644
--- a/schulung_tools/rtex/rt.c
+++ b/schulung_tools/pgflt/rt.c
diff --git a/schulung_tools/rtex/Makefile b/schulung_tools/rtex/Makefile
deleted file mode 100644
index 330bc01..0000000
--- a/schulung_tools/rtex/Makefile
+++ /dev/null
@@ -1,7 +0,0 @@
-rtex: main.c func.c rt.c
- gcc -O0 $+ -o$@
-
-clean:
- rm -f rtex
-
-.PHONY: clean