Update to version 1.0

Submitted by:	gnn@
This commit is contained in:
Steven Kreuzer 2016-05-19 17:28:02 +00:00
parent e430a29bd0
commit e83920c238
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=415512
6 changed files with 13 additions and 75 deletions

View file

@ -1,11 +1,13 @@
# Created by: Steven Kreuzer <steven@exit2shell.com>
# $FreeBSD$
PORTNAME= DTraceToolkit
PORTVERSION= 0.99
PORTREVISION= 2
PORTNAME= dtrace-toolkit
PORTVERSION= 1.0
CATEGORIES= sysutils
MASTER_SITES= http://www.brendangregg.com/DTraceToolkit/
USE_GITHUB= yes
GH_ACCOUNT= opendtrace
GH_PROJECT= toolkit
GH_TAGNAME= f36d00b
MAINTAINER= skreuzer@FreeBSD.org
COMMENT= Collection of useful scripts for DTrace

View file

@ -1,2 +1,3 @@
SHA256 (DTraceToolkit-0.99.tar.gz) = f4f5df564b79103088731813cbc5c1bab0cb4dec98d2700b8583af190c695266
SIZE (DTraceToolkit-0.99.tar.gz) = 474697
TIMESTAMP = 1463628205
SHA256 (opendtrace-toolkit-1.0-f36d00b_GH0.tar.gz) = 28d2ab2c846792286e30eac8e052313d2f1b1335242be85cfa4b6f52b18165c8
SIZE (opendtrace-toolkit-1.0-f36d00b_GH0.tar.gz) = 438889

View file

@ -1,35 +0,0 @@
--- Apps/shellsnoop.orig 2014-06-04 09:00:10.000000000 -0400
+++ Apps/shellsnoop 2014-06-04 09:01:29.000000000 -0400
@@ -140,7 +140,7 @@
/*
* Remember this PID is a shell child
*/
- syscall::exec:entry, syscall::exece:entry
+ syscall::exec:entry
/execname == "sh" || execname == "ksh" || execname == "csh" ||
execname == "tcsh" || execname == "zsh" || execname == "bash"/
{
@@ -151,7 +151,7 @@
OPT_debug == 1 ? printf("PID %d CMD %s started. (%s)\n",
pid, execname, stringof(this->parent)) : 1;
}
- syscall::exec:entry, syscall::exece:entry
+ syscall::exec:entry
/(OPT_pid == 1 && PID != ppid) || (OPT_uid == 1 && UID != uid)/
{
/* forget if filtered */
@@ -256,12 +256,12 @@
/*
* Cleanup
*/
- syscall::rexit:entry
+ syscall::exit:entry
{
child[pid] = 0;
/* debug */
- this->parent = (char *)curthread->t_procp->p_parent->p_user.u_comm;
+ this->parent = (char *)curthread->td_proc->p_pptr->p_comm;
OPT_debug == 1 ? printf("PID %d CMD %s exited. (%s)\n",
pid, execname, stringof(this->parent)) : 1;
}

View file

@ -1,29 +0,0 @@
--- opensnoop.orig 2014-06-04 08:58:11.000000000 -0400
+++ opensnoop 2014-06-04 08:58:42.000000000 -0400
@@ -189,7 +189,7 @@
/*
* Print open event
*/
- syscall::open:entry, syscall::open64:entry
+ syscall::open:entry
{
/* save pathname */
self->pathp = arg0;
@@ -203,7 +203,7 @@
/* OPT_file is checked on return to ensure pathp is mapped */
}
- syscall::open:return, syscall::open64:return
+ syscall::open:return
/self->ok && (! OPT_failonly || (int)arg0 < 0) &&
((OPT_file == 0) || (OPT_file == 1 && PATHNAME == copyinstr(self->pathp)))/
{
@@ -235,7 +235,7 @@
/*
* Cleanup
*/
- syscall::open:return, syscall::open64:return
+ syscall::open:return
/self->ok/
{
self->pathp = 0;

View file

@ -1,4 +1,4 @@
The DTraceToolkit is a collection of useful documented scripts developed
by the OpenSolaris DTrace community.
by the DTrace community and maintained as part of Open DTrace.
WWW: http://www.brendangregg.com/dtracetoolkit.html
WWW: https://github.com/opendtrace/toolkit

View file

@ -579,7 +579,6 @@ bin/shellsnoop
%%DATADIR%%/Kernel/pridist.d
%%DATADIR%%/Kernel/putnexts.d
%%DATADIR%%/Kernel/whatexec.d
%%DATADIR%%/License
%%DATADIR%%/Locks/lockbydist.d
%%DATADIR%%/Locks/lockbyproc.d
%%DATADIR%%/Man/Readme
@ -930,7 +929,6 @@ bin/shellsnoop
%%DATADIR%%/Python/py_syscalls.d
%%DATADIR%%/Python/py_syscolors.d
%%DATADIR%%/Python/py_who.d
%%DATADIR%%/README
%%DATADIR%%/Ruby/Readme
%%DATADIR%%/Ruby/rb_calldist.d
%%DATADIR%%/Ruby/rb_calls.d
@ -1009,4 +1007,5 @@ bin/shellsnoop
%%DATADIR%%/rwsnoop
%%DATADIR%%/rwtop
%%DATADIR%%/statsnoop
@dir %%DATADIR%%/Code/C
%%DATADIR%%/CDDL
%%DATADIR%%/README.md