/usr/share/systemtap/tapset/argv.stp is in systemtap-common 2.9-2ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | // argument vector tapset
// Copyright (C) 2008-2014 Red Hat Inc.
//
// This file is part of systemtap, and is free software. You can
// redistribute it and/or modify it under the terms of the GNU General
// Public License (GPL); either version 2, or (at your option) any
// later version.
global argc = $#
global argv[32]
// individual argv[N] slots may be overridden at run time:
// stap FOO.stp -G argc=2 -G argv_1="hello" -G argv_2="world"
global argv_1 = %( $# >= 1 %? @1 %: "" %)
global argv_2 = %( $# >= 2 %? @2 %: "" %)
global argv_3 = %( $# >= 3 %? @3 %: "" %)
global argv_4 = %( $# >= 4 %? @4 %: "" %)
global argv_5 = %( $# >= 5 %? @5 %: "" %)
global argv_6 = %( $# >= 6 %? @6 %: "" %)
global argv_7 = %( $# >= 7 %? @7 %: "" %)
global argv_8 = %( $# >= 8 %? @8 %: "" %)
global argv_9 = %( $# >= 9 %? @9 %: "" %)
global argv_10 = %( $# >= 10 %? @10 %: "" %)
global argv_11 = %( $# >= 11 %? @11 %: "" %)
global argv_12 = %( $# >= 12 %? @12 %: "" %)
global argv_13 = %( $# >= 13 %? @13 %: "" %)
global argv_14 = %( $# >= 14 %? @14 %: "" %)
global argv_15 = %( $# >= 15 %? @15 %: "" %)
global argv_16 = %( $# >= 16 %? @16 %: "" %)
global argv_17 = %( $# >= 17 %? @17 %: "" %)
global argv_18 = %( $# >= 18 %? @18 %: "" %)
global argv_19 = %( $# >= 19 %? @19 %: "" %)
global argv_20 = %( $# >= 20 %? @20 %: "" %)
global argv_21 = %( $# >= 21 %? @21 %: "" %)
global argv_22 = %( $# >= 22 %? @22 %: "" %)
global argv_23 = %( $# >= 23 %? @23 %: "" %)
global argv_24 = %( $# >= 24 %? @24 %: "" %)
global argv_25 = %( $# >= 25 %? @25 %: "" %)
global argv_26 = %( $# >= 26 %? @26 %: "" %)
global argv_27 = %( $# >= 27 %? @27 %: "" %)
global argv_28 = %( $# >= 28 %? @28 %: "" %)
global argv_29 = %( $# >= 29 %? @29 %: "" %)
global argv_30 = %( $# >= 30 %? @30 %: "" %)
global argv_31 = %( $# >= 31 %? @31 %: "" %)
global argv_32 = %( $# >= 32 %? @32 %: "" %)
probe init {
argv[1] = argv_1
argv[2] = argv_2
argv[3] = argv_3
argv[4] = argv_4
argv[5] = argv_5
argv[6] = argv_6
argv[7] = argv_7
argv[8] = argv_8
argv[9] = argv_9
argv[10] = argv_10
argv[11] = argv_11
argv[12] = argv_12
argv[13] = argv_13
argv[14] = argv_14
argv[15] = argv_15
argv[16] = argv_16
argv[17] = argv_17
argv[18] = argv_18
argv[19] = argv_19
argv[20] = argv_20
argv[21] = argv_21
argv[22] = argv_22
argv[23] = argv_23
argv[24] = argv_24
argv[25] = argv_25
argv[26] = argv_26
argv[27] = argv_27
argv[28] = argv_28
argv[29] = argv_29
argv[30] = argv_30
argv[31] = argv_31
argv[32] = argv_32
%( $# >= 33 %? warn("argv is limited to 32 arguments") %)
}
|