int bench_sched_pipe(int argc, const char **argv);
 int bench_syscall_basic(int argc, const char **argv);
 int bench_syscall_getpgid(int argc, const char **argv);
+int bench_syscall_execve(int argc, const char **argv);
 int bench_mem_memcpy(int argc, const char **argv);
 int bench_mem_memset(int argc, const char **argv);
 int bench_mem_find_bit(int argc, const char **argv);
 
 #include <sys/time.h>
 #include <sys/syscall.h>
 #include <sys/types.h>
+#include <sys/wait.h>
 #include <unistd.h>
 #include <stdlib.h>
 
        NULL
 };
 
+static void test_execve(void)
+{
+       const char *pathname = "/bin/true";
+       char *const argv[] = { (char *)pathname, NULL };
+       pid_t pid = fork();
+
+       if (pid < 0) {
+               fprintf(stderr, "fork failed\n");
+               exit(1);
+       } else if (pid == 0) {
+               execve(pathname, argv, NULL);
+               fprintf(stderr, "execve /bin/true failed\n");
+               exit(1);
+       } else {
+               if (waitpid(pid, NULL, 0) < 0) {
+                       fprintf(stderr, "waitpid failed\n");
+                       exit(1);
+               }
+       }
+}
+
 static int bench_syscall_common(int argc, const char **argv, int syscall)
 {
        struct timeval start, stop, diff;
                case __NR_getpgid:
                        getpgid(0);
                        break;
+               case __NR_execve:
+                       test_execve();
+                       /* Only loop 10000 times to save time */
+                       if (i == 10000)
+                               loops = 10000;
+                       break;
                default:
                        break;
                }
        case __NR_getpgid:
                name = "getpgid()";
                break;
+       case __NR_execve:
+               name = "execve()";
+               break;
        default:
                break;
        }
 {
        return bench_syscall_common(argc, argv, __NR_getpgid);
 }
+
+int bench_syscall_execve(int argc, const char **argv)
+{
+       return bench_syscall_common(argc, argv, __NR_execve);
+}
 
 static struct bench syscall_benchmarks[] = {
        { "basic",      "Benchmark for basic getppid(2) calls",         bench_syscall_basic     },
        { "getpgid",    "Benchmark for getpgid(2) calls",               bench_syscall_getpgid   },
+       { "execve",     "Benchmark for execve(2) calls",                bench_syscall_execve    },
        { "all",        "Run all syscall benchmarks",                   NULL                    },
        { NULL,         NULL,                                           NULL                    },
 };