Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Aug 2015 23:23:08 +0100
From:      Gary Palmer <gpalmer@freebsd.org>
To:        Chris Stankevitz <chris@stankevitz.com>
Cc:        John-Mark Gurney <jmg@funkthat.com>, freebsd-net@freebsd.org
Subject:   Re: ssh over WAN: TCP window too small
Message-ID:  <20150826222308.GH13503@in-addr.com>
In-Reply-To: <55DE2FDF.5030707@stankevitz.com>
References:  <55DCF080.7080208@stankevitz.com> <20150826010323.GN33167@funkthat.com> <55DD2A98.2010605@stankevitz.com> <20150826082457.GQ33167@funkthat.com> <55DE2FDF.5030707@stankevitz.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Aug 26, 2015 at 02:30:07PM -0700, Chris Stankevitz wrote:
> > ktrace -i ssh <params>...
> 
> Thank you, this is awesome.  Is there a way for me to ktrace 'b' in this 
> example: `a | b | c`?  I tried `ktrace a | b | c` and `ktrace test.sh` 
> (which included a|b|c) but neither seemed to work.  I'm using stream 
> redirection now but it doesn't afford me the bs control of dd.  Perhaps 
> named pipes is the solution.


a | ktrace b | c

or

ktrace -di test.sh

(I suspect only -i is needed, but I've gotten so used to using both flags)

You can also start ktrace on an existing process if you know its PID

ktrace -p <pid>

To stop all ongoing tracing:

ktrace -C 

Regards,

Gary




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150826222308.GH13503>