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 | oom05 | .c | platform/external/ltp/testcases/kernel/mem/oom/oom05.c | 3,512 | utf_8 | 72756259f0e5c4e26578285ab7909371 | /*
* Out Of Memory (OOM) for MEMCG and CPUSET
*
* The program is designed to cope with unpredictable like amount and
* system physical memory, swap size and other VMM technology like KSM,
* memcg, memory hotplug and so on which may affect the OOM
* behaviours. It simply increase the memory consumption 3G each tim... |
google | android | oom03 | .c | platform/external/ltp/testcases/kernel/mem/oom/oom03.c | 3,092 | utf_8 | 22229dd6569cc371b66503def2f1708c | /*
* Out Of Memory (OOM) for Memory Resource Controller
*
* The program is designed to cope with unpredictable like amount and
* system physical memory, swap size and other VMM technology like KSM,
* memcg, memory hotplug and so on which may affect the OOM
* behaviours. It simply increase the memory consumption 3... |
google | android | oom04 | .c | platform/external/ltp/testcases/kernel/mem/oom/oom04.c | 2,808 | utf_8 | 9153f03989fdb013182ac77713845926 | /*
* Out Of Memory (OOM) for CPUSET
*
* The program is designed to cope with unpredictable like amount and
* system physical memory, swap size and other VMM technology like KSM,
* memcg, memory hotplug and so on which may affect the OOM
* behaviours. It simply increase the memory consumption 3G each time
* until... |
google | android | oom01 | .c | platform/external/ltp/testcases/kernel/mem/oom/oom01.c | 1,943 | utf_8 | 68531621eb0c13895f3183ae19e61580 | /*
* Out Of Memory (OOM)
*
* The program is designed to cope with unpredictable like amount and
* system physical memory, swap size and other VMM technology like KSM,
* memcg, memory hotplug and so on which may affect the OOM
* behaviours. It simply increase the memory consumption 3G each time
* until all the av... |
google | android | ksm01 | .c | platform/external/ltp/testcases/kernel/mem/ksm/ksm01.c | 3,231 | utf_8 | d9aafb7d24f1387e0ea22242e5379d2d | /*
*
* Kernel Samepage Merging (KSM)
*
* Basic tests were to start several programs with same and different
* memory contents and ensure only to merge the ones with the same
* contents. When changed the content of one of merged pages in a
* process and to the mode "unmerging", it should discard all merged
* pag... |
google | android | ksm06 | .c | platform/external/ltp/testcases/kernel/mem/ksm/ksm06.c | 4,081 | utf_8 | f290f380aeeed497d45acc525276026b | */
/*\
* [Description]
*
* The case is designed to test sysfs boolean knob
* /sys/kernel/mm/ksm/merge_across_nodes.
*
* When merge_across_nodes is set to zero only pages from the same
* node are merged, otherwise pages from all nodes can be merged
* together.
*
* Introduced in commit:
*
* commit 90bd6fd31... |
google | android | ksm03 | .c | platform/external/ltp/testcases/kernel/mem/ksm/ksm03.c | 3,440 | utf_8 | 2e8e6bf1e3e51594d57b393351824763 | /*
*
* Kernel Samepage Merging (KSM) for Memory Resource Controller
*
* Basic tests were to start several programs with same and different
* memory contents and ensure only to merge the ones with the same
* contents. When changed the content of one of merged pages in a
* process and to the mode "unmerging", it s... |
google | android | ksm05 | .c | platform/external/ltp/testcases/kernel/mem/ksm/ksm05.c | 2,663 | utf_8 | a6d1d47af04dbed1c33336d7ae2860de | *
* KSM - NULL pointer dereference in ksm_do_scan() (CVE-2011-2183)
*
* This is a testcase from upstream commit:
* 2b472611a32a72f4a118c069c2d62a1a3f087afd.
*
* an exiting task can race against ksmd::scan_get_next_rmap_item
* (http://lkml.org/lkml/2011/6/1/742) easily triggering a NULL pointer
* dereference in... |
google | android | ksm04 | .c | platform/external/ltp/testcases/kernel/mem/ksm/ksm04.c | 4,025 | utf_8 | 43e6133907013c92fde1ce171cdebcab | /*
*
* Kernel Samepage Merging (KSM) for Memory Resource Controller and NUMA
*
* Basic tests were to start several programs with same and different
* memory contents and ensure only to merge the ones with the same
* contents. When changed the content of one of merged pages in a
* process and to the mode "unmergi... |
google | android | ksm02 | .c | platform/external/ltp/testcases/kernel/mem/ksm/ksm02.c | 3,978 | utf_8 | cd800bb5d64f0a36bd388341ab558e34 | /*
*
* Kernel Samepage Merging (KSM)
*
* Basic tests were to start several programs with same and different
* memory contents and ensure only to merge the ones with the same
* contents. When changed the content of one of merged pages in a
* process and to the mode "unmerging", it should discard all merged
* pag... |
google | android | shmt08 | .c | platform/external/ltp/testcases/kernel/mem/shmt/shmt08.c | 2,678 | utf_8 | 2c016dc35277249800856d065b201b1f | /*
*
/*
* NAME
* shmt08
*
* CALLS
* shmctl(2) shmget(2) shmat(2) shmdt(2)
*
* ALGORITHM
* Create a shared memory segment. Attach it twice at an address
* that is provided by the system. Detach the previously attached
* segments from the process.
*
*/
#include <stdio.h>
#include <sys/types.h>
#include <sys... |
google | android | shmt02 | .c | platform/external/ltp/testcases/kernel/mem/shmt/shmt02.c | 2,783 | utf_8 | f82d28a15d8a77929133dd3f3a332fd7 | /*
*
/*
* NAME
* shmt02
*
* CALLS
* shmctl(2) shmget(2)
*
* ALGORITHM
* Create and attach a shared memory segment, write to it
* and then remove it. Verify that the shared memory segment
* is accessible as long as the process is still alive.
*
*/
#include <stdio.h>
#include <sys/types.h>
#include <s... |
google | android | shmt03 | .c | platform/external/ltp/testcases/kernel/mem/shmt/shmt03.c | 3,423 | utf_8 | 48a43ad7296fd75d580cff597db8a92a | /*
*
/*
* NAME
* shmt3
*
* CALLS
* shmctl(2) shmget(2) shmat(2)
*
* ALGORITHM
* Create one shared memory segment and attach it twice to the same process,
* at an address that is chosen by the system. After the first attach has
* completed, write to it and then do the second attach.
* Verify that the doubly ... |
google | android | shmt09 | .c | platform/external/ltp/testcases/kernel/mem/shmt/shmt09.c | 5,081 | utf_8 | 03548fb9385e1040ba56c3b4ea33522f | /*
*
/*
* NAME
* shmt09
*
* CALLS
* sbrk(2) shmctl(2) shmget(2)
*
* ALGORITHM
* Create a shared memory segment and attach at the default address.
* Increase the size of the data segment.
* Attach at an address that is less than the break value: should FAIL.
* decrease the size of the data segment.
* Attach... |
google | android | shmt10 | .c | platform/external/ltp/testcases/kernel/mem/shmt/shmt10.c | 3,696 | utf_8 | 2103ca612811c47b0a5e10fc6bcb7aa7 | /*
*
/*
* NAME
* shmt10.c - test simultaneous shmat/shmdt
*
* CALLS
* shmget, shmat, shmdt, shmctl
*
* ALGORITHM
* Create a shared memory segment and fork a child. Both
* parent and child spin in a loop attaching and detaching
* the segment. After completing the specified number of
* iterations, the child e... |
google | android | shmt04 | .c | platform/external/ltp/testcases/kernel/mem/shmt/shmt04.c | 4,409 | utf_8 | e8d485281be299dcbdcd449f262ecbf3 | /*
*
/*
* NAME
* shmt04
*
* CALLS
* shmctl(2) shmget(2) shmat(2)
*
* ALGORITHM
* Parent process forks a child. Child pauses until parent has created
* a shared memory segment, attached to it and written to it too. At that
* time child gets the shared memory segment id, attaches to it and
* verifies that... |
google | android | shmt07 | .c | platform/external/ltp/testcases/kernel/mem/shmt/shmt07.c | 2,991 | utf_8 | 3263dad374bab1c5818089342d7065ed | /*
*
/*
* NAME
* shmt07
*
* CALLS
* shmctl(2) shmget(2) shmat(2)
*
* ALGORITHM
* Create and attach a shared memory segment, write to it
* and then fork a child. The child verifies that the shared memory segment
* that it inherited from the parent contains the same data that was originally
* written to it by... |
google | android | shmt05 | .c | platform/external/ltp/testcases/kernel/mem/shmt/shmt05.c | 2,981 | utf_8 | 9c6bf9fd946349744b7293489fcb8cb9 | /*
*
/*
* NAME
* shmt05
*
* CALLS
* shmctl(2) shmget(2) shmat(2)
*
* ALGORITHM
* Create two shared memory segments and attach them to the same process
* at two different addresses. The addresses DO BUMP into each other.
* The second attach should Fail.
*
*/
#include <stdio.h>
#include <sys/types.h>
#in... |
google | android | shmt06 | .c | platform/external/ltp/testcases/kernel/mem/shmt/shmt06.c | 4,928 | utf_8 | 040813a3813de7a8d628082e5e35f779 | /*
*
/*
* NAME
* shmt06
*
* CALLS
* shmctl(2) shmget(2) shmat(2)
*
* ALGORITHM
* Parent process forks a child. Child pauses until parent has created
* a shared memory segment, attached to it and written to it too. At that
* time child gets the shared memory segment id, attaches to it at two
* different addr... |
google | android | mmapstress06 | .c | platform/external/ltp/testcases/kernel/mem/mmapstress/mmapstress06.c | 3,245 | utf_8 | a54786e416b8e3a4db07d0b10240253d | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* mfile_swap:
* Mmap a large (> ANON_GRAN_PAGES_MAX) shared, anonymous region before
* swapping to use the second half of the kernel primitive mfile_swap.
* However, this test does _NOT_ cause swapping to occur. Instead it sho... |
google | android | mmapstress09 | .c | platform/external/ltp/testcases/kernel/mem/mmapstress/mmapstress09.c | 11,429 | utf_8 | 0bc46be8f8aedfd6074fb444f68ddb8d | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#define _GNU_SOURCE 1
#include <sys/types.h>
#include <stdio.h>
#include <fcntl.h>
#include <signal.h>
#include <sys/mman.h>
#include <sys/wait.h>
#include <sys/stat.h>
#include <unistd.h>
#include <errno.h>
/***** LTP Port **... |
google | android | mmapstress01 | .c | platform/external/ltp/testcases/kernel/mem/mmapstress/mmapstress01.c | 9,841 | utf_8 | d17201300036e3e4fff44a32192ba127 | */
/*\
* [Description]
* This test stresses mmaps, without dealing with fragments or anything!
* It forks a specified number of children,
* all of whom mmap the same file, make a given number of accesses
* to random pages in the map (reading & writing and comparing data).
* Then the child exits and the parent fo... |
google | android | mmapstress02 | .c | platform/external/ltp/testcases/kernel/mem/mmapstress/mmapstress02.c | 4,551 | utf_8 | 84118c9b33bd40987dd656eecd6f2c74 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/* uiomove_phys_fail:
* Test a copyout/copyin failure in the kernel primitive uiomove_phys by
* reading into or writing from a mmaped regular file which lacks the
* needed permissions.
*/
#include <sys/types.h>
#include <sys/mman.... |
google | android | mmapstress10 | .c | platform/external/ltp/testcases/kernel/mem/mmapstress/mmapstress10.c | 23,122 | utf_8 | 8641f7ffdc9ded0766e41d5c2bf0e2cf | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#define _GNU_SOURCE 1
#include <stdio.h>
#include <fcntl.h>
#include <signal.h>
#include <sys/mman.h>
#include <sys/wait.h>
#include <sys/stat.h>
#include <unistd.h>
#include <stdlib.h>
#include <errno.h>
#include <sys/types.h>
#inclu... |
google | android | mmapstress08 | .c | platform/external/ltp/testcases/kernel/mem/mmapstress/mmapstress08.c | 3,654 | utf_8 | e5b13fd46c28bfe390037db5205ca9ee | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/* as_anon_get:
* This program tests the kernel primitive as_anon_get by using up lots of
* level 2 page tables causing the kernel to switch to large blocks of
* anonymous backing store allocation. This is done by allocating pages... |
google | android | mmap-corruption01 | .c | platform/external/ltp/testcases/kernel/mem/mmapstress/mmap-corruption01.c | 5,579 | utf_8 | c72be9dbd97573d24095419a10d65da1 | /******************************************************************************/
/* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */
/* */
/***********************************************************************... |
google | android | mmapstress04 | .c | platform/external/ltp/testcases/kernel/mem/mmapstress/mmapstress04.c | 2,736 | utf_8 | 4c1ee797b0355032fb6b9238b59d7e8b | */
/*
* Mmap parts of a file, and then write to the file causing single
* write requests to jump back and forth between mmaped io and regular io.
*/
#define _GNU_SOURCE
#include <stdlib.h>
#include "tst_test.h"
#include "tst_safe_macros.h"
#define NUM_PAGES (192)
#define TEST_FILE "mmapstress04-testfile"
static int... |
google | android | mmapstress05 | .c | platform/external/ltp/testcases/kernel/mem/mmapstress/mmapstress05.c | 5,475 | utf_8 | defba09d7ee9194dd24cf12a0ddf62c5 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/* mfile_insque:
* This test mmaps a portion of a file, and then mmaps the next
* portion of the file in front of the virtual space containing the
* original mmap. It then mmaps the preceding portion of the file behind
* the orig... |
google | android | mmapstress03 | .c | platform/external/ltp/testcases/kernel/mem/mmapstress/mmapstress03.c | 6,139 | utf_8 | ddc0c5a99c46a8faea5c1376d92194d8 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* This test mmaps over the tail of the brk segment, growing and
* shrinking brk over holes, while changing from small to large and
* large to small virtual memory representations. After mmaping over the
* end of the brk s... |
google | android | mmapstress07 | .c | platform/external/ltp/testcases/kernel/mem/mmapstress/mmapstress07.c | 8,711 | utf_8 | 143fd30ca3d656b5a8dfe1fe7fdec741 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* Mmap a sparse file and then fiddle with the hole in the middle.
* Then check the file contents.
*
* Usage: mmapstress07 filename holesize e_pageskip sparseoff
* EXAMPLE: mmapstress07 myfile 4096 1 4096
*/
#include <stdio.... |
google | android | vma02 | .c | platform/external/ltp/testcases/kernel/mem/vma/vma02.c | 4,495 | utf_8 | 3f044b5118cfd978b297997d5b2626c1 | /*
* This is a reproducer from mainline commit
* 9d8cebd4bcd7c3878462fdfda34bbcdeb4df7ef4:
*
* "Strangely, current mbind() doesn't merge vma with neighbor vma
* although it's possible. Unfortunately, many vma can reduce
* performance..."
*
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 0211... |
google | android | vma05_vdso | .c | platform/external/ltp/testcases/kernel/mem/vma/vma05_vdso.c | 68 | utf_8 | 579b365d4641fde9d41a8a755528374f | #include <signal.h>
int main(void)
{
raise(SIGSEGV);
return 0;
}
|
google | android | vma04 | .c | platform/external/ltp/testcases/kernel/mem/vma/vma04.c | 7,187 | utf_8 | 037d5375a05bd0471a7c830817ab5123 | /*
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301, USA.
*/
/*
* There are several corner cases (documented in mm/mmap.c) for mbind
* vma merge issue, which makes commit 8aacc9f550 slightly incorrect.
* KOSAKI Motohiro made a patch for it (commit e26a511) and composed
* a reproducer ... |
google | android | vma03 | .c | platform/external/ltp/testcases/kernel/mem/vma/vma03.c | 3,875 | utf_8 | 7f94feef32f7ec3db17bb43f4a75df00 | /*
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301, USA.
*/
/*
* This is a reproducer for CVE-2011-2496.
*
* The normal mmap paths all avoid creating a mapping where the pgoff
* inside the mapping could wrap around due to overflow. However, an
* expanding mremap() can take such a n... |
google | android | vma01 | .c | platform/external/ltp/testcases/kernel/mem/vma/vma01.c | 5,049 | utf_8 | a0cd946dfe03c6dfa8d8ea97e4505611 | /*
* vma01 - test not merging a VMA which cloned from parent process
*
* This program is used for testing the following upstream commit:
* 965f55dea0e331152fa53941a51e4e16f9f06fae
*
* The cloned VMA shares the anon_vma lock with the parent process's
* VMA. If we do the merge, more vmas (even the new range is onl... |
google | android | mem | .c | platform/external/ltp/testcases/kernel/mem/lib/mem.c | 17,435 | utf_8 | d4bcbb207f172c8e1e0eb56b27d097e8 | #define TST_NO_DEFAULT_MAIN
#include "config.h"
#include <sys/types.h>
#include <sys/mman.h>
#include <sys/mount.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <sys/param.h>
#include <errno.h>
#include <fcntl.h>
#if HAVE_NUMA_H
#include <numa.h>
#endif
#if HAVE_NUMAIF_H
#include <numaif.h>
#endif
#include <pth... |
google | android | mmap2 | .c | platform/external/ltp/testcases/kernel/mem/mtest06/mmap2.c | 7,853 | utf_8 | c52f99d22c2c5f5b41f207f5bd02d50e | /******************************************************************************/
/* */
/* July - 07 - 2001 Modified - changed MAP_PRIVATE to MAP_SHARED */
/* read defect 187 for details. */
/* */
/* July - 09 - 2001 Modified - added option to MAP_PRIVATE or */
/... |
google | android | shmat1 | .c | platform/external/ltp/testcases/kernel/mem/mtest06/shmat1.c | 18,896 | utf_8 | 5245e04bcb9a5ad0519a3bb8cb8bc2c0 | /*****************************************************************************/
/* */
/* July - 30 - 2001 Modified - Added function write_to_mem. */
/* */
/* Aug - 14 - 2001 Modified - Added code t... |
google | android | mmap3 | .c | platform/external/ltp/testcases/kernel/mem/mtest06/mmap3.c | 4,088 | utf_8 | d595d6944dd8d90be7ee597c8381ba79 | *
* Tests the LINUX memory manager. The program is aimed at stressing the memory
* manager by repeaded map/write/unmap of file/memory of random size (maximum
* 1GB) this is done by multiple threads.
*
* Create a file of random size upto 1000 times 4096, map it, change the
* contents of the file and unmap it. Thi... |
google | android | mmap1 | .c | platform/external/ltp/testcases/kernel/mem/mtest06/mmap1.c | 6,551 | utf_8 | 7c820f0e099b7a0e626fcaee3ae8aae7 | */
/*
* Test: Spawn 2 threads. First thread maps, writes and unmaps
* an area. Second thread tries to read from it. Second thread
* races against first thread. There is no synchronization
* between threads, but each mmap/munmap increases a counter
* that is checked to determine when has read occurred. If a read
... |
google | android | min_free_kbytes | .c | platform/external/ltp/testcases/kernel/mem/tunable/min_free_kbytes.c | 5,911 | utf_8 | a2de8cfa14441ea2fce7a722352b5976 | /*
*
* Description:
*
* The case is designed to test min_free_kbytes tunable.
*
* The tune is used to control free memory, and system always
* reserve min_free_kbytes memory at least.
*
* Since the tune is not too large or too little, which will
* lead to the system hang, so I choose two cases, and test them
... |
google | android | max_map_count | .c | platform/external/ltp/testcases/kernel/mem/tunable/max_map_count.c | 5,998 | utf_8 | 0f32cabb7bb706a9a26bf9c07e19531f | /*
*
* Description:
*
* The program is designed to test max_map_count tunable file
*
* The kernel Documentation say that:
* /proc/sys/vm/max_map_count contains the maximum number of memory map
* areas a process may have. Memory map areas are used as a side-effect
* of calling malloc, directly by mmap and mprot... |
google | android | overcommit_memory | .c | platform/external/ltp/testcases/kernel/mem/tunable/overcommit_memory.c | 8,402 | utf_8 | aaccdfa7909b3d6d08cfaa222b0a5c1d | *
* There are two tunables overcommit_memory and overcommit_ratio under
* /proc/sys/vm/, which can control memory overcommitment.
*
* The overcommit_memory contains a flag that enables memory
* overcommitment, it has three values:
* - When this flag is 0, the kernel attempts to estimate the amount
* of free m... |
google | android | shm_test | .c | platform/external/ltp/testcases/kernel/mem/mtest07/shm_test.c | 14,104 | utf_8 | 059e4d29bb6232078cea40ef69889995 | /******************************************************************************/
/* */
/* Nov - 26 - 2001 Modified - Manoj Iyer, IBM Austin Tx. */
/* - Added function rm_shared_mem. */
/* ... |
google | android | mallocstress | .c | platform/external/ltp/testcases/kernel/mem/mtest07/mallocstress.c | 4,599 | utf_8 | 6109f03280ed6514792e88794655ce4b | *
* Stress the VMM and C library by spawning N threads which malloc
* blocks of increasing size until malloc returns NULL.
*/
#include <stdio.h>
#include <pthread.h>
#include <stdlib.h>
#include <unistd.h>
#include <math.h>
#include <assert.h>
#include <errno.h>
#include <stdint.h>
#include <sys/types.h>
#include "... |
google | android | thp04 | .c | platform/external/ltp/testcases/kernel/mem/thp/thp04.c | 4,426 | utf_8 | 66c85b33f118dcb93dfe409a91e26c01 | * Date: Mon Nov 27 06:21:25 2017 +0300
*
* mm, thp: Do not make page table dirty unconditionally in touch_p[mu]d()
*
* More details see the following URL
* https://medium.com/bindecy/huge-dirty-cow-cve-2017-1000405-110eca132de0
*
* On old kernel such as 4.9, it has fixed the Dirty Cow bug but a similar che... |
google | android | thp02 | .c | platform/external/ltp/testcases/kernel/mem/thp/thp02.c | 2,681 | utf_8 | ece530e57b011837022155ccdc294c84 | */
/*\
* [Description]
*
* Test for detecting mremap bug when THP is enabled.
*
* There was a bug in mremap THP support, sometimes causing crash
* due to the following reason:
*
* "alloc_new_pmd was forcing the allocation of a pte before calling
* move_huge_page and that resulted in a VM_BUG_ON in move_huge_p... |
google | android | thp03 | .c | platform/external/ltp/testcases/kernel/mem/thp/thp03.c | 2,712 | utf_8 | adfde6321bbb48591a75f0a050d296af | /*
*/
/* thp03 - Case for spliting unaligned memory.
* - System will panic if failed.
*
* Modified form a reproducer for
* https://patchwork.kernel.org/patch/1358441/
* Kernel Commit id: 027ef6c87853b0a9df53175063028edb4950d476
* There was a bug in THP, will crash happened due to the following
* ... |
google | android | thp01 | .c | platform/external/ltp/testcases/kernel/mem/thp/thp01.c | 3,432 | utf_8 | 655607f74539f3bb091188f27bc47044 | *
* "Transparent hugepages can only be created if rmap is fully
* functional. So we must prevent hugepages to be created while
* is_vma_temporary_stack() is true."
*
* It will cause a panic something like this, if the patch didn't get
* applied:
*
* ```
* kernel BUG at mm/huge_memory.c:1260!
* invalid opcode... |
google | android | cpuset01 | .c | platform/external/ltp/testcases/kernel/mem/cpuset/cpuset01.c | 4,294 | utf_8 | c61e75943e19be108f80b063fde4a347 | /*
*
* Out Of Memory when changing cpuset's mems on NUMA. There was a
* problem reported upstream that the allocator may see an empty
* nodemask when changing cpuset's mems.
* http://lkml.org/lkml/2010/5/4/77
* http://lkml.org/lkml/2010/5/4/79
* http://lkml.org/lkml/2010/5/4/80
* This test is based on the repro... |
google | android | mmstress | .c | platform/external/ltp/testcases/kernel/mem/mtest05/mmstress.c | 29,271 | utf_8 | aebbc79b1d947822e6dbe9ee1adc1ac4 | /*
*
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/******************************************************************************/
/* */
/* File: mmstress.c ... |
google | android | mmstress_dummy | .c | platform/external/ltp/testcases/kernel/mem/mtest05/mmstress_dummy.c | 1,327 | utf_8 | c0f401a9160701a1d6804afbade97e2b | /******************************************************************************/
/* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */
/* */
/******************************************************************************/
#include <stdio.h>
#include <stdlib.h>
#include <uni... |
google | android | pm_get_sched_values | .c | platform/external/ltp/testcases/kernel/power_management/pm_get_sched_values.c | 1,217 | utf_8 | 7f7a723a6d159c095f4f2aca4c6110d2 | /************************************************************************
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
***************************************************************************/
#include <stdio.h>
#include "test.h"
const char *TCID = "pm_get_sched_values";
int main(... |
google | android | pth_str01 | .c | platform/external/ltp/testcases/kernel/sched/pthreads/pth_str01.c | 15,840 | utf_8 | 81a019d78f5db11772892a4d4d149041 | /* TODO: proper output */
/*
*
* -Ported
*
*/
#include <pthread.h>
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <stdint.h>
#include <sys/types.h>
#include "test.h"
#include "pth_str01.h"
int depth = 3;
int breadth = 4;
int timeout = 30; /* minutes ... |
google | android | pth_str03 | .c | platform/external/ltp/testcases/kernel/sched/pthreads/pth_str03.c | 17,641 | utf_8 | 49f94bba151729dff8de8126e61d3345 | /* TODO: proper output */
/*
*
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* FILE : pth_str03.c
* DESCRIPTION : create a tree of threads does calculations, and
* returns result to parent
* HISTORY:
* -Ported
*
*/
#include <pthread.h>
#in... |
google | android | pth_str02 | .c | platform/external/ltp/testcases/kernel/sched/pthreads/pth_str02.c | 7,160 | utf_8 | 562946fc3917195f24c35ba6c5dcdca9 | /*
*
* -Ported
*
*/
#include <pthread.h>
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include "test.h"
/* Defines
*
* DEFAULT_NUM_THREADS: Default number of threads to create,
* user can specifiy with [-n] command line option.
*
* USAGE: usage statemen... |
google | android | autogroup01 | .c | platform/external/ltp/testcases/kernel/sched/autogroup/autogroup01.c | 1,792 | utf_8 | d3180c3e60876019dadb5b6236c031f4 | * Date: Mon Nov 14 19:46:09 2016 +0100
*
* sched/autogroup: Fix autogroup_move_group() to never skip sched_move_task()
*/
#include <sys/types.h>
#include <unistd.h>
#include <stdlib.h>
#include "tst_test.h"
#define LOOPS 1000
#define PATH_AUTOGROUP "/proc/sys/kernel/sched_autogroup_enabled"
static int orig_au... |
google | android | nptl01 | .c | platform/external/ltp/testcases/kernel/sched/nptl/nptl01.c | 7,902 | utf_8 | c8416685d79e5be34c42a2ae358e4a0c | /*
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
*/
/**********************************************************
*
* TEST IDENTIFIER : nptl01
*
* EXECUTED BY : root
*
* TEST TITLE : NPTL test for pthread_cond_timedwait() error
* path bug.
*
* TEST CASE TOTAL ... |
google | android | writen | .c | platform/external/ltp/testcases/kernel/sched/clisrv/writen.c | 1,372 | utf_8 | 4ae9fef03525aea25e867c7ebe9613de | /*
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/******************************************************************************
* writen.c
******************************************************************************/
#include <unistd.h>
/* Write "n" bytes to a descriptor
... |
google | android | pthserv | .c | platform/external/ltp/testcases/kernel/sched/clisrv/pthserv.c | 5,340 | utf_8 | bb8236d9e7bf57b40b071ec3047f01ee | /*
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* File: pthserv.c Version: 1.3 Last update: 5/19/94 08:55:35
*/
/******************************************************************************/
/* File: pthserv.c */... |
google | android | readline | .c | platform/external/ltp/testcases/kernel/sched/clisrv/readline.c | 1,526 | utf_8 | b8134d6904a03dd3a6427e23a69987ef | /*
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*****************************************************************************
* readline.c
******************************************************************************/
#include <unistd.h>
/* Read line from a descriptor, byte... |
google | android | pthcli | .c | platform/external/ltp/testcases/kernel/sched/clisrv/pthcli.c | 4,618 | utf_8 | 82616a2c683754518f38ec2c38d3aed0 | /*
*
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/******************************************************************************
*
* pthcli.c
*
*
* US Government Users Restricted Rights - Use, duplication or
* disclosure restricted by GSA ADP Schedule Contract with... |
google | android | ht_utils | .c | platform/external/ltp/testcases/kernel/sched/hyperthreading/ht_affinity/ht_utils.c | 2,105 | utf_8 | 5e9db8f23cd0d373753ecf8aef6837c4 |
#include "ht_utils.h"
#include <stdio.h>
#include <stdlib.h>
#include <alloca.h>
#include <string.h>
#include <linux/unistd.h>
#include "ltp_cpuid.h"
#define PROC_PATH "/proc"
#define BUFF_SIZE 8192
#define PROCESSOR_STR "processor"
#define MAX_CPU_NUM 128
char buffer[BUFF_SIZE];
int is_ht_cpu(void)
{
/*Number o... |
google | android | ht_affinity | .c | platform/external/ltp/testcases/kernel/sched/hyperthreading/ht_affinity/ht_affinity.c | 5,905 | utf_8 | 5dc6a2c9c0d434bfd050796be031149a | /***************************************************************************
HTaffinity.c - description
* (at your option) any later version. *
* *
*********************************... |
google | android | ht_utils | .c | platform/external/ltp/testcases/kernel/sched/hyperthreading/ht_enabled/ht_utils.c | 2,184 | utf_8 | 3701c99f5895bdf3cc00e724184f158d |
#include "ht_utils.h"
#include <stdio.h>
#include <stdlib.h>
#include <alloca.h>
#include <string.h>
#include <linux/unistd.h>
#include "ltp_cpuid.h"
#define PROC_PATH "/proc"
#define BUFF_SIZE 8192
#define PROCESSOR_STR "processor"
#define PACKAGE_STR "cpu_package"
#define HT_FLAG "ht"
#define FLAG_STR "flags"
#de... |
google | android | ht_enabled | .c | platform/external/ltp/testcases/kernel/sched/hyperthreading/ht_enabled/ht_enabled.c | 1,252 | utf_8 | c8d7d7867d29c775e3c0bee993524db8 | /***************************************************************************
HTenabled.c - description
* (at your option) any later version. *
* *
**********************************... |
google | android | trace_parse | .c | platform/external/ltp/testcases/kernel/sched/eas/trace_parse.c | 15,199 | utf_8 | d193818fad3f91167df53fa979539a4d | /*
*/
#define _GNU_SOURCE
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <errno.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "tst_res_flags.h"
#include "tst_safe_file_ops.h"
#include "tst_safe_macros.h"
#include "trace_parse.h"
#define TRACEFS_MAX... |
google | android | eas_one_big_task | .c | platform/external/ltp/testcases/kernel/sched/eas/eas_one_big_task.c | 3,494 | utf_8 | bdf0076a1dfc9b3dcda707048984c90b | /*
*
* A single big task executes. Task placement and upmigration latency is
* verified.
*/
#define _GNU_SOURCE
#include <errno.h>
#include <pthread.h>
#include <sched.h>
#include <time.h>
#include "tst_test.h"
#include "tst_safe_file_ops.h"
#include "tst_safe_pthread.h"
#include "trace_parse.h"
#include "util.h"
#... |
google | android | sched_dl_runtime | .c | platform/external/ltp/testcases/kernel/sched/eas/sched_dl_runtime.c | 5,218 | utf_8 | 30b60fe2db443c625a8c4533a93e9433 | /*
*
* A DL task runs. Its execution pattern is checked to see that the constraints
* it has been given (runtime, period, deadline) are satisfied.
*/
#define _GNU_SOURCE
#include <errno.h>
#include <pthread.h>
#include <sched.h>
#include <semaphore.h>
#include <time.h>
#include "tst_test.h"
#include "tst_safe_file_... |
google | android | eas_big_to_small | .c | platform/external/ltp/testcases/kernel/sched/eas/eas_big_to_small.c | 4,867 | utf_8 | 1b018a30ff4348f0fcfd27e55d94ef0e | /*
*
* Task starts out as a CPU hog and then becomes small.
* Task placement and downmigration latency are verified.
*/
#define _GNU_SOURCE
#include <errno.h>
#include <pthread.h>
#include <sched.h>
#include <time.h>
#include "tst_test.h"
#include "tst_safe_file_ops.h"
#include "tst_safe_pthread.h"
#include "trace_... |
google | android | sugov_wakeups | .c | platform/external/ltp/testcases/kernel/sched/eas/sugov_wakeups.c | 1,579 | utf_8 | edf558b8c0c9477e855afe457b36dad9 | /*
*
* This test looks for a high number of wakeups from the schedutil governor
* threads.
*/
#define _GNU_SOURCE
#include <errno.h>
#include <pthread.h>
#include <sched.h>
#include <stdio.h>
#include <time.h>
#include "tst_test.h"
#include "tst_safe_file_ops.h"
#include "tst_safe_pthread.h"
#include "trace_parse.h... |
google | android | eas_small_to_big | .c | platform/external/ltp/testcases/kernel/sched/eas/eas_small_to_big.c | 4,628 | utf_8 | 7be2b6cdc204552d3ac246f24502eac6 | /*
*
* A task executes as small then as big. Upmigration latency and task placement
* are verified.
*/
#define _GNU_SOURCE
#include <errno.h>
#include <pthread.h>
#include <sched.h>
#include <sys/types.h>
#include <time.h>
#include "tst_test.h"
#include "tst_safe_file_ops.h"
#include "tst_safe_pthread.h"
#include "... |
google | android | util | .c | platform/external/ltp/testcases/kernel/sched/eas/util.c | 4,020 | utf_8 | 04bff28ba786e26e205f897c6eb0bdd7 | /*
*/
#define _GNU_SOURCE
#include <errno.h>
#include <fcntl.h>
#include <sched.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <unistd.h>
#include "tst_cpu.h"
#include "tst_safe_file_ops.h"
#include "util.h"
void affine(int cpu)
{
cpu_set_t cpuset;
CPU_ZERO(&cpuset);
CPU_SE... |
google | android | sched_boost | .c | platform/external/ltp/testcases/kernel/sched/eas/sched_boost.c | 5,144 | utf_8 | 27491d5e68ccdee99239fd6411a349ef | /*
*
* A test schedboost cgroup is created and a task is put inside it. The
* utilization of that task is monitored and verified while changing the boost
* of the test schedboost cgroup to different values.
*/
#define _GNU_SOURCE
#include <errno.h>
#include <pthread.h>
#include <sched.h>
#include <semaphore.h>
#in... |
google | android | sched_latency_rt | .c | platform/external/ltp/testcases/kernel/sched/eas/sched_latency_rt.c | 3,891 | utf_8 | 16c09101a2d95c99b8f4c7dd8da40195 | /*
*
* A CFS task and an RT task are created and affined to the same CPU. The CFS
* task is a CPU hog. The latency for the RT task to execute after it has been
* woken is measured and verified.
*/
#define _GNU_SOURCE
#include <errno.h>
#include <pthread.h>
#include <sched.h>
#include <semaphore.h>
#include <time.h... |
google | android | sched_prio_3_fifo | .c | platform/external/ltp/testcases/kernel/sched/eas/sched_prio_3_fifo.c | 10,697 | utf_8 | e841caf2bde075e050a584de47e64a6f | /*
*
* Six RT FIFO tasks are created and affined to the same CPU. They execute
* with a particular pattern of overlapping eligibility to run. The resulting
* execution pattern is checked to see that the tasks execute as expected given
* their priorities.
*/
#define _GNU_SOURCE
#include <errno.h>
#include <pthread... |
google | android | sugov_latency | .c | platform/external/ltp/testcases/kernel/sched/eas/sugov_latency.c | 6,437 | utf_8 | 28193db30f20a41dec781b87f28fbd79 | /*
*
* A CFS task is affined to a particular CPU. The task runs as a CPU hog for a
* while then as a very small task for a while. The latency for the CPU
* frequency of the CPU to reach max and then min is verified.
*/
#define _GNU_SOURCE
#include <errno.h>
#include <pthread.h>
#include <sched.h>
#include <time.h>... |
google | android | sched_latency_dl | .c | platform/external/ltp/testcases/kernel/sched/eas/sched_latency_dl.c | 4,426 | utf_8 | 393c1b304613ea6f229273ce78e40bda | /*
*
* A DL task and a CFS task are created and affined to the same CPU. The CFS
* task is a CPU hog. The latency to switch to the DL task (which should preempt
* the CFS task immediately) is checked.
*/
#define _GNU_SOURCE
#include <errno.h>
#include <pthread.h>
#include <sched.h>
#include <semaphore.h>
#include ... |
google | android | sched_cfs_prio | .c | platform/external/ltp/testcases/kernel/sched/eas/sched_cfs_prio.c | 5,601 | utf_8 | 0ea63b91c1747d955c1f4051d82ea34e | /*
*
* Some CFS tasks are started with different priorities. The tasks are CPU hogs
* and affined to the same CPU. Their runtime is checked to see that it
* corresponds to that which is expected given the task priorities.
*/
#define _GNU_SOURCE
#include <errno.h>
#include <pthread.h>
#include <sched.h>
#include <s... |
google | android | sugov_stale_util | .c | platform/external/ltp/testcases/kernel/sched/eas/sugov_stale_util.c | 5,932 | utf_8 | 2a49192bbf5459856b86a5cd8b9d550d | /*
*
* This test attempts to verify that the schedutil governor does not take into
* account stale utilization from an idle CPU when calculating the frequency for
* a shared policy.
*
* This test is not yet complete and may never be. The CPU in question may
* receive spurious updates which push the stale deadlin... |
google | android | eas_two_big_three_small | .c | platform/external/ltp/testcases/kernel/sched/eas/eas_two_big_three_small.c | 3,589 | utf_8 | d0c3ff901cf7403d6f942d921ea34fa7 | /*
*
* Two big and three small tasks execute. Task placement is verified.
*/
#define _GNU_SOURCE
#include <errno.h>
#include <pthread.h>
#include <sched.h>
#include <time.h>
#include "tst_test.h"
#include "tst_safe_file_ops.h"
#include "tst_safe_pthread.h"
#include "trace_parse.h"
#include "util.h"
#define TRACE_EVE... |
google | android | sched_prio_3_rr | .c | platform/external/ltp/testcases/kernel/sched/eas/sched_prio_3_rr.c | 4,513 | utf_8 | 52ea533a6133299ac47376a8eb359e76 | /*
*
* Three RT RR tasks are created and affined to the same CPU. They execute as
* CPU hogs. Their runtime is checked to see that they share the CPU as
* expected.
*/
#define _GNU_SOURCE
#include <errno.h>
#include <pthread.h>
#include <sched.h>
#include <semaphore.h>
#include <time.h>
#include "tst_test.h"
#incl... |
google | android | eas_small_big_toggle | .c | platform/external/ltp/testcases/kernel/sched/eas/eas_small_big_toggle.c | 6,495 | utf_8 | 378b387fe61484ee1eac7944e1825cf4 | /*
*
* A task alternates between being big and small. Max up and down migration
* latencies and task placement are verified.
*/
#define _GNU_SOURCE
#include <errno.h>
#include <pthread.h>
#include <sched.h>
#include <time.h>
#include "tst_test.h"
#include "tst_safe_file_ops.h"
#include "tst_safe_pthread.h"
#include... |
google | android | eas_one_small_task | .c | platform/external/ltp/testcases/kernel/sched/eas/eas_one_small_task.c | 2,798 | utf_8 | 4a5308d8f3c59590a3da453cb22ab406 | /*
*
* A single small task executes. Task placement is verified.
*/
#define _GNU_SOURCE
#include <errno.h>
#include <pthread.h>
#include <sched.h>
#include <time.h>
#include "tst_test.h"
#include "tst_safe_file_ops.h"
#include "tst_safe_pthread.h"
#include "trace_parse.h"
#include "util.h"
#define TRACE_EVENTS "sche... |
google | android | sched_tc4 | .c | platform/external/ltp/testcases/kernel/sched/sched_stress/sched_tc4.c | 10,327 | utf_8 | b733f9c9ef550a17fbd2478b2e3ca4f1 | /*
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* FUNCTIONS: Scheduler Test Suite
*/
/*---------------------------------------------------------------------+
| sched_tc4 |
| =========================================... |
google | android | sched_driver | .c | platform/external/ltp/testcases/kernel/sched/sched_stress/sched_driver.c | 28,672 | utf_8 | 6768a829c41ed060c3cff4b3d37fd2b4 | /*
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*---------------------------------------------------------------------+
| sched_driver |
| ==================================================================== |
| ... |
google | android | sched_tc0 | .c | platform/external/ltp/testcases/kernel/sched/sched_stress/sched_tc0.c | 8,852 | utf_8 | ac584ce8a4f18893eeb26ea9bc1445b9 | /*
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/* FUNCTIONS: Scheduler Test Suite */
/*---------------------------------------------------------------------+
| sched_tc0 |
| ============================================... |
google | android | sched | .c | platform/external/ltp/testcases/kernel/sched/sched_stress/sched.c | 4,849 | utf_8 | ec833a24be0bdbaac699434d71878c1d | /*
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* FUNCTIONS: Scheduler Test Suite
*/
/*---------------------------------------------------------------------+
| sched.c |
| =========================================... |
google | android | sched_tc2 | .c | platform/external/ltp/testcases/kernel/sched/sched_stress/sched_tc2.c | 9,009 | utf_8 | 297cfade31378a49c2f7ac96d00eed05 | /*
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
FUNCTIONS: Scheduler Test Suite
*/
/*---------------------------------------------------------------------+
| sched_tc2 |
| ==========================================... |
google | android | sched_tc5 | .c | platform/external/ltp/testcases/kernel/sched/sched_stress/sched_tc5.c | 10,202 | utf_8 | feac637c2c9761ebb0029db2086782ee | /*
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* FUNCTIONS: Scheduler Test Suite
*/
/*---------------------------------------------------------------------+
| sched_tc5 |
| =========================================... |
google | android | sched_tc6 | .c | platform/external/ltp/testcases/kernel/sched/sched_stress/sched_tc6.c | 18,249 | utf_8 | 16c205f85236a81343b277576d15e8a4 | /*
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* FUNCTIONS: Scheduler Test Suite
*/
/*---------------------------------------------------------------------+
| sched_tc6 |
| =========================================... |
google | android | sched_tc1 | .c | platform/external/ltp/testcases/kernel/sched/sched_stress/sched_tc1.c | 9,251 | utf_8 | 364e1053da79b0b81e51bb2b99ce9ce5 | /*
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/* FUNCTIONS: Scheduler Test Suite */
/*---------------------------------------------------------------------+
| sched_tc1 |
| =============================================... |
google | android | sched_tc3 | .c | platform/external/ltp/testcases/kernel/sched/sched_stress/sched_tc3.c | 9,627 | utf_8 | 41f6683773907ff2958ecd98ec38384a | /*
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* FUNCTIONS: Scheduler Test Suite
*/
/*---------------------------------------------------------------------+
| sched_tc3 |
| =========================================... |
google | android | hackbench | .c | platform/external/ltp/testcases/kernel/sched/cfs-scheduler/hackbench.c | 10,620 | utf_8 | 255f2601b34bfc5c4d143719b3f0a015 | /* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */
/* */
/******************************************************************************/
/***********************************************************************... |
google | android | cfs_bandwidth01 | .c | platform/external/ltp/testcases/kernel/sched/cfs-scheduler/cfs_bandwidth01.c | 4,533 | utf_8 | 141fc4c31b0aadb333034eee4a4aeb0f | /*\
*
* [Description]
*
* Creates a multi-level CGroup hierarchy with the cpu controller
* enabled. The leaf groups are populated with "busy" processes which
* simulate intermittent cpu load. They spin for some time then sleep
* then repeat.
*
* Both the trunk and leaf groups are set cpu bandwidth limits. The
... |
google | android | trace_sched | .c | platform/external/ltp/testcases/kernel/sched/tool/trace_sched.c | 18,732 | utf_8 | fb9a440fc809fb8b2ae975cc0a3799ad | /******************************************************************************/
/* */
/* Feb - 25 - 2002 Modified - Manoj Iyer, IBM Austin TX. */
/* - Added structure thread_sched_t. */
/* - Added logic to specify schedul... |
google | android | time-schedule | .c | platform/external/ltp/testcases/kernel/sched/tool/time-schedule.c | 13,894 | utf_8 | 02320236da427f90c952e1dd3f4a7cdd | /* time-schedule.c
Programme to test how long a context switch takes.
The postal address is:
Richard Gooch, c/o ATNF, P. O. Box 76, Epping, N.S.W., 2121, Australia.
*/
/*
This programme will determine the context switch (scheduling) overhead on
a system. It takes into account SMP machines. True c... |
google | android | support_numa | .c | platform/external/ltp/testcases/kernel/numa/support_numa.c | 5,016 | utf_8 | e88c37a21a4770342776ecc373b3a78b | /******************************************************************************/
/* */
/******************************************************************************/
/****************************************************************************... |
google | android | pec_listener | .c | platform/external/ltp/testcases/kernel/connectors/pec/pec_listener.c | 7,945 | utf_8 | 2f927c52bc7a9d30d963e2e2bd629a88 | *
* Listen to process events received through the kernel connector
* and print them.
*/
#include <sys/socket.h>
#include <sys/poll.h>
#include <sys/types.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <signal.h>
#include <linux/types.h>
#include <linux/... |
google | android | event_generator | .c | platform/external/ltp/testcases/kernel/connectors/pec/event_generator.c | 4,829 | utf_8 | b19fe9bea360bc74300adab9dd9515d0 | *
* Generate a specified process event (fork, exec, uid, gid or exit).
*/
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <pwd.h>
#include <sys/types.h>
#include <sys/wait.h>
#define TST_NO_DEFAULT_MAIN
#include "tst_test.h"
extern struct tst_test *tst_test;
static struct tst_... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.