1 # 2 # Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved. 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 # 5 # This code is free software; you can redistribute it and/or modify it 6 # under the terms of the GNU General Public License version 2 only, as 7 # published by the Free Software Foundation. 8 # 9 # This code is distributed in the hope that it will be useful, but WITHOUT 10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 # version 2 for more details (a copy is included in the LICENSE file that 13 # accompanied this code). 14 # 15 # You should have received a copy of the GNU General Public License version 16 # 2 along with this work; if not, write to the Free Software Foundation, 17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 # 19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 # or visit www.oracle.com if you need additional information or have any 21 # questions. 22 # 23 24 config.execSuffix= 25 config.getChildren.pattern=%p 26 config.getChildren.app=pgrep 27 config.getChildren.args=-P %p 28 ################################################################################ 29 # process info to gather 30 ################################################################################ 31 onTimeout=\ 32 native.DevToolsSecurity \ 33 native.vmmap native.heap native.leaks native.spindump \ 34 native.stack native.core 35 ################################################################################ 36 native.pattern=%p 37 native.javaOnly=false 38 native.args=%p 39 40 native.DevToolsSecurity.app=DevToolsSecurity 41 native.DevToolsSecurity.args=--status 42 43 # spindump requires root privileges 44 native.spindump.app=spindump 45 native.spindump.args=%p -stdout 46 47 native.vmmap.app=bash 48 native.vmmap.delimiter=\0 49 native.vmmap.args=-c\0DevToolsSecurity --status | grep -q enabled && vmmap %p 50 51 native.leaks.app=bash 52 native.leaks.delimiter=\0 53 native.leaks.args=-c\0DevToolsSecurity --status | grep -q enabled && leaks %p 54 55 native.heap.app=bash 56 native.heap.delimiter=\0 57 native.heap.args=-c\0DevToolsSecurity --status | grep -q enabled && heap %p 58 59 native.stack.app=bash 60 native.stack.delimiter=\0 61 native.stack.params.repeat=6 62 native.stack.args=-c\0DevToolsSecurity --status | grep -q enabled && lldb -o 'attach %p' -o 'thread backtrace all' -o 'detach' -o 'quit' 63 64 # has to be the last command 65 native.core.app=kill 66 native.core.args=-ABRT %p 67 ################################################################################ 68 # environment info to gather 69 ################################################################################ 70 environment=\ 71 users.current users.logged users.last \ 72 disk \ 73 env \ 74 system.dmesg system.sysctl \ 75 process.ps process.top \ 76 memory.vmstat \ 77 files \ 78 net.netstat.av net.netstat.aL net.netstat.m net.netstat.s net.ifconfig \ 79 scutil.nwi scutil.proxy \ 80 screenshot 81 ################################################################################ 82 users.current.app=id 83 users.current.args=-a 84 users.logged.app=who 85 users.logged.args=-a 86 users.last.app=last 87 users.last.args=-10 88 89 disk.app=df 90 disk.args=-h 91 92 env.app=env 93 94 system.dmesg.app=dmesg 95 system.sysctl.app=sysctl 96 system.sysctl.args=-a 97 98 process.ps.app=ps 99 process.ps.args=-Meo pid,pcpu,cputime,start,pmem,vsz,rss,state,wchan,user,args 100 process.top.app=top 101 process.top.args=-l 1 102 103 memory.vmstat.app=vm_stat 104 memory.vmstat.args=-c 3 3 105 106 files.app=lsof 107 108 net.netstat.app=netstat 109 net.netstat.av.args=-av 110 net.netstat.aL.args=-aL 111 net.netstat.m.args=-m 112 net.netstat.s.args=-s 113 net.ifconfig.app=ifconfig 114 net.ifconfig.args=-a 115 116 scutil.app=scutil 117 scutil.nwi.args=--nwi 118 scutil.proxy.args=--proxy 119 120 screenshot.app=screencapture 121 screenshot.args=-x screen1.png screen2.png screen3.png screen4.png screen5.png 122 ################################################################################