jlayton/lockperf.git
11 years agoRename perf1 and perf2 to posix01 and posix02
Jeff Layton [Sat, 8 Jun 2013 10:14:14 +0000 (06:14 -0400)]
Rename perf1 and perf2 to posix01 and posix02

...in preparation for tests that do other types of locking.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
11 years agoperf1: don't close the file in critical section
Jeff Layton [Tue, 4 Jun 2013 19:12:26 +0000 (15:12 -0400)]
perf1: don't close the file in critical section

Signed-off-by: Jeff Layton <jlayton@redhat.com>
11 years agoperf2: add stats gathering
Jeff Layton [Tue, 4 Jun 2013 19:10:51 +0000 (15:10 -0400)]
perf2: add stats gathering

Signed-off-by: Jeff Layton <jlayton@redhat.com>
11 years agoperf1: add some stats gathering
Jeff Layton [Tue, 4 Jun 2013 17:11:51 +0000 (13:11 -0400)]
perf1: add some stats gathering

Use clock_gettime to gather some basic performance data.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
11 years agognulib: add timespec-add/sub definitions from gnulib
Jeff Layton [Tue, 4 Jun 2013 17:32:08 +0000 (13:32 -0400)]
gnulib: add timespec-add/sub definitions from gnulib

Signed-off-by: Jeff Layton <jlayton@redhat.com>
11 years agoautoconfiscate the tree
Jeff Layton [Tue, 4 Jun 2013 17:18:02 +0000 (13:18 -0400)]
autoconfiscate the tree

Signed-off-by: Jeff Layton <jlayton@redhat.com>
11 years agoFix up a couple of compiler nits
Jeff Layton [Tue, 4 Jun 2013 17:52:27 +0000 (13:52 -0400)]
Fix up a couple of compiler nits

Signed-off-by: Jeff Layton <jlayton@redhat.com>
11 years agoMakefile: fix perf2 rule
Jeff Layton [Fri, 3 May 2013 11:16:38 +0000 (07:16 -0400)]
Makefile: fix perf2 rule

Signed-off-by: Jeff Layton <jlayton@redhat.com>
11 years agoMakefile: add rules to build perf2
Jeff Layton [Fri, 3 May 2013 11:15:20 +0000 (07:15 -0400)]
Makefile: add rules to build perf2

Signed-off-by: Jeff Layton <jlayton@redhat.com>
11 years agoperf2: add a new test
Jeff Layton [Fri, 3 May 2013 11:11:42 +0000 (07:11 -0400)]
perf2: add a new test

Fork off a bunch of children. Create a file in a directory for each one
and then have the child lock and unlock that file repeatedly.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
11 years agoperf1: check argv[optind] instead of argv[1]
Jeff Layton [Fri, 3 May 2013 10:56:14 +0000 (06:56 -0400)]
perf1: check argv[optind] instead of argv[1]

Signed-off-by: Jeff Layton <jlayton@redhat.com>
11 years agoperf1: comment cleanup
Jeff Layton [Fri, 3 May 2013 10:54:23 +0000 (06:54 -0400)]
perf1: comment cleanup

Signed-off-by: Jeff Layton <jlayton@redhat.com>
11 years agoAdd a simple Makefile
Jeff Layton [Wed, 1 May 2013 18:52:56 +0000 (14:52 -0400)]
Add a simple Makefile

Signed-off-by: Jeff Layton <jlayton@redhat.com>
11 years agoperf1: fix up some build-breaking bugs
Jeff Layton [Wed, 1 May 2013 13:42:20 +0000 (09:42 -0400)]
perf1: fix up some build-breaking bugs

Signed-off-by: Jeff Layton <jlayton@redhat.com>
11 years agoInitial commit
Jeff Layton [Wed, 1 May 2013 13:38:59 +0000 (09:38 -0400)]
Initial commit

...with initial perf1 test.