diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2019-05-14 23:08:51 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-05-14 23:08:51 -0400 |
| commit | 1064d857738187c764c0bd76040f424397f857c7 (patch) | |
| tree | 13d16c0aed50b64c20b8fe235b15172f3c997f15 /scripts/gdb/linux/proc.py | |
| parent | 35c99ffa20edd3c24be352d28a63cd3a23121282 (diff) | |
| parent | def0fdae813dbbbbb588bfc5f52856be2e842b35 (diff) | |
Merge branch 'akpm' (patches from Andrew)
Merge more updates from Andrew Morton:
- a couple of hotfixes
- almost all of the rest of MM
- lib/ updates
- binfmt_elf updates
- autofs updates
- quite a lot of misc fixes and updates
- reiserfs, fatfs
- signals
- exec
- cpumask
- rapidio
- sysctl
- pids
- eventfd
- gcov
- panic
- pps
- gdb script updates
- ipc updates
* emailed patches from Andrew Morton <akpm@linux-foundation.org>: (126 commits)
mm: memcontrol: fix NUMA round-robin reclaim at intermediate level
mm: memcontrol: fix recursive statistics correctness & scalabilty
mm: memcontrol: move stat/event counting functions out-of-line
mm: memcontrol: make cgroup stats and events query API explicitly local
drivers/virt/fsl_hypervisor.c: prevent integer overflow in ioctl
drivers/virt/fsl_hypervisor.c: dereferencing error pointers in ioctl
mm, memcg: rename ambiguously named memory.stat counters and functions
arch: remove <asm/sizes.h> and <asm-generic/sizes.h>
treewide: replace #include <asm/sizes.h> with #include <linux/sizes.h>
fs/block_dev.c: Remove duplicate header
fs/cachefiles/namei.c: remove duplicate header
include/linux/sched/signal.h: replace `tsk' with `task'
fs/coda/psdev.c: remove duplicate header
ipc: do cyclic id allocation for the ipc object.
ipc: conserve sequence numbers in ipcmni_extend mode
ipc: allow boot time extension of IPCMNI from 32k to 16M
ipc/mqueue: optimize msg_get()
ipc/mqueue: remove redundant wq task assignment
ipc: prevent lockup on alloc_msg and free_msg
scripts/gdb: print cached rate in lx-clk-summary
...
Diffstat (limited to 'scripts/gdb/linux/proc.py')
| -rw-r--r-- | scripts/gdb/linux/proc.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/scripts/gdb/linux/proc.py b/scripts/gdb/linux/proc.py index 2f01a958eb22..6a56bba233a9 100644 --- a/scripts/gdb/linux/proc.py +++ b/scripts/gdb/linux/proc.py | |||
| @@ -29,6 +29,7 @@ class LxCmdLine(gdb.Command): | |||
| 29 | def invoke(self, arg, from_tty): | 29 | def invoke(self, arg, from_tty): |
| 30 | gdb.write(gdb.parse_and_eval("saved_command_line").string() + "\n") | 30 | gdb.write(gdb.parse_and_eval("saved_command_line").string() + "\n") |
| 31 | 31 | ||
| 32 | |||
| 32 | LxCmdLine() | 33 | LxCmdLine() |
| 33 | 34 | ||
| 34 | 35 | ||
| @@ -43,6 +44,7 @@ class LxVersion(gdb.Command): | |||
| 43 | # linux_banner should contain a newline | 44 | # linux_banner should contain a newline |
| 44 | gdb.write(gdb.parse_and_eval("(char *)linux_banner").string()) | 45 | gdb.write(gdb.parse_and_eval("(char *)linux_banner").string()) |
| 45 | 46 | ||
| 47 | |||
| 46 | LxVersion() | 48 | LxVersion() |
| 47 | 49 | ||
| 48 | 50 | ||
| @@ -86,6 +88,7 @@ Equivalent to cat /proc/iomem on a running target""" | |||
| 86 | def invoke(self, arg, from_tty): | 88 | def invoke(self, arg, from_tty): |
| 87 | return show_lx_resources("iomem_resource") | 89 | return show_lx_resources("iomem_resource") |
| 88 | 90 | ||
| 91 | |||
| 89 | LxIOMem() | 92 | LxIOMem() |
| 90 | 93 | ||
| 91 | 94 | ||
| @@ -100,6 +103,7 @@ Equivalent to cat /proc/ioports on a running target""" | |||
| 100 | def invoke(self, arg, from_tty): | 103 | def invoke(self, arg, from_tty): |
| 101 | return show_lx_resources("ioport_resource") | 104 | return show_lx_resources("ioport_resource") |
| 102 | 105 | ||
| 106 | |||
| 103 | LxIOPorts() | 107 | LxIOPorts() |
| 104 | 108 | ||
| 105 | 109 | ||
| @@ -149,7 +153,7 @@ values of that process namespace""" | |||
| 149 | if len(argv) >= 1: | 153 | if len(argv) >= 1: |
| 150 | try: | 154 | try: |
| 151 | pid = int(argv[0]) | 155 | pid = int(argv[0]) |
| 152 | except: | 156 | except gdb.error: |
| 153 | raise gdb.GdbError("Provide a PID as integer value") | 157 | raise gdb.GdbError("Provide a PID as integer value") |
| 154 | else: | 158 | else: |
| 155 | pid = 1 | 159 | pid = 1 |
| @@ -195,6 +199,7 @@ values of that process namespace""" | |||
| 195 | info_opts(FS_INFO, s_flags), | 199 | info_opts(FS_INFO, s_flags), |
| 196 | info_opts(MNT_INFO, m_flags))) | 200 | info_opts(MNT_INFO, m_flags))) |
| 197 | 201 | ||
| 202 | |||
| 198 | LxMounts() | 203 | LxMounts() |
| 199 | 204 | ||
| 200 | 205 | ||
| @@ -259,7 +264,7 @@ class LxFdtDump(gdb.Command): | |||
| 259 | 264 | ||
| 260 | try: | 265 | try: |
| 261 | f = open(filename, 'wb') | 266 | f = open(filename, 'wb') |
| 262 | except: | 267 | except gdb.error: |
| 263 | raise gdb.GdbError("Could not open file to dump fdt") | 268 | raise gdb.GdbError("Could not open file to dump fdt") |
| 264 | 269 | ||
| 265 | f.write(fdt_buf) | 270 | f.write(fdt_buf) |
| @@ -267,4 +272,5 @@ class LxFdtDump(gdb.Command): | |||
| 267 | 272 | ||
| 268 | gdb.write("Dumped fdt blob to " + filename + "\n") | 273 | gdb.write("Dumped fdt blob to " + filename + "\n") |
| 269 | 274 | ||
| 275 | |||
| 270 | LxFdtDump() | 276 | LxFdtDump() |
