Commit Graph

158 Commits

Author SHA1 Message Date
Brendan Gregg
b4e8f3802c usage message improvement, and drop printing probe name unless debug mode 2015-06-27 17:21:50 -07:00
Brendan Gregg
5ea7fd3975 Merge pull request #26 from yangoliver/master
bitesize: work with different versions of awk and bash
2015-06-27 16:43:14 -07:00
Yong Yang
7431cc024f bitesize: work with different versions of awk and bash
This patch tries to fix following bitesize issues,

1. Error flooding messages when array index value is negative.
2. the smax in gawk was treated as string, that cause bug when
   perf return zero IO count.

Signed-off-by: Yong Yang <yangoliver@gmail.com>
2015-06-06 23:24:01 +08:00
Brendan Gregg
85414b0124 Merge pull request #20 from yangoliver/cmdline
Replace split by sub to get pid
2015-01-30 10:36:29 -08:00
Oliver Yang
cea905d417 Replace split by sub to get pid
Signed-off-by: Oliver Yang <yangoliver@gmail.com>
2015-01-29 01:12:48 -08:00
Brendan Gregg
522d0d9291 Merge pull request #19 from yangoliver/cmdline
awk scirpt can't work if process name contains space
2015-01-28 10:25:14 -08:00
Oliver Yang
c20539a1ad awk scirpt can't work if process name contains space
Signed-off-by: Oliver Yang <yangoliver@gmail.com>
2015-01-28 06:40:07 -08:00
Brendan Gregg
feeefeba7b Merge pull request #17 from yangoliver/killsnoop
killsnoop: can't work with mawk
2015-01-19 11:56:47 -08:00
Oliver Yang
a52538f823 killsnoop: can't work with mawk
On Ubuntu Linux release, mawk is used by default. This issue caused
killsnoop can't work on Ubuntu by default.

There are two issues,
    a. The strtonum is not supported by mawk.
       Try to use int to convert string to number.
       For gawk, int usage need the --non-decimal-data option.
       On very old RHEL release(2.6.18 kernel), the gawk can support
       this option.
    b. killsnoop still has no results due to mawk buffering porblems.
       Using -W interactive could solve this isue.
       The option is available on mawk 1.2, RHEL 4+ should support it.

Signed-off-by: Oliver Yang <yangoliver@gmail.com>
2015-01-17 02:24:34 -08:00
Brendan Gregg
27d206f9d4 Merge pull request #14 from g2p/master
execsnoop: Instrument sys_execve first
2015-01-05 13:54:30 +11:00
Brendan Gregg
41fe778cd3 cachestat for page cache statistics 2015-01-02 11:54:12 +09:30
Brendan Gregg
21ee61e151 typo 2014-12-20 14:01:14 +11:00
Brendan Gregg
0494f41433 formatting 2014-12-16 13:05:26 -08:00
Brendan Gregg
9c1615d11e warn about Linux 2.6.x kernels 2014-12-16 13:00:49 -08:00
Gabriel
50893c8b8f execsnoop: Instrument sys_execve first
On my kernel (3.16 amd64), stub_execve can't be instrumented, and
do_execve gets instrumented but fails silently (no events are caught).

Print which implementation is used.
Make sure do_execve is tried last due to silent failures.
2014-12-16 16:18:07 +01:00
Brendan Gregg
eda43a5179 another execsnoop example 2014-12-16 02:30:50 -08:00
Brendan Gregg
2dd02b6f36 skip control files (filter/enable) in tpoint -l 2014-11-14 22:41:16 -08:00
Brendan Gregg
5fb0a4a6e4 usage message typos 2014-11-14 22:34:04 -08:00
Brendan Gregg
2c05860ca6 Merge pull request #11 from pyKun/add_sys_execue
add sys_execve to inspect
2014-11-13 21:10:44 -08:00
Kun Huang
312ca53529 add sys_execve to inspect 2014-11-14 02:20:39 +08:00
Brendan Gregg
2eb08cf55c Merge pull request #10 from mpiehl/master
Fixed a couple minor documentation issues
2014-09-29 10:29:22 -07:00
mpiehl
e2d127db23 Fixed a couple minor documentation issues 2014-09-28 20:29:40 -05:00
Brendan Gregg
3d4c80998c edit 2014-09-20 00:44:38 -07:00
Brendan Gregg
2462d9570d edits 2014-09-20 00:41:54 -07:00
Brendan Gregg
1e96df2d68 fix link 2014-09-19 10:25:29 -07:00
Brendan Gregg
af07b68d27 style 2014-09-19 10:24:22 -07:00
Brendan Gregg
f627faf0e4 examples 2014-09-19 10:19:18 -07:00
Brendan Gregg
d0a875d8ba dont need history 2014-09-16 16:19:27 -07:00
Brendan Gregg
617d15b3d8 readme tweaks 2014-09-16 11:48:43 -07:00
Brendan Gregg
3c526a18f9 readme updates 2014-09-16 11:47:21 -07:00
Brendan Gregg
49e3a80758 examples file, man page, and minor changes 2014-09-16 11:12:35 -07:00
Brendan Gregg
e5164cd5d3 Merge pull request #8 from MegaMaddin/master
added killsnoop, another snooping tool for tracing kill()s via ftrace
2014-09-16 10:30:58 -07:00
MegaMaddin
723c5d4e2f added killsnoop, another snooping tool for tracing kill()s via ftrace 2014-09-13 15:22:17 +02:00
Brendan Gregg
83c84e78c9 improve error path, and minor adjustments. 2014-09-08 15:00:58 -07:00
Brendan Gregg
e5ef86c467 Merge pull request #7 from csfrancis/tcpretrans_tlp
Add support for TCP tail loss probes
2014-09-08 14:51:09 -07:00
Scott Francis
1c750e21b3 Add support for TCP tail loss probes 2014-09-07 18:52:56 +00:00
Brendan Gregg
14c01afb18 add stack traces 2014-09-06 23:31:34 -07:00
Brendan Gregg
3a912ac677 improve kprobe safety 2014-08-15 15:22:24 -07:00
Brendan Gregg
d3a2eddb56 better explain kprobe vs functrace 2014-08-04 17:42:27 -07:00
Brendan Gregg
64e299e7a1 more column adjustments 2014-08-03 10:31:52 -07:00
Brendan Gregg
a86cd5c162 Keep -t usage < 80 chars 2014-08-03 10:11:22 -07:00
Brendan Gregg
f1a0a886f9 free up -c for something else 2014-08-02 13:42:57 -07:00
Brendan Gregg
dc9d7c1ab9 Merge pull request #4 from scotte/master
Add debugfs as a prerequisite in README
2014-08-01 12:47:22 -07:00
Brendan Gregg
0010426e70 fix for #5: kprobe error when naming args 2014-08-01 12:26:51 -07:00
Scott Emmons
848e0460ca Add debugfs as a prerequisite in README 2014-08-01 12:06:41 -07:00
Brendan Gregg
820330678f explain column 2014-07-31 23:46:35 -07:00
Brendan Gregg
f3dee277df edit 2014-07-31 22:47:50 -07:00
Brendan Gregg
a576f7eb72 tcpretrans 2014-07-31 22:47:08 -07:00
Brendan Gregg
12be5c4288 edit 2014-07-31 22:40:25 -07:00
Brendan Gregg
edf2fd9801 learned this the hard way 2014-07-31 17:10:56 -07:00