diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-21 13:01:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-21 13:01:36 -0400 |
commit | 4b85df0419d1fb135d9d845876e8c7ee1393f83c (patch) | |
tree | 9630646aa3bca16e9266d79121b479f747d3677c /arch | |
parent | 6044ab324ce4c180bce17aa9be00157c611d7d48 (diff) | |
parent | be2864b5ee46e0d5ed626de6cbfeb9abbd9c2e6f (diff) |
Merge branch 'for-linus' of git://git390.osdl.marist.edu/pub/scm/linux-2.6
* 'for-linus' of git://git390.osdl.marist.edu/pub/scm/linux-2.6:
[S390] More verbose show_mem() like other architectures.
[S390] Make use of kretprobe_assert.
[S390] Wire up signald, timerfd and eventfd syscalls.
[S390] Wire up sys_utimensat.
[S390] cio: Update documentation.
Diffstat (limited to 'arch')
-rw-r--r-- | arch/s390/kernel/compat_wrapper.S | 28 | ||||
-rw-r--r-- | arch/s390/kernel/kprobes.c | 2 | ||||
-rw-r--r-- | arch/s390/kernel/syscalls.S | 5 | ||||
-rw-r--r-- | arch/s390/mm/init.c | 38 |
4 files changed, 57 insertions, 16 deletions
diff --git a/arch/s390/kernel/compat_wrapper.S b/arch/s390/kernel/compat_wrapper.S index 32a69a18a796..acc415457b45 100644 --- a/arch/s390/kernel/compat_wrapper.S +++ b/arch/s390/kernel/compat_wrapper.S | |||
@@ -1682,3 +1682,31 @@ compat_sys_utimes_wrapper: | |||
1682 | llgtr %r2,%r2 # char * | 1682 | llgtr %r2,%r2 # char * |
1683 | llgtr %r3,%r3 # struct compat_timeval * | 1683 | llgtr %r3,%r3 # struct compat_timeval * |
1684 | jg compat_sys_utimes | 1684 | jg compat_sys_utimes |
1685 | |||
1686 | .globl compat_sys_utimensat_wrapper | ||
1687 | compat_sys_utimensat_wrapper: | ||
1688 | llgfr %r2,%r2 # unsigned int | ||
1689 | llgtr %r3,%r3 # char * | ||
1690 | llgtr %r4,%r4 # struct compat_timespec * | ||
1691 | lgfr %r5,%r5 # int | ||
1692 | jg compat_sys_utimensat | ||
1693 | |||
1694 | .globl compat_sys_signalfd_wrapper | ||
1695 | compat_sys_signalfd_wrapper: | ||
1696 | lgfr %r2,%r2 # int | ||
1697 | llgtr %r3,%r3 # compat_sigset_t * | ||
1698 | llgfr %r4,%r4 # compat_size_t | ||
1699 | jg compat_sys_signalfd | ||
1700 | |||
1701 | .globl compat_sys_timerfd_wrapper | ||
1702 | compat_sys_timerfd_wrapper: | ||
1703 | lgfr %r2,%r2 # int | ||
1704 | lgfr %r3,%r3 # int | ||
1705 | lgfr %r4,%r4 # int | ||
1706 | llgtr %r5,%r5 # struct compat_itimerspec * | ||
1707 | jg compat_sys_timerfd | ||
1708 | |||
1709 | .globl sys_eventfd_wrapper | ||
1710 | sys_eventfd_wrapper: | ||
1711 | llgfr %r2,%r2 # unsigned int | ||
1712 | jg sys_eventfd | ||
diff --git a/arch/s390/kernel/kprobes.c b/arch/s390/kernel/kprobes.c index e39333ae0fcf..358d2bbbc481 100644 --- a/arch/s390/kernel/kprobes.c +++ b/arch/s390/kernel/kprobes.c | |||
@@ -413,7 +413,7 @@ static int __kprobes trampoline_probe_handler(struct kprobe *p, | |||
413 | break; | 413 | break; |
414 | } | 414 | } |
415 | } | 415 | } |
416 | BUG_ON(!orig_ret_address || (orig_ret_address == trampoline_address)); | 416 | kretprobe_assert(ri, orig_ret_address, trampoline_address); |
417 | regs->psw.addr = orig_ret_address | PSW_ADDR_AMODE; | 417 | regs->psw.addr = orig_ret_address | PSW_ADDR_AMODE; |
418 | 418 | ||
419 | reset_current_kprobe(); | 419 | reset_current_kprobe(); |
diff --git a/arch/s390/kernel/syscalls.S b/arch/s390/kernel/syscalls.S index cd8d321cd0c2..738feb4a0aad 100644 --- a/arch/s390/kernel/syscalls.S +++ b/arch/s390/kernel/syscalls.S | |||
@@ -322,3 +322,8 @@ NI_SYSCALL /* 310 sys_move_pages */ | |||
322 | SYSCALL(sys_getcpu,sys_getcpu,sys_getcpu_wrapper) | 322 | SYSCALL(sys_getcpu,sys_getcpu,sys_getcpu_wrapper) |
323 | SYSCALL(sys_epoll_pwait,sys_epoll_pwait,compat_sys_epoll_pwait_wrapper) | 323 | SYSCALL(sys_epoll_pwait,sys_epoll_pwait,compat_sys_epoll_pwait_wrapper) |
324 | SYSCALL(sys_utimes,sys_utimes,compat_sys_utimes_wrapper) | 324 | SYSCALL(sys_utimes,sys_utimes,compat_sys_utimes_wrapper) |
325 | NI_SYSCALL /* 314 sys_fallocate */ | ||
326 | SYSCALL(sys_utimensat,sys_utimensat,compat_sys_utimensat_wrapper) /* 315 */ | ||
327 | SYSCALL(sys_signalfd,sys_signalfd,compat_sys_signalfd_wrapper) | ||
328 | SYSCALL(sys_timerfd,sys_timerfd,compat_sys_timerfd_wrapper) | ||
329 | SYSCALL(sys_eventfd,sys_eventfd,sys_eventfd_wrapper) | ||
diff --git a/arch/s390/mm/init.c b/arch/s390/mm/init.c index 916b72a8cde8..9098531a2671 100644 --- a/arch/s390/mm/init.c +++ b/arch/s390/mm/init.c | |||
@@ -61,30 +61,38 @@ void diag10(unsigned long addr) | |||
61 | 61 | ||
62 | void show_mem(void) | 62 | void show_mem(void) |
63 | { | 63 | { |
64 | int i, total = 0, reserved = 0; | 64 | int i, total = 0, reserved = 0; |
65 | int shared = 0, cached = 0; | 65 | int shared = 0, cached = 0; |
66 | struct page *page; | 66 | struct page *page; |
67 | 67 | ||
68 | printk("Mem-info:\n"); | 68 | printk("Mem-info:\n"); |
69 | show_free_areas(); | 69 | show_free_areas(); |
70 | printk("Free swap: %6ldkB\n", nr_swap_pages<<(PAGE_SHIFT-10)); | 70 | printk("Free swap: %6ldkB\n", nr_swap_pages << (PAGE_SHIFT - 10)); |
71 | i = max_mapnr; | 71 | i = max_mapnr; |
72 | while (i-- > 0) { | 72 | while (i-- > 0) { |
73 | if (!pfn_valid(i)) | 73 | if (!pfn_valid(i)) |
74 | continue; | 74 | continue; |
75 | page = pfn_to_page(i); | 75 | page = pfn_to_page(i); |
76 | total++; | 76 | total++; |
77 | if (PageReserved(page)) | 77 | if (PageReserved(page)) |
78 | reserved++; | 78 | reserved++; |
79 | else if (PageSwapCache(page)) | 79 | else if (PageSwapCache(page)) |
80 | cached++; | 80 | cached++; |
81 | else if (page_count(page)) | 81 | else if (page_count(page)) |
82 | shared += page_count(page) - 1; | 82 | shared += page_count(page) - 1; |
83 | } | 83 | } |
84 | printk("%d pages of RAM\n",total); | 84 | printk("%d pages of RAM\n", total); |
85 | printk("%d reserved pages\n",reserved); | 85 | printk("%d reserved pages\n", reserved); |
86 | printk("%d pages shared\n",shared); | 86 | printk("%d pages shared\n", shared); |
87 | printk("%d pages swap cached\n",cached); | 87 | printk("%d pages swap cached\n", cached); |
88 | |||
89 | printk("%lu pages dirty\n", global_page_state(NR_FILE_DIRTY)); | ||
90 | printk("%lu pages writeback\n", global_page_state(NR_WRITEBACK)); | ||
91 | printk("%lu pages mapped\n", global_page_state(NR_FILE_MAPPED)); | ||
92 | printk("%lu pages slab\n", | ||
93 | global_page_state(NR_SLAB_RECLAIMABLE) + | ||
94 | global_page_state(NR_SLAB_UNRECLAIMABLE)); | ||
95 | printk("%lu pages pagetables\n", global_page_state(NR_PAGETABLE)); | ||
88 | } | 96 | } |
89 | 97 | ||
90 | static void __init setup_ro_region(void) | 98 | static void __init setup_ro_region(void) |