Skip to content

Commit

Permalink
tools/selftests: add mq_perf_tests
Browse files Browse the repository at this point in the history
Add the mq_perf_tests tool I used when creating my mq performance patch.
Also add a local .gitignore to keep the binaries from showing up in git
status output.

[[email protected]: checkpatch fixes]
Signed-off-by: Doug Ledford <[email protected]>
Cc: Stephen Rothwell <[email protected]>
Cc: Manfred Spraul <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Acked-by: KOSAKI Motohiro <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Doug Ledford authored and torvalds committed Jun 1, 2012
1 parent 113289c commit 7820b07
Show file tree
Hide file tree
Showing 3 changed files with 746 additions and 1 deletion.
2 changes: 2 additions & 0 deletions tools/testing/selftests/mqueue/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
mq_open_tests
mq_perf_tests
4 changes: 3 additions & 1 deletion tools/testing/selftests/mqueue/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
all:
gcc -O2 -lrt mq_open_tests.c -o mq_open_tests
gcc -O2 -lrt -lpthread -lpopt -o mq_perf_tests mq_perf_tests.c

run_tests:
./mq_open_tests /test1
./mq_perf_tests

clean:
rm -f mq_open_tests
rm -f mq_open_tests mq_perf_tests
Loading

0 comments on commit 7820b07

Please sign in to comment.