Home
last modified time | relevance | path

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

/tools/testing/selftests/powerpc/ptrace/
Dcore-pkey.c349 static int write_core_pattern(const char *core_pattern) in write_core_pattern() argument
351 size_t len = strlen(core_pattern), ret; in write_core_pattern()
357 ret = fwrite(core_pattern, 1, len, f); in write_core_pattern()
370 char *core_pattern; in setup_core_pattern() local
373 core_pattern = malloc(PATH_MAX); in setup_core_pattern()
374 if (!core_pattern) { in setup_core_pattern()
386 ret = fread(core_pattern, 1, PATH_MAX, f); in setup_core_pattern()
395 if (!strcmp(core_pattern, "core") || !strcmp(core_pattern, "core.%p")) in setup_core_pattern()
405 *core_pattern_ = core_pattern; in setup_core_pattern()
410 free(core_pattern); in setup_core_pattern()
[all …]