perf bench: Add benchmark of find_next_bit
[linux-2.6-microblaze.git] / tools / perf / builtin-bench.c
index cad31b1..4f17603 100644 (file)
@@ -11,6 +11,7 @@
  * Available benchmark collection list:
  *
  *  sched ... scheduler and IPC performance
+ *  syscall ... System call performance
  *  mem   ... memory access performance
  *  numa  ... NUMA scheduling and MM performance
  *  futex ... Futex performance
@@ -49,9 +50,16 @@ static struct bench sched_benchmarks[] = {
        { NULL,         NULL,                                           NULL                    }
 };
 
+static struct bench syscall_benchmarks[] = {
+       { "basic",      "Benchmark for basic getppid(2) calls",         bench_syscall_basic     },
+       { "all",        "Run all syscall benchmarks",                   NULL                    },
+       { NULL,         NULL,                                           NULL                    },
+};
+
 static struct bench mem_benchmarks[] = {
        { "memcpy",     "Benchmark for memcpy() functions",             bench_mem_memcpy        },
        { "memset",     "Benchmark for memset() functions",             bench_mem_memset        },
+       { "find_bit",   "Benchmark for find_bit() functions",           bench_mem_find_bit      },
        { "all",        "Run all memory access benchmarks",             NULL                    },
        { NULL,         NULL,                                           NULL                    }
 };
@@ -90,6 +98,7 @@ struct collection {
 
 static struct collection collections[] = {
        { "sched",      "Scheduler and IPC benchmarks",                 sched_benchmarks        },
+       { "syscall",    "System call benchmarks",                       syscall_benchmarks      },
        { "mem",        "Memory access benchmarks",                     mem_benchmarks          },
 #ifdef HAVE_LIBNUMA_SUPPORT
        { "numa",       "NUMA scheduling and MM benchmarks",            numa_benchmarks         },