From owner-svn-src-head@freebsd.org Wed Jul 4 14:14:01 2018 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3E25C103AE73; Wed, 4 Jul 2018 14:14:01 +0000 (UTC) (envelope-from trasz@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E4ED17DBDB; Wed, 4 Jul 2018 14:14:00 +0000 (UTC) (envelope-from trasz@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id C5071437F; Wed, 4 Jul 2018 14:14:00 +0000 (UTC) (envelope-from trasz@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w64EE0WD029298; Wed, 4 Jul 2018 14:14:00 GMT (envelope-from trasz@FreeBSD.org) Received: (from trasz@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w64EE0RX029297; Wed, 4 Jul 2018 14:14:00 GMT (envelope-from trasz@FreeBSD.org) Message-Id: <201807041414.w64EE0RX029297@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: trasz set sender to trasz@FreeBSD.org using -f From: Edward Tomasz Napierala Date: Wed, 4 Jul 2018 14:14:00 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r335953 - head/tools/tools/syscall_timing X-SVN-Group: head X-SVN-Commit-Author: trasz X-SVN-Commit-Paths: head/tools/tools/syscall_timing X-SVN-Commit-Revision: 335953 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Jul 2018 14:14:01 -0000 Author: trasz Date: Wed Jul 4 14:14:00 2018 New Revision: 335953 URL: https://svnweb.freebsd.org/changeset/base/335953 Log: Rename "dup" and "fstat_shmfd" to "shmfd_dup" and "shmfd_fstat" for consistency. MFC after: 2 weeks Sponsored by: DARPA, AFRL Modified: head/tools/tools/syscall_timing/syscall_timing.c Modified: head/tools/tools/syscall_timing/syscall_timing.c ============================================================================== --- head/tools/tools/syscall_timing/syscall_timing.c Wed Jul 4 14:12:09 2018 (r335952) +++ head/tools/tools/syscall_timing/syscall_timing.c Wed Jul 4 14:14:00 2018 (r335953) @@ -688,14 +688,14 @@ test_socketpair_dgram(uintmax_t num, uintmax_t int_arg } static uintmax_t -test_dup(uintmax_t num, uintmax_t int_arg __unused, const char *path __unused) +test_shmfd_dup(uintmax_t num, uintmax_t int_arg __unused, const char *path __unused) { uintmax_t i; int fd, shmfd; shmfd = shm_open(SHM_ANON, O_CREAT | O_RDWR, 0600); if (shmfd < 0) - err(-1, "test_dup: shm_open"); + err(-1, "test_shmfd_dup: shm_open"); fd = dup(shmfd); if (fd >= 0) close(fd); @@ -732,7 +732,7 @@ test_shmfd(uintmax_t num, uintmax_t int_arg __unused, } static uintmax_t -test_fstat_shmfd(uintmax_t num, uintmax_t int_arg __unused, const char *path __unused) +test_shmfd_fstat(uintmax_t num, uintmax_t int_arg __unused, const char *path __unused) { struct stat sb; uintmax_t i; @@ -740,9 +740,9 @@ test_fstat_shmfd(uintmax_t num, uintmax_t int_arg __un shmfd = shm_open(SHM_ANON, O_CREAT | O_RDWR, 0600); if (shmfd < 0) - err(-1, "test_fstat_shmfd: shm_open"); + err(-1, "test_shmfd_fstat: shm_open"); if (fstat(shmfd, &sb) < 0) - err(-1, "test_fstat_shmfd: fstat"); + err(-1, "test_shmfd_fstat: fstat"); benchmark_start(); BENCHMARK_FOREACH(i, num) { (void)fstat(shmfd, &sb); @@ -880,9 +880,9 @@ static const struct test tests[] = { { "socketpair_dgram", test_socketpair_dgram, .t_flags = 0 }, { "socket_tcp", test_socket_stream, .t_int = PF_INET }, { "socket_udp", test_socket_dgram, .t_int = PF_INET }, - { "dup", test_dup, .t_flags = 0 }, + { "shmfd_dup", test_shmfd_dup, .t_flags = 0 }, { "shmfd", test_shmfd, .t_flags = 0 }, - { "fstat_shmfd", test_fstat_shmfd, .t_flags = 0 }, + { "shmfd_fstat", test_shmfd_fstat, .t_flags = 0 }, { "vfork", test_vfork, .t_flags = 0 }, { "vfork_exec", test_vfork_exec, .t_flags = 0 }, };