plateform stringclasses 1
value | repo_name stringclasses 2
values | name stringlengths 1 78 | ext stringclasses 2
values | path stringlengths 15 1.11k | size int64 1 8.55M | source_encoding stringclasses 11
values | md5 stringlengths 32 32 | text stringlengths 0 8.49M |
|---|---|---|---|---|---|---|---|---|
google | android | semget02 | .c | platform/external/ltp/testcases/kernel/syscalls/ipc/semget/semget02.c | 4,063 | utf_8 | 6c87726a7abf3b3f27047564de79b965 | /*
*
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* NAME
* semget02.c
*
* DESCRIPTION
* semget02 - test for EACCES and EEXIST errors
*
* ALGORITHM
* create a semaphore set without read or alter permissions
* loop if that option was specified
* call semget() using t... |
google | android | semctl07 | .c | platform/external/ltp/testcases/kernel/syscalls/ipc/semctl/semctl07.c | 3,817 | utf_8 | 775ff5b1644692677b47d67addf6646f | * - Fix concurrency issue. A statically defined key was used. Leading
* to conflict with other instances of the same test.
*/
/*\
* [Description]
*
* Basic tests for semctl().
*
* - semctl() with IPC_STAT where we check the semid_ds buf content
* - semctl() with SETVAL and GETVAL
* - semctl() with GETPID
*... |
google | android | semctl06 | .c | platform/external/ltp/testcases/kernel/syscalls/ipc/semctl/semctl06.c | 7,088 | iso_8859_1 | 6409b45842a247c853c531a0973e8d2b | /*
*
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* NAME
* semctl06
*
* CALLS
* semctl(2) semget(2) semop(2)
*
* ALGORITHM
* Get and manipulate a set of semaphores.
*
* RESTRICTIONS
*
* WARNING
* If this test fail, it may be necessary to use the ipcs and ipcrm
... |
google | android | semctl02 | .c | platform/external/ltp/testcases/kernel/syscalls/ipc/semctl/semctl02.c | 987 | utf_8 | 446d675240fd72e270700d192d080179 | *
* 03/2001 - Written by Wayne Boyer
*/
/*\
* [Description]
*
* Test for semctl() EACCES error.
*/
#include <pwd.h>
#include "tst_safe_sysv_ipc.h"
#include "tst_test.h"
#include "lapi/sem.h"
#include "libnewipc.h"
static int sem_id = -1;
static void verify_semctl(void)
{
struct semid_ds sem_ds;
union semun un_... |
google | android | semctl09 | .c | platform/external/ltp/testcases/kernel/syscalls/ipc/semctl/semctl09.c | 5,223 | utf_8 | 5ddf6c08b26995a098e356034a359e19 | */
/*\
* [Description]
*
* Call semctl() with SEM_INFO flag and check that:
*
* * The returned index points to a valid SEM by calling SEM_STAT_ANY
* * Also count that valid indexes < returned max index sums up to semusz
* * And the data are consistent with /proc/sysvipc/sem
*
* There is a possible race betwee... |
google | android | semctl03 | .c | platform/external/ltp/testcases/kernel/syscalls/ipc/semctl/semctl03.c | 2,507 | utf_8 | a6d5d24e3d2fb2d12b535ae3c4a083af | *
* HISTORY
* 03/2001 - Written by Wayne Boyer
*/
/*\
* [Description]
*
* Test for semctl() EINVAL and EFAULT errors
*/
#include "tst_safe_sysv_ipc.h"
#include "tst_test.h"
#include "lapi/sem.h"
#include "libnewipc.h"
#include "lapi/syscalls.h"
static int sem_id = -1;
static int bad_id = -1;
static struct semid... |
google | android | semctl08 | .c | platform/external/ltp/testcases/kernel/syscalls/ipc/semctl/semctl08.c | 1,255 | utf_8 | edee7cce316c6bba714fb9d6e3d2bc99 | *
* Description:
* Cross verify the _high fields being set to 0 by the kernel.
*/
#include "lapi/sembuf.h"
#include "lapi/sem.h"
#include "tst_test.h"
#include "libnewipc.h"
#ifdef HAVE_SEMID64_DS_TIME_HIGH
static void run(void)
{
struct semid64_ds buf_ds = {
.sem_otime_high = 0x0A0A,
.sem_ctime_high = 0x0A0A,... |
google | android | semctl01 | .c | platform/external/ltp/testcases/kernel/syscalls/ipc/semctl/semctl01.c | 6,479 | utf_8 | 3822bc42f3ebf856b2b87515526ab6b2 | */
/*\
* [Description]
*
* Test the 13 possible semctl() commands
*/
#define _GNU_SOURCE
#include <stdlib.h>
#include "tst_safe_sysv_ipc.h"
#include "tst_test.h"
#include "lapi/sem.h"
#include "libnewipc.h"
#define INCVAL 2
#define NEWMODE 066
#define NCHILD 5
#define SEMUN_CAST (union semun)
static int sem_id = ... |
google | android | semctl04 | .c | platform/external/ltp/testcases/kernel/syscalls/ipc/semctl/semctl04.c | 1,545 | utf_8 | c5f47759cf1ba8f9aa167b968e739a44 | *
* HISTORY
* 03/2001 - Written by Wayne Boyer
*/
/*\
* [Description]
*
* Test for semctl() EPERM error
*
* Runs IPC_SET and IPC_RMID from unprivileged child process.
*
*/
#include <pwd.h>
#include <sys/wait.h>
#include "tst_safe_sysv_ipc.h"
#include "tst_test.h"
#include "lapi/sem.h"
#include "libnewipc.h"
... |
google | android | semctl05 | .c | platform/external/ltp/testcases/kernel/syscalls/ipc/semctl/semctl05.c | 1,408 | utf_8 | c3196ef4a7f2235424a6913501997e46 | */
/*
* HISTORY
* 03/2001 - Written by Wayne Boyer
*/
/*\
* [Description]
*
* Test for semctl() ERANGE error
*/
#include "tst_safe_sysv_ipc.h"
#include "tst_test.h"
#include "lapi/sem.h"
#include "libnewipc.h"
static int sem_id = -1;
#define BIGV 65535 /* a number ((2^16)-1) that should be larger */
/* tha... |
google | android | syscall01 | .c | platform/external/ltp/testcases/kernel/syscalls/syscall/syscall01.c | 1,502 | utf_8 | 62f6b20cb64032068e9281e4d5d09178 | */
/*
* Basic test for syscall().
*/
#define _GNU_SOURCE
#include <unistd.h>
#include <sys/syscall.h>
#include <sys/types.h>
#include "tst_test.h"
#include "lapi/syscalls.h"
static void verify_getpid(void)
{
pid_t p1, p2;
p1 = getpid();
p2 = syscall(SYS_getpid);
if (p1 == p2) {
tst_res(TPASS, "getpid() == sysc... |
google | android | read01 | .c | platform/external/ltp/testcases/kernel/syscalls/read/read01.c | 804 | utf_8 | 663544b0f425ad5394cf9e242901f503 | */
#include <errno.h>
#include "tst_test.h"
#define SIZE 512
static int fd;
static char buf[SIZE];
static void verify_read(void)
{
SAFE_LSEEK(fd, 0, SEEK_SET);
TEST(read(fd, buf, SIZE));
if (TST_RET == -1)
tst_res(TFAIL | TTERRNO, "read(2) failed");
else
tst_res(TPASS, "read(2) returned %ld", TST_RET);
}
stati... |
google | android | read04 | .c | platform/external/ltp/testcases/kernel/syscalls/read/read04.c | 1,139 | utf_8 | 3210624bc5eba812379a70776819fca9 | */
/*\
* [Description]
*
* Testcase to check if read() returns the number of bytes read correctly.
*/
#include <sys/types.h>
#include <sys/stat.h>
#include <stdio.h>
#include <fcntl.h>
#include "tst_test.h"
static const char *fname = "test_file";
static const char palfa[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
#define PA... |
google | android | read03 | .c | platform/external/ltp/testcases/kernel/syscalls/read/read03.c | 1,072 | utf_8 | 77ae053ce9ffde30a90b15e0bfce3b50 | */
/*\
* [Description]
*
* Testcase to check if read() successfully sets errno to EAGAIN when read from
* a pipe (fifo, opened in O_NONBLOCK mode) without writing to it.
*/
#include <stdio.h>
#include <fcntl.h>
#include "tst_test.h"
static char fifo[100];
static int rfd, wfd;
static void verify_read(void)
{
int ... |
google | android | read02 | .c | platform/external/ltp/testcases/kernel/syscalls/read/read02.c | 2,852 | utf_8 | d3d18aba7e8477a2efc0509ac468f5e4 | * 04/2017 Modified by Jinhui Huang
*/
/*
* DESCRIPTION
* test 1:
* Read with an invalid file descriptor, and expect an EBADF.
*
* test 2:
* The parameter passed to read is a directory, check if the errno is
* set to EISDIR.
*
* test 3:
* Buf is outside the accessible address space, expect an EFAULT.
*
* t... |
google | android | mallinfo01 | .c | platform/external/ltp/testcases/kernel/syscalls/mallinfo/mallinfo01.c | 1,649 | utf_8 | cdef589819a17999a32f6f9480c94e3d | */
/*\
* [Description]
*
* Basic mallinfo() test. Refer to glibc test mallinfo2 test
* https://sourceware.org/git/?p=glibc.git;a=blob;f=malloc/tst-mallinfo2.c
*/
#include "mallinfo_common.h"
#include "tst_safe_macros.h"
#ifdef HAVE_MALLINFO
#define M_NUM 20
static struct mallinfo info1;
static void *buf[M_NUM + 1... |
google | android | mallinfo02 | .c | platform/external/ltp/testcases/kernel/syscalls/mallinfo/mallinfo02.c | 1,390 | utf_8 | 581656f63a139c6a019a6a08baaca3ac | */
/*\
* [Description]
*
* Basic mallinfo() test for malloc() using sbrk or mmap.
* It size > MMAP_THRESHOLD, it will use mmap. Otherwise, use sbrk.
*/
#include "mallinfo_common.h"
#include "tst_safe_macros.h"
#ifdef HAVE_MALLINFO
void test_mallinfo(void)
{
struct mallinfo info;
int size;
char *buf;
buf = SAF... |
google | android | getpeername01 | .c | platform/external/ltp/testcases/kernel/syscalls/getpeername/getpeername01.c | 4,324 | utf_8 | ad1c0f497a8861796f85d8992af13577 | /*
*
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* Verify that getpeername() returns the proper errno for various failure cases
*/
#include <stdio.h>
#include <unistd.h>
#include <errno.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/signal.h>
#inc... |
google | android | fsmount01 | .c | platform/external/ltp/testcases/kernel/syscalls/fsmount/fsmount01.c | 2,618 | utf_8 | c822293b84f477192b796018c84b8e0a | *
* Basic fsmount() test.
*/
#include "tst_test.h"
#include "lapi/fsmount.h"
#define MNTPOINT "mntpoint"
#define TCASE_ENTRY(_flags, _attrs) {.name = "Flag " #_flags ", Attr " #_attrs, .flags = _flags, .attrs = _attrs}
static struct tcase {
char *name;
unsigned int flags;
unsigned int attrs;
} tcases[] = {
TCASE... |
google | android | fsmount02 | .c | platform/external/ltp/testcases/kernel/syscalls/fsmount/fsmount02.c | 1,836 | utf_8 | 7b09bc20178483005131c1a86cfb9dbf | *
* Basic fsmount() failure tests.
*/
#include "tst_test.h"
#include "lapi/fsmount.h"
int fd = -1, invalid_fd = -1;
#define MNTPOINT "mntpoint"
static struct tcase {
char *name;
int *fd;
unsigned int flags;
unsigned int mount_attrs;
int exp_errno;
} tcases[] = {
{"invalid-fd", &invalid_fd, FSMOUNT_CLOEXEC, 0, ... |
google | android | setregid01 | .c | platform/external/ltp/testcases/kernel/syscalls/setregid/setregid01.c | 1,366 | utf_8 | 9331657c84860f9e328f9519939d58db | *
* Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
* Mountain View, CA 94043, or:
*
* http://www.sgi.com
*
* For further information regarding this notice, see:
*
* http://oss.sgi.com/projects/GenInfo/NoticeExplan/
*
* Author: William Roske
* Co-pilot: Dave Fenner
*/
/*\
* [Descript... |
google | android | setregid02 | .c | platform/external/ltp/testcases/kernel/syscalls/setregid/setregid02.c | 3,049 | utf_8 | aa159ab87f1f66cff72ebcbc0ca36584 | *
* Ported by John George
*/
/*
* Test that setregid() fails and sets the proper errno values when a
* non-root user attemps to change the real or effective group id to a
* value other than the current gid or the current effective gid.
*/
#include <errno.h>
#include <pwd.h>
#include <grp.h>
#include <stdlib.h>... |
google | android | setregid04 | .c | platform/external/ltp/testcases/kernel/syscalls/setregid/setregid04.c | 2,430 | utf_8 | dbafb810f120aa5959b736e0e58c7beb | *
* Ported by John George
*/
/*
* Test setregid() when executed by root.
*/
#include "tst_test.h"
#include "tst_uid.h"
#include "compat_tst_16.h"
static gid_t first_gid, second_gid, root_gid, neg_one = -1;
/*
* The following structure contains all test data. Each structure in the array
* is used for a separate ... |
google | android | setregid03 | .c | platform/external/ltp/testcases/kernel/syscalls/setregid/setregid03.c | 3,674 | utf_8 | 45e218313a6dd17e4ef26f71d1eabb89 | *
* Ported by John George
*/
/*
* Test setregid() when executed by a non-root user.
*/
#include <pwd.h>
#include "tst_test.h"
#include "tst_uid.h"
#include "compat_tst_16.h"
static int fail = -1;
static int pass;
static gid_t primary_gid, secondary_gid, neg_one = -1;
struct tcase {
gid_t *real_gid;
gid_t *eff_gi... |
google | android | fpathconf01 | .c | platform/external/ltp/testcases/kernel/syscalls/fpathconf/fpathconf01.c | 3,051 | utf_8 | e92a3d0708471befc4d2bc61305984c1 | /*
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
* Mountain View, CA 94043, or:
*
* http://www.sgi.com
*
* For further information regarding this notice, see:
*
* http://oss.sgi.com/projects/GenInfo/NoticeExplan/
*
*/
... |
google | android | cacheflush01 | .c | platform/external/ltp/testcases/kernel/syscalls/cacheflush/cacheflush01.c | 1,052 | utf_8 | 80784c8fcb5ed6d4e6830ca1faee1c14 | #include "tst_test.h"
#include "lapi/syscalls.h"
#if __NR_cacheflush != __LTP__NR_INVALID_SYSCALL
#include <asm/cachectl.h>
/*
* m68k does not have these constants
*/
#ifndef ICACHE
# define ICACHE (1<<0)
#endif
#ifndef DCACHE
# define DCACHE (1<<1)
#endif
#ifndef BCACHE
# define BCACHE (ICACHE|DCAC... |
google | android | getgid01 | .c | platform/external/ltp/testcases/kernel/syscalls/getgid/getgid01.c | 731 | utf_8 | d5268b854f647206b39a8e65de020169 | * AUTHOR : William Roske
* CO-PILOT : Dave Fenner
*/
/*\
* [Description]
*
* Call getgid() and expects that the gid returned correctly.
*/
#include <pwd.h>
#include "tst_test.h"
#include "compat_tst_16.h"
static struct passwd *ltpuser;
static void run(void)
{
TEST(GETGID());
if (TST_RET != ltpuser->pw_gid)
... |
google | android | getgid03 | .c | platform/external/ltp/testcases/kernel/syscalls/getgid/getgid03.c | 985 | utf_8 | e3b47cdbbaa53c7bdfeb6bde52ac9bea | * Ported by Wayne Boyer
*/
/*\
* [Description]
* Testcase to check the basic functionality of getgid().
*
* [Algorithm]
* For functionality test the return value from getgid() is compared to passwd
* entry.
*/
#include <pwd.h>
#include "tst_test.h"
#include "compat_tst_16.h"
static void run(void)
{
uid_t uid;... |
google | android | setgroups02 | .c | platform/external/ltp/testcases/kernel/syscalls/setgroups/setgroups02.c | 4,796 | utf_8 | ba3f19d5a02ffee7b4c92d2ac8eead83 | /*
*
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* Test Name: setgroups02
*
* Test Description:
* Verify that, only root process can invoke setgroups() system call to
* set the supplementary group IDs of the process.
*
* Expected Result:
* The call succeeds in se... |
google | android | setgroups03 | .c | platform/external/ltp/testcases/kernel/syscalls/setgroups/setgroups03.c | 5,762 | utf_8 | 91b57e792d3ce5a67c677ac21020c840 | /*
*
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* Test Name: setgroups03
*
* Test Description:
* Verify that,
* 1. setgroups() fails with -1 and sets errno to EINVAL if the size
* argument value is > NGROUPS
* 2. setgroups() fails with -1 and sets errno to... |
google | android | setgroups01 | .c | platform/external/ltp/testcases/kernel/syscalls/setgroups/setgroups01.c | 5,249 | utf_8 | 46e11b8911f625b041934191889236bc | /*
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
* Mountain View, CA 94043, or:
*
* http://www.sgi.com
*
* For further information regarding this notice, see:
*
* http://oss.sgi.com/projects/GenInfo/NoticeExplan/
*
*/
... |
google | android | getresuid03 | .c | platform/external/ltp/testcases/kernel/syscalls/getresuid/getresuid03.c | 5,099 | utf_8 | 25afe317217110820ad5a947f0240bee | /*
*
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* Test Name: getresuid03
*
* Test Description:
* Verify that getresuid() will be successful to get the real, effective
* and saved user ids after calling process invokes setresuid() to change
* the effective uid to t... |
google | android | getresuid01 | .c | platform/external/ltp/testcases/kernel/syscalls/getresuid/getresuid01.c | 3,952 | utf_8 | b264404d63a26e72725d2f078f1c7af8 | /*
*
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* Test Name: getresuid01
*
* Test Description:
* Verify that getresuid() will be successful to get the real, effective
* and saved user id of the calling process.
*
* Expected Result:
* getresuid() should return wi... |
google | android | getresuid02 | .c | platform/external/ltp/testcases/kernel/syscalls/getresuid/getresuid02.c | 4,924 | utf_8 | 754804047ae8fb7f68f9ec517c88193d | /*
*
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* Test Name: getresuid02
*
* Test Description:
* Verify that getresuid() will be successful to get the real, effective
* and saved user ids after calling process invokes setreuid() to change
* the effective/saved uid... |
google | android | tee02 | .c | platform/external/ltp/testcases/kernel/syscalls/tee/tee02.c | 1,870 | utf_8 | b3035d532c03c531550e92866482093e | */
/*
* Description:
* Verify that,
* 1) tee() returns -1 and sets errno to EINVAL if fd_in does
* not refer to a pipe.
* 2) tee() returns -1 and sets errno to EINVAL if fd_out does
* not refer to a pipe.
* 3) tee() returns -1 and sets errno to EINVAL if fd_in and
* fd_out refer to the s... |
google | android | tee01 | .c | platform/external/ltp/testcases/kernel/syscalls/tee/tee01.c | 2,262 | utf_8 | d1cd005bcd08a5e230b1b19d3c5877ab | */
#define _GNU_SOURCE
#include <errno.h>
#include <string.h>
#include <signal.h>
#include <sys/types.h>
#include "tst_test.h"
#include "lapi/fcntl.h"
#include "lapi/tee.h"
#include "lapi/splice.h"
#define TEST_BLOCK_SIZE 1024
#define TESTFILE1 "tee_test_file_1"
#define TESTFILE2 "tee_test_file_2"
static int fd_in, fd... |
google | android | kvm_pagefault01 | .c | platform/external/ltp/testcases/kernel/kvm/kvm_pagefault01.c | 5,868 | utf_8 | d5a0fd749879d78933717cef1c3f1520 | * Date: Thu Jun 3 13:24:55 2021 +0800
*
* KVM: X86: MMU: Use the correct inherited permissions to get shadow page
*/
#include "kvm_test.h"
#ifdef COMPILE_PAYLOAD
#ifdef __x86_64__
#include "kvm_x86.h"
#define PTE_BITMASK 0x1ff
#define PAGESIZE 0x1000
int handle_page_fault(void *userdata, struct kvm_interrupt_fr... |
google | android | lib_guest | .c | platform/external/ltp/testcases/kernel/kvm/lib_guest.c | 3,438 | utf_8 | 37f23cfbc19606d73683a4f2aa7636d2 | *
* Minimal testing library for KVM tests
*/
#include "kvm_test.h"
extern char kvm_heap_begin[];
static struct tst_kvm_result *const test_result =
(struct tst_kvm_result *)KVM_RESULT_BASEADDR;
static char *heap_end = kvm_heap_begin;
static struct tst_intr_handler {
tst_interrupt_callback callback;
void *userdata;... |
google | android | lib_x86 | .c | platform/external/ltp/testcases/kernel/kvm/lib_x86.c | 3,443 | utf_8 | a5f7b209ebdf49fa6e56b8e8faffda76 | *
* x86-specific KVM helper functions
*/
#include "kvm_x86.h"
struct kvm_interrupt_frame {
uintptr_t eip, cs, eflags, esp, ss;
};
const char *tst_interrupt_names[INTERRUPT_COUNT] = {
"Division by zero",
"Debug interrupt",
"Non-maskable interrupt",
"Breakpoint",
"Arithmetic overflow",
"Bound range exception",
... |
google | android | lib_host | .c | platform/external/ltp/testcases/kernel/kvm/lib_host.c | 7,053 | utf_8 | f5f52be7254f2f01c7031a559be1e863 | *
* KVM host library for setting up and running virtual machine tests.
*/
#include <stdlib.h>
#include <errno.h>
#define TST_NO_DEFAULT_MAIN
#include "tst_test.h"
#include "kvm_host.h"
static struct tst_kvm_instance test_vm = { .vm_fd = -1 };
const unsigned char tst_kvm_reset_code[VM_RESET_CODE_SIZE] = {
0xea, 0x00... |
google | android | sem02 | .c | platform/external/ltp/testcases/kernel/ipc/semaphore/sem02.c | 4,265 | utf_8 | b588d6b38585c6f3730142cf5359356a | /*
*
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* FILE : sem02.c
*
* DESCRIPTION : The application creates several threads using pthread_create().
* One thread performs a semop() with the SEM_UNDO flag set. The change in
* sempaphore value performed by that... |
google | android | sem01 | .c | platform/external/ltp/testcases/kernel/ipc/semaphore/sem01.c | 3,604 | utf_8 | 4585884c7a28ca7cbed17d1a7a4ccfcf | /*
*
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* FILE : sem01.c
* DESCRIPTION : Creates a semaphore and two processes. The processes
* each go through a loop where they semdown, delay for a
* random amount of time, and semup, so... |
google | android | pipeio | .c | platform/external/ltp/testcases/kernel/ipc/pipeio/pipeio.c | 21,490 | utf_8 | 0bba489b661d3d62590959ca82a1f1a2 | /*
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
* Mountain View, CA 94043, or:
*
* http://www.sgi.com
*
* For further information regarding this notice, see:
*
* http://oss.sgi.com/projects/GenInfo/NoticeExplan/
*
*/
... |
google | android | tst_getconf | .c | platform/external/ltp/testcases/lib/tst_getconf.c | 1,029 | windows_1250 | 0b5198fd2812a4b34143e5883b58d13f | *
*/
#include <stdio.h>
#include <unistd.h>
#include <string.h>
static void print_help(void)
{
printf("Usage: tst_getconf variable\n\n");
printf(" variable: can be PAGESIZE/PAGE_SIZE");
printf(" or _NPROCESSORS_ONLN (for the moment)\n\n");
printf("example: tst_getconf PAGESIZE\n");
}
int main(int argc, char... |
google | android | tst_random | .c | platform/external/ltp/testcases/lib/tst_random.c | 1,496 | utf_8 | 58b5af2a067b812cc16776ea52a249dc | */
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <sys/time.h>
static void print_help(void)
{
printf("Usage: tst_random <value1> [value2]\n");
printf(" Generated random will be between value1 and value2.\n");
printf(" If only value1 is specified, value2 will trea... |
google | android | tst_get_unused_port | .c | platform/external/ltp/testcases/lib/tst_get_unused_port.c | 1,127 | utf_8 | 43317d6c8e903a241990ff63279df1f8 | */
#define TST_NO_DEFAULT_MAIN
#include <stdio.h>
#include "tst_safe_net.h"
#include "tst_test.h"
static void help(const char *fname)
{
printf("usage: %s FAMILY TYPE\n", fname);
printf("FAMILY := { ipv4 | ipv6 }\n");
printf("TYPE := { stream | dgram }\n");
}
int main(int argc, char *argv[])
{
int family = 0, type ... |
google | android | tst_device | .c | platform/external/ltp/testcases/lib/tst_device.c | 2,339 | utf_8 | bb2d1b64fa40f660a1405d4b41dec9fb | */
#include <errno.h>
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#define TST_NO_DEFAULT_MAIN
#include "tst_test.h"
#include "old/old_device.h"
extern struct tst_test *tst_test;
static struct tst_test test = {
};
static void print_help(void)
{
fprintf(stderr, "\nUsage:\n");
fprintf(stderr, "tst_device... |
google | android | tst_net_ip_prefix | .c | platform/external/ltp/testcases/lib/tst_net_ip_prefix.c | 2,408 | utf_8 | d68e3071d0a5ae807ab098b5f9be7491 | */
#include <stdio.h>
#include <stdlib.h>
#define TST_NO_DEFAULT_MAIN
#include "tst_test.h"
#include "tst_net.h"
#include "tst_private.h"
#define DEFAULT_IPV4_PREFIX 24
#define DEFAULT_IPV6_PREFIX 64
static void usage(const char *cmd)
{
fprintf(stderr, "USAGE:\n"
"%s IP_LHOST[/PREFIX]\n"
"%s -r IP_RHOST[/PREFIX]\... |
google | android | tst_net_vars | .c | platform/external/ltp/testcases/lib/tst_net_vars.c | 15,983 | utf_8 | 02a4baff2636d9c79d0efeef09cb663d | */
#include <arpa/inet.h>
#include <arpa/nameser.h>
#include <assert.h>
#include <errno.h>
#include <linux/rtnetlink.h>
#include <net/if.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <stdarg.h>
#define TST_NO_DEFAULT_MAIN
#include "tst_test.h"
#include "tst_net.h"
#include "t... |
google | android | tst_get_median | .c | platform/external/ltp/testcases/lib/tst_get_median.c | 720 | utf_8 | 2c288b580aee6bb81d9ea2ec86a7c380 | #include <stdio.h>
#include <stdlib.h>
static int cmp(const void *a, const void *b)
{
return (*(int *)a - *(int *)b);
}
int main(int argc, const char *argv[])
{
const size_t size = argc - 1;
if (!size) {
fprintf(stderr, "Please provide a numeric list\n");
return 1;
}
if (size == 1) {
printf("%d", atoi(argv... |
google | android | tst_check_drivers | .c | platform/external/ltp/testcases/lib/tst_check_drivers.c | 462 | utf_8 | 60af32aa24793aeecc217183f3382fd8 | #include <stdio.h>
#include "tst_kernel.h"
int main(int argc, const char *argv[])
{
const char *name;
int i;
if (argc < 2) {
fprintf(stderr, "Please provide kernel driver list\n");
return 1;
}
for (i = 1; (name = argv[i]); ++i) {
if (tst_check_driver(name)) {
fprintf(stderr, "%s", name);
return 1;
}
... |
google | android | tst_hexdump | .c | platform/external/ltp/testcases/lib/tst_hexdump.c | 897 | utf_8 | 9ac269334e0df3dfa1ca2ba3af8639ef | *
* Convert bytes from standard input to hexadecimal representation.
*
* Parameters:
* -d Convert hexadecimal values from standard input to binary representation
* instead.
*/
#include <stdio.h>
#include <unistd.h>
int decode_hex(void)
{
int ret;
unsigned int val;
while ((ret = scanf("%2x", &val)) == 1... |
google | android | tst_cgctl | .c | platform/external/ltp/testcases/lib/tst_cgctl.c | 1,693 | utf_8 | 7c7f308f08a86dbf8f5785b005845a92 | */
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdint.h>
#include <unistd.h>
#include "tst_cgroup.h"
static void cgctl_usage(void)
{
fprintf(stderr, "Usage: tst_cgctl require [controller] [test_pid]\n\tcleanup [config (output of tst_cg_print_config)]\n\tprint\n\thelp\n");
}
static int cgctl_r... |
google | android | tst_checkpoint | .c | platform/external/ltp/testcases/lib/tst_checkpoint.c | 1,556 | utf_8 | ca816db97fcf36042e3bd49485c6fa8c | */
#include <errno.h>
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#define TST_NO_DEFAULT_MAIN
#include "tst_test.h"
static void print_help(void)
{
printf("Usage: tst_checkpoint wait TIMEOUT ID\n");
printf(" or: tst_checkpoint wake TIMEOUT ID NR_WAKE\n");
printf(" TIMEOUT - timeout in ms\n");
... |
google | android | tst_supported_fs | .c | platform/external/ltp/testcases/lib/tst_supported_fs.c | 3,690 | utf_8 | 326e635bc995e1c4021c917cd0ac56d4 | #define TST_NO_DEFAULT_MAIN
#include "tst_test.h"
#include "tst_fs.h"
#define err_exit(...) ({ \
fprintf(stderr, __VA_ARGS__); \
fprintf(stderr, "\n"); \
usage(); \
exit(2); \
})
#define fail_exit(...) ({ \
fprintf(stderr, __VA_ARGS__); \
fprintf(stderr, "\n"); \
exit(1); \
})
#define info_exit(...) ({ \
fprint... |
google | android | tst_rod | .c | platform/external/ltp/testcases/lib/tst_rod.c | 3,373 | utf_8 | 329078f7e7eafc68f813e234f534b9ae | */
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#define WRITE_STRING(fd, string) if (write(fd, string, sizeof(string)-1)) {}
int main(int argc, char *argv[])
{
int i, pos = 0;
char *args[argc];
char *stdin_path = NULL, ... |
google | android | tst_sleep | .c | platform/external/ltp/testcases/lib/tst_sleep.c | 1,618 | utf_8 | d3ee8d071ff942639afb9795d9b2b964 | */
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
static void print_help(void)
{
printf("Usage: tst_usleep interval[s|ms|us]\n\n");
printf(" If no unit is specified the interval is in seconds\n");
}
static struct unit {
const char *unit;
long mul;
} units[] = {
{"", 1000000... |
google | android | tst_check_kconfigs | .c | platform/external/ltp/testcases/lib/tst_check_kconfigs.c | 977 | utf_8 | 20818a66c94638dc7c0eee96b6eb6065 | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "tst_kconfig.h"
int main(int argc, char *argv[])
{
char *str = argv[1];
char *delim = argv[2];
unsigned int i, cnt = 1, ret = 0;
switch(argc) {
case 2:
delim = ",";
break;
case 3:
if (strlen(delim) > 1) {
fprintf(stderr, "The delim must b... |
google | android | tst_get_free_pids | .c | platform/external/ltp/testcases/lib/tst_get_free_pids.c | 329 | utf_8 | 87d019ab3b6e653670fe7061b8f24c82 | #define TST_NO_DEFAULT_MAIN
#include <stdio.h>
#include <tst_test.h>
extern struct tst_test *tst_test;
static struct tst_test test = {
};
int main(void)
{
/* force messages to be printed from new library */
tst_test = &test;
printf("%i\n", tst_get_free_pids());
return 0;
} |
google | android | tst_kvcmp | .c | platform/external/ltp/testcases/lib/tst_kvcmp.c | 3,802 | utf_8 | 5a40f11abda64794ab1559418f63fb1f | */
#define TST_NO_DEFAULT_MAIN
#include <stdio.h>
#include <stdlib.h>
#include <sys/utsname.h>
#include <tst_test.h>
enum op {
EQ,
NE,
GE,
GT,
LE,
LT,
AND,
OR,
ERR,
};
static enum op strtop(const char *op)
{
if (!strcmp(op, "-eq"))
return EQ;
if (!strcmp(op, "-ne"))
return NE;
if (!strcmp(op, "-ge"))
... |
google | android | tst_net_iface_prefix | .c | platform/external/ltp/testcases/lib/tst_net_iface_prefix.c | 3,810 | utf_8 | 14f33f2305535ed2cf67e64374e67567 | */
#include <sys/socket.h>
#include <linux/rtnetlink.h>
#include <net/if.h>
#include <stdio.h>
#include <stdlib.h>
#define TST_NO_DEFAULT_MAIN
#include "tst_test.h"
#include "tst_net.h"
#include "tst_private.h"
static char *iface;
static int prefix;
static void usage(const char *cmd)
{
fprintf(stderr, "USAGE:\n"
"%... |
google | android | tst_timeout_kill | .c | platform/external/ltp/testcases/lib/tst_timeout_kill.c | 1,495 | utf_8 | cae5e1106551505b018587c39173141e | */
#include <stdio.h>
#include <signal.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
static void print_help(const char *name)
{
fprintf(stderr, "usage: %s timeout pid\n", name);
}
#define print_msg(fmt, ...) fprintf(stderr, fmt "\n", ##__VA_ARGS__)
int main(int argc, char *argv[])
... |
google | android | crasher | .c | platform/external/ltp/testcases/kdump/lib/crasher/crasher.c | 3,319 | utf_8 | d302f3155e2d11712baf243b16252ff6 | /*
* Crasher module for kdump testing
*
*
*/
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/proc_fs.h>
#include <linux/spinlock.h>
#include <asm/uaccess.h>
#include <linux/version.h>
#include <linux/uaccess.h>
int crasher_init(void);
void crasher_exit(void);
module_init(... |
google | android | kprobes | .c | platform/external/ltp/testcases/kdump/lib/kprobes/kprobes.c | 1,307 | utf_8 | 1da9ded81bcce59ef001bbb46f909384 | #include <linux/kernel.h>
#include <linux/module.h>
#include <linux/fs.h>
#include <linux/uio.h>
#include <linux/kprobes.h>
/*
* Jumper probe for do_fork.
* Mirror principle enables access to arguments of the probed routine
* from the probe handler.
*/
/* Proxy routine having the same arguments as actual do_fork() ... |
google | android | lkdtm | .c | platform/external/ltp/testcases/kdump/lib/lkdtm/lkdtm.c | 10,595 | utf_8 | 89c76ea47f992e0f5562126db19faaec | /*
* Kprobe module for testing crash dumps
*
*
* This module induces system failures at predefined crashpoints to
* evaluate the reliability of crash dumps obtained using different dumping
* solutions.
*
* It is adapted from the Linux Kernel Dump Test Tool by
*
* Usage : insmod lkdtm.ko [recur_count={>0}] cp... |
google | android | sched_latency | .c | platform/external/ltp/testcases/realtime/func/sched_latency/sched_latency.c | 8,477 | utf_8 | d69e90072584e6779f106e39f9fc2a04 | /******************************************************************************
*
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* NAME
* sched_latency.c
*
* DESCRIPTION
* Measure the latency involved with periodic scheduling.
* Steps:
* - A thread is created at a... |
google | android | gtod_latency | .c | platform/external/ltp/testcases/realtime/func/gtod_latency/gtod_latency.c | 9,483 | utf_8 | a950374b68fdaa67cee0c20332aeda4a | /******************************************************************************
*
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* NAME
* gtod-latency.c
*
* DESCRIPTION
* Simple program to measure the time between several pairs of calls to
* gettimeofday(). ... |
google | android | gtod_infinite | .c | platform/external/ltp/testcases/realtime/func/gtod_latency/gtod_infinite.c | 4,972 | utf_8 | 18d22fbaf66a1912ecea484d79fe8c34 | /******************************************************************************
*
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* NAME
* gtod_infinite.c
*
* DESCRIPTION
* This 'test' is designed to run forever. It must manually be killed,
* so it is not id... |
google | android | rdtsc-latency | .c | platform/external/ltp/testcases/realtime/func/measurement/rdtsc-latency.c | 4,385 | utf_8 | 8bacda59c0142515f003d9042a2c3664 | /******************************************************************************
*
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* NAME
* rdtsc-latency.c
*
* DESCRIPTION
* Simple program to measure the time between several pairs of calls to
* rdtsc(). Based... |
google | android | preempt_timing | .c | platform/external/ltp/testcases/realtime/func/measurement/preempt_timing.c | 4,230 | utf_8 | 62d1e6ccbbf18a5088c19ba75d82ffa4 | /******************************************************************************
*
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* NAME
* preempt_timing.c
*
* DESCRIPTION
* This program indicated the preemption delays that may be encountered
* by realtime apps... |
google | android | hrtimer-prio | .c | platform/external/ltp/testcases/realtime/func/hrtimer-prio/hrtimer-prio.c | 6,622 | utf_8 | 95ee5aad14df37241e8c7894dcf59671 | /******************************************************************************
*
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* NAME
* hrtimer-prio.c
*
* DESCRIPTION
* Test the latency of hrtimers under rt load.
* The busy_threads should run at a priority high... |
google | android | prio-wake | .c | platform/external/ltp/testcases/realtime/func/prio-wake/prio-wake.c | 5,987 | utf_8 | 845cde14a8b51d881117823eff8cbd64 | /******************************************************************************
*
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* NAME
* prio-wake.c
*
* DESCRIPTION
* Test priority ordered wakeup with pthread_cond_*
* * Steps:
* - Creates a number of worker ... |
google | android | sched_jitter | .c | platform/external/ltp/testcases/realtime/func/sched_jitter/sched_jitter.c | 4,491 | utf_8 | 84ef006fad55757e51e1ba881f6fbade | /******************************************************************************
*
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* NAME
* sched_jitter.c
*
* DESCRIPTION
* This test measures scheduling jitter w/ realtime processes.
*
* It spawns a realtime thr... |
google | android | prio-preempt | .c | platform/external/ltp/testcases/realtime/func/prio-preempt/prio-preempt.c | 8,843 | utf_8 | 5aec5dc2e323246ff83a45510dc66ba3 | /******************************************************************************
*
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* NAME
* prio-preempt.c
*
* DESCRIPTION
* Test whether priority pre-emption works fine.
*
* The main thread:
* - Creates a minimu... |
google | android | tc-2 | .c | platform/external/ltp/testcases/realtime/func/thread_clock/tc-2.c | 5,513 | utf_8 | 2844eb7eec44c180d01088c596d769d8 | /******************************************************************************
*
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* NAME
* tc-2.c
*
* DESCRIPTION
* Check if clock_gettime is working properly.
* This test creates NUMSLEEP threads that just sleep and NU... |
google | android | sched_football | .c | platform/external/ltp/testcases/realtime/func/sched_football/sched_football.c | 6,104 | utf_8 | fff684ac1f88656defa02c124fc3c2da | /******************************************************************************
*
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* NAME
* sched_football.c
*
* DESCRIPTION
* This is a scheduler test that uses a football analogy.
* The premise is that we want to... |
google | android | pthread_kill_latency | .c | platform/external/ltp/testcases/realtime/func/pthread_kill_latency/pthread_kill_latency.c | 7,860 | utf_8 | eb57fd74e12feb9c78752f5c41976b4b | /******************************************************************************
*
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* NAME
* pthread_kill_latency.c
*
* DESCRIPTION
* Measure the latency involved in sending a signal to a thread
* using pthread_kill... |
google | android | rt-migrate | .c | platform/external/ltp/testcases/realtime/func/rt-migrate/rt-migrate.c | 12,531 | utf_8 | 5368e0641f4a3b6b1a2d7420df9a741b | /******************************************************************************
*
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* NAME
* rt-migrate-test.c
*
* DESCRIPTION
* This test makes sure that all the high prio tasks that are in the
* running state are actually runnin... |
google | android | periodic_cpu_load | .c | platform/external/ltp/testcases/realtime/func/periodic_cpu_load/periodic_cpu_load.c | 6,659 | utf_8 | cc47ef67e9f78c0d48d52cc8db2c8dc4 | /******************************************************************************
*
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* NAME
* periodic_cpu_load.c
*
* DESCRIPTION
* Measure variation in computational execution time
* at various periods and prioritie... |
google | android | periodic_cpu_load_single | .c | platform/external/ltp/testcases/realtime/func/periodic_cpu_load/periodic_cpu_load_single.c | 5,869 | utf_8 | 49780658a7463ebc824145e683ac0d1f | /******************************************************************************
*
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* NAME
* periodic_cpu_load_single.c
*
* DESCRIPTION
* Measure variation in computational execution time
* at the specified period, ... |
google | android | sbrk_mutex | .c | platform/external/ltp/testcases/realtime/func/pi-tests/sbrk_mutex.c | 3,937 | utf_8 | eb586a420843c94bfe08a190bee60c31 | /******************************************************************************
*
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* NAME
* sbrk-mutex.c
*
* DESCRIPTION
* Create NUM_THREADS to walk through an array of malloc'd pthread mutexes.
* Each thread holds up t... |
google | android | testpi-0 | .c | platform/external/ltp/testcases/realtime/func/pi-tests/testpi-0.c | 2,535 | utf_8 | e18f4d90b8887bbb66f91766893db6d3 | /******************************************************************************
*
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* NAME
* testpi-0.c
*
* DESCRIPTION
* This testcase checks whether priority inheritance support is present
* in the running kernel
... |
google | android | testpi-2 | .c | platform/external/ltp/testcases/realtime/func/pi-tests/testpi-2.c | 5,724 | utf_8 | 0189df9a272db5807773f62b592cef4a | /******************************************************************************
*
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* NAME
* testpi-2.c
*
* DESCRIPTION
* This testcase verifies if the low priority SCHED_RR thread can preempt
* the high priority SC... |
google | android | testpi-5 | .c | platform/external/ltp/testcases/realtime/func/pi-tests/testpi-5.c | 2,647 | utf_8 | 66b85b058d58097e82208f2f3c13b686 | /******************************************************************************
*
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* NAME
* testpi-5.c
*
* DESCRIPTION
* This testcase verifies if a thread can lock the priority inheritance
* mutex multiple times.
... |
google | android | test-skeleton | .c | platform/external/ltp/testcases/realtime/func/pi-tests/test-skeleton.c | 2,630 | utf_8 | cb7defad83862811a4315ee4ced3275c | /******************************************************************************
*
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* NAME
* test-skeleton.c
*
* DESCRIPTION
*
*
*
* USAGE:
* Use run_auto.sh script in current directory to build and run test.
*
* AU... |
google | android | testpi-7 | .c | platform/external/ltp/testcases/realtime/func/pi-tests/testpi-7.c | 8,665 | utf_8 | 553a00aedd9a1719a3c525022e201178 | /******************************************************************************
*
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* NAME
* testpi-7.c
*
* DESCRIPTION
* measure the latency involved with PI boosting.
*
*
* USAGE:
* Use run_auto.sh script in cu... |
google | android | testpi-1 | .c | platform/external/ltp/testcases/realtime/func/pi-tests/testpi-1.c | 5,675 | utf_8 | 1116273e44bc13ebe91996c0a38968b4 | /******************************************************************************
*
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* NAME
* testpi-1.c
*
* DESCRIPTION
* This testcase verifies if the low priority SCHED_OTHER thread can preempt
* the high priority S... |
google | android | testpi-6 | .c | platform/external/ltp/testcases/realtime/func/pi-tests/testpi-6.c | 2,564 | utf_8 | ab39c4da64fa62849bccaaa29cb656e1 | /******************************************************************************
*
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* NAME
* testpi-6.c
*
* DESCRIPTION
* This testcase verifies if a thread can lock the robust mutex multiple
* times.
*
* USAGE:
... |
google | android | testpi-4 | .c | platform/external/ltp/testcases/realtime/func/pi-tests/testpi-4.c | 5,698 | utf_8 | 95dff5d93fb4fd42a3fe357d2381e7df | /******************************************************************************
*
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* NAME
* testpi-4.c
*
* DESCRIPTION
* This testcase verifies that the SCHED_OTHER thread can preempt
* the SCHED_RR thread via priori... |
google | android | matrix_mult | .c | platform/external/ltp/testcases/realtime/func/matrix_mult/matrix_mult.c | 8,800 | utf_8 | 81f1d2d2e116c5336b2a613f35aeaacb | */
/*\
* [Description]
*
* Compare running sequential matrix multiplication routines
* to running them in parallel to judge multiprocessor
* performance
*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <librttest.h>
#include <libstats.h>
#define MAX_CPUS 8192
#define PRIO 43
#define MATRIX_S... |
google | android | async_handler | .c | platform/external/ltp/testcases/realtime/func/async_handler/async_handler.c | 5,217 | utf_8 | ca8a19f12c5d4cc759728b5cc8571d5d | /******************************************************************************
*
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* NAME
* async_handler.c
*
* DESCRIPTION
* Measure the latency involved in asynchronous event handlers.
* Specifically it measures the... |
google | android | async_handler_tsc | .c | platform/external/ltp/testcases/realtime/func/async_handler/async_handler_tsc.c | 5,877 | utf_8 | c4c571d488d46da63b0108dcb25095eb | /******************************************************************************
*
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* NAME
* async_handler_tsc.c
*
* DESCRIPTION
* This test mimics an async event handler in a real-time JVM
* An async event server thre... |
google | android | async_handler_jk | .c | platform/external/ltp/testcases/realtime/func/async_handler/async_handler_jk.c | 4,339 | utf_8 | 0b9b39b9cbb37a3fbb329c0549084ed4 | /******************************************************************************
*
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* NAME
* async_handler_jk.c
*
* DESCRIPTION
* This test mimics an async event handler in a real-time JVM
* An async event server thre... |
google | android | pi_perf | .c | platform/external/ltp/testcases/realtime/func/pi_perf/pi_perf.c | 7,422 | utf_8 | aff808a04348be3013db43f5ffd22b82 | /******************************************************************************
*
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* NAME
* pi_perf.c
*
* DESCRIPTION
* Create a scenario with one high, one low and several
* medium priority threads. Low priority thre... |
google | android | lookup_pi_state | .c | platform/external/ltp/testcases/realtime/stress/pi-tests/lookup_pi_state.c | 4,677 | utf_8 | 2779fd4dc9e27de0edb21394c92ad189 | /******************************************************************************
*
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* NAME
* lookup_pi_state.c
*
* DESCRIPTION
* A test to reproduce a bug in lookup_pi_state()
*
* USAGE:
* Use run_auto.sh script in current... |
google | android | testpi-3 | .c | platform/external/ltp/testcases/realtime/stress/pi-tests/testpi-3.c | 9,912 | utf_8 | 1c21af561631eb5120e4c649a1c400f4 | /******************************************************************************
*
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* NAME
* testpi-3.c
*
* DESCRIPTION
*
*
* USAGE:
* Use run_auto.sh script in current directory to build and run test.
*
* AUTHOR
*
*
* HISTO... |
google | android | pthread_cond_many | .c | platform/external/ltp/testcases/realtime/perf/latency/pthread_cond_many.c | 7,750 | utf_8 | 50dd0795a10315d97e43f79b33c84916 | /******************************************************************************
*
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* NAME
* pthread_cond_many.c
*
* DESCRIPTION
* Measure pthread_cond_t latencies , but in presence of many processes.
*
* USAGE:
* ... |
google | android | pthread_cond_latency | .c | platform/external/ltp/testcases/realtime/perf/latency/pthread_cond_latency.c | 5,044 | utf_8 | 0b693ddf2dd19e5fd77907dfc1df3c17 | /******************************************************************************
*
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* NAME
* pthread_cond_latency.c
*
* DESCRIPTION
* measure pthread_cond_t latencies
*
* USAGE:
* Use run_auto.sh script in current di... |
google | android | libstats | .c | platform/external/ltp/testcases/realtime/lib/libstats.c | 8,182 | utf_8 | f85f70a3f9c51ac19ae3d6d65eb32fb4 | /******************************************************************************
*
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* NAME
* libstats.c
*
* DESCRIPTION
* Some basic statistical analysis convenience tools.
*
*
* USAGE:
* To be included in test cases
*
... |
google | android | librttest | .c | platform/external/ltp/testcases/realtime/lib/librttest.c | 17,619 | utf_8 | 74ce9d6ccf1f836730281c56973dd446 | /******************************************************************************
*
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* NAME
* librttest.c
*
* DESCRIPTION
* A set of commonly used convenience functions for writing
* threaded realtime test cases.
*... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.