11cb0ef41Sopenharmony_ci// Copyright Joyent, Inc. and other Node contributors.
21cb0ef41Sopenharmony_ci//
31cb0ef41Sopenharmony_ci// Permission is hereby granted, free of charge, to any person obtaining a
41cb0ef41Sopenharmony_ci// copy of this software and associated documentation files (the
51cb0ef41Sopenharmony_ci// "Software"), to deal in the Software without restriction, including
61cb0ef41Sopenharmony_ci// without limitation the rights to use, copy, modify, merge, publish,
71cb0ef41Sopenharmony_ci// distribute, sublicense, and/or sell copies of the Software, and to permit
81cb0ef41Sopenharmony_ci// persons to whom the Software is furnished to do so, subject to the
91cb0ef41Sopenharmony_ci// following conditions:
101cb0ef41Sopenharmony_ci//
111cb0ef41Sopenharmony_ci// The above copyright notice and this permission notice shall be included
121cb0ef41Sopenharmony_ci// in all copies or substantial portions of the Software.
131cb0ef41Sopenharmony_ci//
141cb0ef41Sopenharmony_ci// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
151cb0ef41Sopenharmony_ci// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
161cb0ef41Sopenharmony_ci// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
171cb0ef41Sopenharmony_ci// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
181cb0ef41Sopenharmony_ci// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
191cb0ef41Sopenharmony_ci// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
201cb0ef41Sopenharmony_ci// USE OR OTHER DEALINGS IN THE SOFTWARE.
211cb0ef41Sopenharmony_ci
221cb0ef41Sopenharmony_ciprobe node_net_server_connection = process("node").mark("net__server__connection")
231cb0ef41Sopenharmony_ci{
241cb0ef41Sopenharmony_ci  remote = user_string($arg2);
251cb0ef41Sopenharmony_ci  port = $arg3;
261cb0ef41Sopenharmony_ci  fd = $arg4;
271cb0ef41Sopenharmony_ci
281cb0ef41Sopenharmony_ci  probestr = sprintf("%s(remote=%s, port=%d, fd=%d)",
291cb0ef41Sopenharmony_ci    $$name,
301cb0ef41Sopenharmony_ci    remote,
311cb0ef41Sopenharmony_ci    port,
321cb0ef41Sopenharmony_ci    fd);
331cb0ef41Sopenharmony_ci}
341cb0ef41Sopenharmony_ci
351cb0ef41Sopenharmony_ciprobe node_net_stream_end = process("node").mark("net__stream__end")
361cb0ef41Sopenharmony_ci{
371cb0ef41Sopenharmony_ci  remote = user_string($arg2);
381cb0ef41Sopenharmony_ci  port = $arg3;
391cb0ef41Sopenharmony_ci  fd = $arg4;
401cb0ef41Sopenharmony_ci
411cb0ef41Sopenharmony_ci  probestr = sprintf("%s(remote=%s, port=%d, fd=%d)",
421cb0ef41Sopenharmony_ci    $$name,
431cb0ef41Sopenharmony_ci    remote,
441cb0ef41Sopenharmony_ci    port,
451cb0ef41Sopenharmony_ci    fd);
461cb0ef41Sopenharmony_ci}
471cb0ef41Sopenharmony_ci
481cb0ef41Sopenharmony_ciprobe node_http_server_request = process("node").mark("http__server__request")
491cb0ef41Sopenharmony_ci{
501cb0ef41Sopenharmony_ci  remote = user_string($arg3);
511cb0ef41Sopenharmony_ci  port = $arg4;
521cb0ef41Sopenharmony_ci  method = user_string($arg5);
531cb0ef41Sopenharmony_ci  url = user_string($arg6);
541cb0ef41Sopenharmony_ci  fd = $arg7;
551cb0ef41Sopenharmony_ci
561cb0ef41Sopenharmony_ci  probestr = sprintf("%s(remote=%s, port=%d, method=%s, url=%s, fd=%d)",
571cb0ef41Sopenharmony_ci    $$name,
581cb0ef41Sopenharmony_ci    remote,
591cb0ef41Sopenharmony_ci    port,
601cb0ef41Sopenharmony_ci    method,
611cb0ef41Sopenharmony_ci    url,
621cb0ef41Sopenharmony_ci    fd);
631cb0ef41Sopenharmony_ci}
641cb0ef41Sopenharmony_ci
651cb0ef41Sopenharmony_ciprobe node_http_server_response = process("node").mark("http__server__response")
661cb0ef41Sopenharmony_ci{
671cb0ef41Sopenharmony_ci  remote = user_string($arg2);
681cb0ef41Sopenharmony_ci  port = $arg3;
691cb0ef41Sopenharmony_ci  fd = $arg4;
701cb0ef41Sopenharmony_ci
711cb0ef41Sopenharmony_ci  probestr = sprintf("%s(remote=%s, port=%d, fd=%d)",
721cb0ef41Sopenharmony_ci    $$name,
731cb0ef41Sopenharmony_ci    remote,
741cb0ef41Sopenharmony_ci    port,
751cb0ef41Sopenharmony_ci    fd);
761cb0ef41Sopenharmony_ci}
771cb0ef41Sopenharmony_ci
781cb0ef41Sopenharmony_ciprobe node_http_client_request = process("node").mark("http__client__request")
791cb0ef41Sopenharmony_ci{
801cb0ef41Sopenharmony_ci  remote = user_string($arg3);
811cb0ef41Sopenharmony_ci  port = $arg4;
821cb0ef41Sopenharmony_ci  method = user_string($arg5);
831cb0ef41Sopenharmony_ci  url = user_string($arg6);
841cb0ef41Sopenharmony_ci  fd = $arg7;
851cb0ef41Sopenharmony_ci
861cb0ef41Sopenharmony_ci  probestr = sprintf("%s(remote=%s, port=%d, method=%s, url=%s, fd=%d)",
871cb0ef41Sopenharmony_ci    $$name,
881cb0ef41Sopenharmony_ci    remote,
891cb0ef41Sopenharmony_ci    port,
901cb0ef41Sopenharmony_ci    method,
911cb0ef41Sopenharmony_ci    url,
921cb0ef41Sopenharmony_ci    fd);
931cb0ef41Sopenharmony_ci}
941cb0ef41Sopenharmony_ci
951cb0ef41Sopenharmony_ciprobe node_http_client_response = process("node").mark("http__client__response")
961cb0ef41Sopenharmony_ci{
971cb0ef41Sopenharmony_ci  remote = user_string($arg2);
981cb0ef41Sopenharmony_ci  port = $arg3;
991cb0ef41Sopenharmony_ci  fd = $arg4;
1001cb0ef41Sopenharmony_ci
1011cb0ef41Sopenharmony_ci  probestr = sprintf("%s(remote=%s, port=%d, fd=%d)",
1021cb0ef41Sopenharmony_ci    $$name,
1031cb0ef41Sopenharmony_ci    remote,
1041cb0ef41Sopenharmony_ci    port,
1051cb0ef41Sopenharmony_ci    fd);
1061cb0ef41Sopenharmony_ci}
1071cb0ef41Sopenharmony_ci
1081cb0ef41Sopenharmony_ciprobe node_gc_start = process("node").mark("gc__start")
1091cb0ef41Sopenharmony_ci{
1101cb0ef41Sopenharmony_ci  scavenge = 1 << 0;
1111cb0ef41Sopenharmony_ci  compact = 1 << 1;
1121cb0ef41Sopenharmony_ci
1131cb0ef41Sopenharmony_ci  if ($arg1 == scavenge)
1141cb0ef41Sopenharmony_ci    type = "kGCTypeScavenge";
1151cb0ef41Sopenharmony_ci  else if ($arg1 == compact)
1161cb0ef41Sopenharmony_ci    type = "kGCTypeMarkSweepCompact";
1171cb0ef41Sopenharmony_ci  else
1181cb0ef41Sopenharmony_ci    type = "kGCTypeAll";
1191cb0ef41Sopenharmony_ci
1201cb0ef41Sopenharmony_ci  flags = $arg2;
1211cb0ef41Sopenharmony_ci
1221cb0ef41Sopenharmony_ci  probestr = sprintf("%s(type=%s,flags=%d)",
1231cb0ef41Sopenharmony_ci    $$name,
1241cb0ef41Sopenharmony_ci    type,
1251cb0ef41Sopenharmony_ci    flags);
1261cb0ef41Sopenharmony_ci}
1271cb0ef41Sopenharmony_ci
1281cb0ef41Sopenharmony_ciprobe node_gc_stop = process("node").mark("gc__done")
1291cb0ef41Sopenharmony_ci{
1301cb0ef41Sopenharmony_ci  scavenge = 1 << 0;
1311cb0ef41Sopenharmony_ci  compact = 1 << 1;
1321cb0ef41Sopenharmony_ci
1331cb0ef41Sopenharmony_ci  if ($arg1 == scavenge)
1341cb0ef41Sopenharmony_ci    type = "kGCTypeScavenge";
1351cb0ef41Sopenharmony_ci  else if ($arg1 == compact)
1361cb0ef41Sopenharmony_ci    type = "kGCTypeMarkSweepCompact";
1371cb0ef41Sopenharmony_ci  else
1381cb0ef41Sopenharmony_ci    type = "kGCTypeAll";
1391cb0ef41Sopenharmony_ci
1401cb0ef41Sopenharmony_ci  flags = $arg2;
1411cb0ef41Sopenharmony_ci
1421cb0ef41Sopenharmony_ci  probestr = sprintf("%s(type=%s,flags=%d)",
1431cb0ef41Sopenharmony_ci    $$name,
1441cb0ef41Sopenharmony_ci    type,
1451cb0ef41Sopenharmony_ci    flags);
1461cb0ef41Sopenharmony_ci}
147