You've already forked linux-rockchip
mirror of
https://github.com/armbian/linux-rockchip.git
synced 2026-01-06 11:08:10 -08:00
tools/selftests: add mq_perf_tests
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. [akpm@linux-foundation.org: checkpatch fixes] Signed-off-by: Doug Ledford <dledford@redhat.com> Cc: Stephen Rothwell <sfr@canb.auug.org.au> Cc: Manfred Spraul <manfred@colorfullife.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Acked-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
113289cc08
commit
7820b0715b
2
tools/testing/selftests/mqueue/.gitignore
vendored
Normal file
2
tools/testing/selftests/mqueue/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
mq_open_tests
|
||||
mq_perf_tests
|
||||
@@ -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
|
||||
|
||||
741
tools/testing/selftests/mqueue/mq_perf_tests.c
Normal file
741
tools/testing/selftests/mqueue/mq_perf_tests.c
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user