Home
last modified time | relevance | path

Searched refs:memctl (Results 1 – 18 of 18) sorted by relevance

/external/ltp/testcases/kernel/controllers/memctl/
Dmyfunctions.sh50 rmdir /dev/memctl/group* 2> /dev/null
51 umount /dev/memctl 2> /dev/null
52 rmdir /dev/memctl 2> /dev/null
59 if [ -e /dev/memctl ]
63 mkdir /dev/memctl;
65 mkdir /dev/memctl
67 mount -t cgroup -omemory cgroup /dev/memctl 2> /dev/null
76 if [ -e /dev/memctl/group_1 ]
78 rmdir /dev/memctl/group*
86 mkdir /dev/memctl/$group;# 2>/dev/null
[all …]
Drun_memctl_test.sh60 USAGE_FROM_USAGE_IN_BYTES=`cat /dev/memctl/group_1/memory.usage_in_bytes`;
69 SECOND_READ=`cat /dev/memctl/group_1/memory.usage_in_bytes`;
132 MYGROUP=/dev/memctl/group_1;
151 GRP1_MEMUSAGE=`cat /dev/memctl/group_1/memory.usage_in_bytes`;
157 GRP2_MEMUSAGE_OLD=`cat /dev/memctl/group_2/memory.usage_in_bytes`;
164 echo 0 > /dev/memctl/group_2/memory.move_charge_at_immigrate
170 echo ${PID[$i]} >>/dev/memctl/group_2/tasks;
178 GRP2_TASKS=`cat /dev/memctl/group_2/tasks|wc -l`;
191 GRP2_MEMUSAGE_NEW=`cat /dev/memctl/group_2/memory.usage_in_bytes`;
209 GRP2_MEMUSAGE_OLD=`cat /dev/memctl/group_2/memory.usage_in_bytes`;
[all …]
DREADME3 The directory memctl contains the tests related to memory controller.
23 the cleanup once the test finishes. The setup() function creates /dev/memctl
25 creates a number(n) of groups in /dev/memctl. The cleanup function does a
/external/pcre/dist2/src/
Dpcre2_serialize.c84 const pcre2_memctl *memctl = (gcontext != NULL) ? in pcre2_serialize_encode() local
85 &gcontext->memctl : &PRIV(default_compile_context).memctl; in pcre2_serialize_encode()
109 bytes = memctl->malloc(total_size + sizeof(pcre2_memctl), memctl->memory_data); in pcre2_serialize_encode()
113 memcpy(bytes, memctl, sizeof(pcre2_memctl)); in pcre2_serialize_encode()
149 const pcre2_memctl *memctl = (gcontext != NULL) ? in pcre2_serialize_decode() local
150 &gcontext->memctl : &PRIV(default_compile_context).memctl; in pcre2_serialize_decode()
174 tables = memctl->malloc(tables_length + sizeof(PCRE2_SIZE), memctl->memory_data); in pcre2_serialize_decode()
201 memctl->free(tables, memctl->memory_data); in pcre2_serialize_decode()
204 memctl->free(codes[j], memctl->memory_data); in pcre2_serialize_decode()
260 pcre2_memctl *memctl = (pcre2_memctl *)(bytes - sizeof(pcre2_memctl)); in pcre2_serialize_free() local
[all …]
Dpcre2_context.c86 PRIV(memctl_malloc)(size_t size, pcre2_memctl *memctl) in PRIV()
89 void *yield = (memctl == NULL)? malloc(size) : in PRIV()
90 memctl->malloc(size, memctl->memory_data); in PRIV()
93 if (memctl == NULL) in PRIV()
99 else *newmemctl = *memctl; in PRIV()
123 gcontext->memctl.malloc = private_malloc; in pcre2_general_context_create()
124 gcontext->memctl.free = private_free; in pcre2_general_context_create()
125 gcontext->memctl.memory_data = memory_data; in pcre2_general_context_create()
201 gcontext->memctl.malloc(sizeof(pcre2_real_general_context), in pcre2_general_context_copy()
202 gcontext->memctl.memory_data); in pcre2_general_context_copy()
[all …]
Dpcre2_jit_misc.c78 PRIV(jit_free)(void *executable_jit, pcre2_memctl *memctl) in PRIV()
82 (void)memctl; in PRIV()
86 void *allocator_data = memctl; in PRIV()
147 jit_stack->stack = sljit_allocate_stack(startsize, maxsize, &jit_stack->memctl); in pcre2_jit_stack_create()
188 sljit_free_stack((struct sljit_stack *)(jit_stack->stack), &jit_stack->memctl); in pcre2_jit_stack_free()
189 jit_stack->memctl.free(jit_stack, jit_stack->memctl.memory_data); in pcre2_jit_stack_free()
Dpcre2_substring.c245 pcre2_memctl *memctl = (pcre2_memctl *)((char *)string - sizeof(pcre2_memctl)); in pcre2_substring_free() local
246 memctl->free(memctl, memctl->memory_data); in pcre2_substring_free()
444 pcre2_memctl *memctl = (pcre2_memctl *)((char *)list - sizeof(pcre2_memctl)); in pcre2_substring_list_free() local
445 memctl->free(memctl, memctl->memory_data); in pcre2_substring_list_free()
Dpcre2_intmodedep.h555 pcre2_memctl memctl; member
561 pcre2_memctl memctl; member
574 pcre2_memctl memctl; member
605 pcre2_memctl memctl; /* Memory control fields */ member
631 pcre2_memctl memctl; member
730 pcre2_memctl memctl; member
776 pcre2_memctl memctl; /* For general use */ member
831 pcre2_memctl memctl; /* For general use */ member
Dpcre2_match_data.c96 match_data->memctl.free(match_data, match_data->memctl.memory_data); in pcre2_match_data_free()
Dpcre2_maketables.c83 gcontext->memctl.malloc(tables_length, gcontext->memctl.memory_data) :
Dpcre2_compile.c746 newcode = code->memctl.malloc(code->blocksize, code->memctl.memory_data); in pcre2_code_copy()
777 PRIV(jit_free)(code->executable_jit, &code->memctl); in pcre2_code_free()
790 code->memctl.free((void *)code->tables, code->memctl.memory_data); in pcre2_code_free()
794 code->memctl.free(code, code->memctl.memory_data); in pcre2_code_free()
3741 cb->cx->memctl.malloc(newsize * sizeof(named_group), in scan_for_captures()
3742 cb->cx->memctl.memory_data); in scan_for_captures()
3752 cb->cx->memctl.free((void *)cb->named_groups, in scan_for_captures()
3753 cb->cx->memctl.memory_data); in scan_for_captures()
8408 copied_pattern = ccontext->memctl.malloc(CU2BYTES(patlen + 1), in pcre2_compile()
8409 ccontext->memctl.memory_data); in pcre2_compile()
[all …]
Dpcre2_match.c1864 fr = (ovecsave_frame *)(mb->memctl.malloc(sizeof(ovecsave_frame *) + in match()
1865 mb->offset_end * sizeof(PCRE2_SIZE), mb->memctl.memory_data)); in match()
6629 mb->memctl = mcontext->memctl; in pcre2_match()
6712 mb->ovector = (PCRE2_SIZE *)(mb->memctl.malloc(ocount * sizeof(PCRE2_SIZE), in pcre2_match()
6713 mb->memctl.memory_data)); in pcre2_match()
7127 mb->memctl.free(this, mb->memctl.memory_data); in pcre2_match()
7158 mb->memctl.free(mb->ovector, mb->memctl.memory_data); in pcre2_match()
7239 mb->memctl.free(mb->ovector, mb->memctl.memory_data); in pcre2_match()
Dpcre2_dfa_match.c3218 mb->memctl = re->memctl; in pcre2_dfa_match()
3230 mb->memctl = mcontext->memctl; in pcre2_dfa_match()
Dpcre2_jit_compile.c10839 void *allocator_data = &re->memctl; in jit_compile()
/external/ltp/testcases/kernel/controllers/memcg/
DREADME7 contain the regression test, basis operation test and stress test of memctl.
14 of memctl..
/external/ltp/testcases/kernel/controllers/
DREADME40 memctl
/external/ltp/android/
DAndroid.ltp.mk529 module_src_files := testcases/kernel/controllers/memctl/run_memctl_test.sh
2785 module_src_files := testcases/kernel/controllers/memctl/myfunctions.sh
/external/ltp/
Dgen.bp2447 srcs: ["testcases/kernel/controllers/memctl/memctl_test01.c"],