Skip to content

Commit

Permalink
test: Adjust test for drops to allow for 64k page size
Browse files Browse the repository at this point in the history
Signed-off-by: Eugene Loh <eugene.loh@oracle.com>
Reviewed-by: Kris Van Hees <kris.van.hees@oracle.com>
  • Loading branch information
euloh authored and kvanhees committed May 26, 2023
1 parent 10f8858 commit a55988e
Show file tree
Hide file tree
Showing 4 changed files with 214 additions and 18 deletions.
97 changes: 91 additions & 6 deletions test/unittest/drops/drp.DTRACEDROP_PRINCIPAL.d
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,105 @@
* Licensed under the Universal Permissive License v 1.0 as shown at
* http://oss.oracle.com/licenses/upl.
*/
/* @@nosort */

#pragma D option strsize=1k
#pragma D option bufsize=3k
#pragma D option strsize=2k
#pragma D option bufsize=64k

BEGIN
{
trace("Harding");
trace("Hoover");
trace("00");
trace("01");
}

BEGIN
{
trace("Nixon");
trace("Bush");
trace("02");
trace("03");
}

BEGIN
{
trace("04");
trace("05");
}

BEGIN
{
trace("06");
trace("07");
}

BEGIN
{
trace("08");
trace("09");
}

BEGIN
{
trace("10");
trace("11");
}

BEGIN
{
trace("12");
trace("13");
}

BEGIN
{
trace("14");
trace("15");
}

BEGIN
{
trace("16");
trace("17");
}

BEGIN
{
trace("18");
trace("19");
}

BEGIN
{
trace("20");
trace("21");
}

BEGIN
{
trace("22");
trace("23");
}

BEGIN
{
trace("24");
trace("25");
}

BEGIN
{
trace("26");
trace("27");
}

BEGIN
{
trace("28");
trace("29");
}

BEGIN
{
trace("30");
trace("31");
}

BEGIN
Expand Down
97 changes: 91 additions & 6 deletions test/unittest/drops/drp.DTRACEDROP_PRINCIPAL.end.d
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
* Licensed under the Universal Permissive License v 1.0 as shown at
* http://oss.oracle.com/licenses/upl.
*/
/* @@nosort */

#pragma D option strsize=1k
#pragma D option bufsize=3k
#pragma D option strsize=2k
#pragma D option bufsize=64k

BEGIN
{
Expand All @@ -15,12 +16,96 @@ BEGIN

END
{
trace("Harding");
trace("Hoover");
trace("00");
trace("01");
}

END
{
trace("Nixon");
trace("Bush");
trace("02");
trace("03");
}

END
{
trace("04");
trace("05");
}

END
{
trace("06");
trace("07");
}

END
{
trace("08");
trace("09");
}

END
{
trace("10");
trace("11");
}

END
{
trace("12");
trace("13");
}

END
{
trace("14");
trace("15");
}

END
{
trace("16");
trace("17");
}

END
{
trace("18");
trace("19");
}

END
{
trace("20");
trace("21");
}

END
{
trace("22");
trace("23");
}

END
{
trace("24");
trace("25");
}

END
{
trace("26");
trace("27");
}

END
{
trace("28");
trace("29");
}

END
{
trace("30");
trace("31");
}
19 changes: 16 additions & 3 deletions test/unittest/drops/drp.DTRACEDROP_PRINCIPAL.end.r
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
FUNCTION:NAME
:BEGIN
:END Harding Hoover
:END 00 01
:END 02 03
:END 04 05
:END 06 07
:END 08 09
:END 10 11
:END 12 13
:END 14 15
:END 16 17
:END 18 19
:END 20 21
:END 22 23
:END 24 25
:END 26 27
:END 28 29

-- @@stderr --
dtrace: script 'test/unittest/drops/drp.DTRACEDROP_PRINCIPAL.end.d' matched 3 probes
bufsize increased to 4096
dtrace: script 'test/unittest/drops/drp.DTRACEDROP_PRINCIPAL.end.d' matched 17 probes
dtrace: [DTRACEDROP_PRINCIPAL] 1 drop on CPU #
19 changes: 16 additions & 3 deletions test/unittest/drops/drp.DTRACEDROP_PRINCIPAL.r
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
FUNCTION:NAME
:BEGIN Harding Hoover
:BEGIN 00 01
:BEGIN 02 03
:BEGIN 04 05
:BEGIN 06 07
:BEGIN 08 09
:BEGIN 10 11
:BEGIN 12 13
:BEGIN 14 15
:BEGIN 16 17
:BEGIN 18 19
:BEGIN 20 21
:BEGIN 22 23
:BEGIN 24 25
:BEGIN 26 27
:BEGIN 28 29
:BEGIN

-- @@stderr --
dtrace: script 'test/unittest/drops/drp.DTRACEDROP_PRINCIPAL.d' matched 3 probes
bufsize increased to 4096
dtrace: script 'test/unittest/drops/drp.DTRACEDROP_PRINCIPAL.d' matched 17 probes
dtrace: [DTRACEDROP_PRINCIPAL] 1 drop on CPU #

0 comments on commit a55988e

Please sign in to comment.