diff options
Diffstat (limited to 'Documentation/filesystems/proc.txt')
-rw-r--r-- | Documentation/filesystems/proc.txt | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/Documentation/filesystems/proc.txt b/Documentation/filesystems/proc.txt index c032bf39e8b9..02cb7faeed6b 100644 --- a/Documentation/filesystems/proc.txt +++ b/Documentation/filesystems/proc.txt | |||
@@ -2412,24 +2412,29 @@ will be dumped when the <pid> process is dumped. coredump_filter is a bitmask | |||
2412 | of memory types. If a bit of the bitmask is set, memory segments of the | 2412 | of memory types. If a bit of the bitmask is set, memory segments of the |
2413 | corresponding memory type are dumped, otherwise they are not dumped. | 2413 | corresponding memory type are dumped, otherwise they are not dumped. |
2414 | 2414 | ||
2415 | The following 4 memory types are supported: | 2415 | The following 7 memory types are supported: |
2416 | - (bit 0) anonymous private memory | 2416 | - (bit 0) anonymous private memory |
2417 | - (bit 1) anonymous shared memory | 2417 | - (bit 1) anonymous shared memory |
2418 | - (bit 2) file-backed private memory | 2418 | - (bit 2) file-backed private memory |
2419 | - (bit 3) file-backed shared memory | 2419 | - (bit 3) file-backed shared memory |
2420 | - (bit 4) ELF header pages in file-backed private memory areas (it is | 2420 | - (bit 4) ELF header pages in file-backed private memory areas (it is |
2421 | effective only if the bit 2 is cleared) | 2421 | effective only if the bit 2 is cleared) |
2422 | - (bit 5) hugetlb private memory | ||
2423 | - (bit 6) hugetlb shared memory | ||
2422 | 2424 | ||
2423 | Note that MMIO pages such as frame buffer are never dumped and vDSO pages | 2425 | Note that MMIO pages such as frame buffer are never dumped and vDSO pages |
2424 | are always dumped regardless of the bitmask status. | 2426 | are always dumped regardless of the bitmask status. |
2425 | 2427 | ||
2426 | Default value of coredump_filter is 0x3; this means all anonymous memory | 2428 | Note bit 0-4 doesn't effect any hugetlb memory. hugetlb memory are only |
2427 | segments are dumped. | 2429 | effected by bit 5-6. |
2430 | |||
2431 | Default value of coredump_filter is 0x23; this means all anonymous memory | ||
2432 | segments and hugetlb private memory are dumped. | ||
2428 | 2433 | ||
2429 | If you don't want to dump all shared memory segments attached to pid 1234, | 2434 | If you don't want to dump all shared memory segments attached to pid 1234, |
2430 | write 1 to the process's proc file. | 2435 | write 0x21 to the process's proc file. |
2431 | 2436 | ||
2432 | $ echo 0x1 > /proc/1234/coredump_filter | 2437 | $ echo 0x21 > /proc/1234/coredump_filter |
2433 | 2438 | ||
2434 | When a new process is created, the process inherits the bitmask status from its | 2439 | When a new process is created, the process inherits the bitmask status from its |
2435 | parent. It is useful to set up coredump_filter before the program runs. | 2440 | parent. It is useful to set up coredump_filter before the program runs. |