Petr Machata | ae7c5e7 | 2012-09-24 16:16:27 +0200 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Copyright (C) 2012 Red Hat, Inc. |
| 3 | # This file is part of elfutils. |
| 4 | # |
| 5 | # This file is free software; you can redistribute it and/or modify |
| 6 | # it under the terms of the GNU General Public License as published by |
| 7 | # the Free Software Foundation; either version 3 of the License, or |
| 8 | # (at your option) any later version. |
| 9 | # |
| 10 | # elfutils is distributed in the hope that it will be useful, but |
| 11 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | # GNU General Public License for more details. |
| 14 | # |
| 15 | # You should have received a copy of the GNU General Public License |
| 16 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 17 | |
| 18 | . $srcdir/test-subr.sh |
| 19 | |
| 20 | testfiles testfile62 |
| 21 | |
Mark Wielaard | 86be792 | 2013-04-26 23:44:25 +0200 | [diff] [blame] | 22 | testrun_compare ${abs_top_builddir}/src/readelf -n testfile62 <<\EOF |
Petr Machata | ae7c5e7 | 2012-09-24 16:16:27 +0200 | [diff] [blame] | 23 | |
| 24 | Note segment of 2104 bytes at offset 0x158: |
| 25 | Owner Data size Type |
| 26 | CORE 336 PRSTATUS |
| 27 | info.si_signo: 0, info.si_code: 0, info.si_errno: 0, cursig: 0 |
| 28 | sigpend: <> |
| 29 | sighold: <> |
| 30 | pid: 3519, ppid: 0, pgrp: 0, sid: 0 |
| 31 | utime: 0.000000, stime: 0.000000, cutime: 0.000000, cstime: 0.000000 |
| 32 | orig_rax: -1, fpvalid: 0 |
| 33 | r15: 662 r14: 4 |
| 34 | r13: -2119649152 r12: 0 |
| 35 | rbp: 0xffff880067e39e48 rbx: 99 |
| 36 | r11: -131940469531936 r10: -2124150080 |
| 37 | r9: -131940469531936 r8: 0 |
| 38 | rax: 16 rcx: 7813 |
| 39 | rdx: 0 rsi: 0 |
| 40 | rdi: 99 rip: 0xffffffff812ba86f |
| 41 | rflags: 0x0000000000010096 rsp: 0xffff880067e39e48 |
| 42 | fs.base: 0x00007f95a7b09720 gs.base: 0x0000000000000000 |
| 43 | cs: 0x0010 ss: 0x0018 ds: 0x0000 es: 0x0000 fs: 0x0000 gs: 0x0000 |
| 44 | CORE 336 PRSTATUS |
| 45 | info.si_signo: 0, info.si_code: 0, info.si_errno: 0, cursig: 0 |
| 46 | sigpend: <> |
| 47 | sighold: <> |
| 48 | pid: 0, ppid: 0, pgrp: 0, sid: 0 |
| 49 | utime: 0.000000, stime: 0.000000, cutime: 0.000000, cstime: 0.000000 |
| 50 | orig_rax: -1, fpvalid: 0 |
| 51 | r15: 0 r14: 0 |
| 52 | r13: 1348173392195389970 r12: 1 |
| 53 | rbp: 0xffff88007a829e48 rbx: 16 |
| 54 | r11: -131940468065880 r10: 435505529489 |
| 55 | r9: 158960 r8: 0 |
| 56 | rax: 16 rcx: 1 |
| 57 | rdx: 0 rsi: 3 |
| 58 | rdi: -131939339960320 rip: 0xffffffff810118bb |
| 59 | rflags: 0x0000000000000046 rsp: 0xffff88007a829e38 |
| 60 | fs.base: 0x0000000000000000 gs.base: 0x0000000000000000 |
| 61 | cs: 0x0010 ss: 0x0018 ds: 0x0000 es: 0x0000 fs: 0x0000 gs: 0x0000 |
| 62 | VMCOREINFO 1366 <unknown>: 0 |
| 63 | OSRELEASE=2.6.35.11-83.fc14.x86_64 |
| 64 | PAGESIZE=4096 |
| 65 | SYMBOL(init_uts_ns)=ffffffff81a4c5b0 |
| 66 | SYMBOL(node_online_map)=ffffffff81b840b0 |
| 67 | SYMBOL(swapper_pg_dir)=ffffffff81a42000 |
| 68 | SYMBOL(_stext)=ffffffff81000190 |
| 69 | SYMBOL(vmlist)=ffffffff81db07e8 |
| 70 | SYMBOL(mem_section)=ffffffff81dbab00 |
| 71 | LENGTH(mem_section)=4096 |
| 72 | SIZE(mem_section)=32 |
| 73 | OFFSET(mem_section.section_mem_map)=0 |
| 74 | SIZE(page)=56 |
| 75 | SIZE(pglist_data)=81664 |
| 76 | SIZE(zone)=1792 |
| 77 | SIZE(free_area)=88 |
| 78 | SIZE(list_head)=16 |
| 79 | SIZE(nodemask_t)=64 |
| 80 | OFFSET(page.flags)=0 |
| 81 | OFFSET(page._count)=8 |
| 82 | OFFSET(page.mapping)=24 |
| 83 | OFFSET(page.lru)=40 |
| 84 | OFFSET(pglist_data.node_zones)=0 |
| 85 | OFFSET(pglist_data.nr_zones)=81472 |
| 86 | OFFSET(pglist_data.node_start_pfn)=81496 |
| 87 | OFFSET(pglist_data.node_spanned_pages)=81512 |
| 88 | OFFSET(pglist_data.node_id)=81520 |
| 89 | OFFSET(zone.free_area)=112 |
| 90 | OFFSET(zone.vm_stat)=1328 |
| 91 | OFFSET(zone.spanned_pages)=1704 |
| 92 | OFFSET(free_area.free_list)=0 |
| 93 | OFFSET(list_head.next)=0 |
| 94 | OFFSET(list_head.prev)=8 |
| 95 | OFFSET(vm_struct.addr)=8 |
| 96 | LENGTH(zone.free_area)=11 |
| 97 | SYMBOL(log_buf)=ffffffff81a532a8 |
| 98 | SYMBOL(log_end)=ffffffff81d0bc50 |
| 99 | SYMBOL(log_buf_len)=ffffffff81a532a4 |
| 100 | SYMBOL(logged_chars)=ffffffff81d0bd70 |
| 101 | LENGTH(free_area.free_list)=5 |
| 102 | NUMBER(NR_FREE_PAGES)=0 |
| 103 | NUMBER(PG_lru)=5 |
| 104 | NUMBER(PG_private)=11 |
| 105 | NUMBER(PG_swapcache)=16 |
| 106 | SYMBOL(phys_base)=ffffffff81a4a010 |
| 107 | SYMBOL(init_level4_pgt)=ffffffff81a42000 |
| 108 | SYMBOL(node_data)=ffffffff81b80df0 |
| 109 | LENGTH(node_data)=512 |
| 110 | CRASHTIME=1348173392 |
| 111 | |
| 112 | EOF |
| 113 | |
| 114 | exit 0 |