]> sourceware.org Git - systemtap.git/commit
PR22005: Fix @min() and @max() extractor functions.
authorMartin Cermak <mcermak@redhat.com>
Mon, 28 Aug 2017 11:01:40 +0000 (13:01 +0200)
committerMartin Cermak <mcermak@redhat.com>
Mon, 28 Aug 2017 11:01:40 +0000 (13:01 +0200)
commitc8c24917452665d3ea42019f8700c9164bf3091a
tree6e02eb6c2e1a4f6b1ed0d0f9d42ecfd189e6920e
parent41182a6af12743cb6f46e962bfd12e632bd2df46
PR22005: Fix @min() and @max() extractor functions.

Commit 26382d613f4d26 introduced a regression in @min()
and @max() extractor functions.  Example:

$ stap -e 'global n probe oneshot {n<<<12 n<<<34 println(@max(n))}'
12
$

This commit fixes the regression and adds a testcase.
runtime/stat-common.c
testsuite/systemtap.base/pr22005.exp [new file with mode: 0644]
This page took 0.903466 seconds and 5 git commands to generate.