Hallo, dies ist ein Test.
PWD: /www/data-lst1/unixsoft/unixsoft/kaempfer/.public_html
Running in File Mode
Relative path: ./../../../../../data-stud/../../usr/demo/dtrace/sctpstate.d
Real path: /usr/demo/dtrace/sctpstate.d
Zurück
#!/usr/sbin/dtrace -s /* * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. * * This D script is used as an example in the Oracle Solaris 11.4 * Dynamic Tracing Guide in the "sctp Provider" Chapter. * * On machines that have DTrace installed, this script is available as * sctpstate.d in /usr/demo/dtrace, a directory that contains all D scripts * used in the Solaris Dynamic Tracing Guide. A table of the scripts and their * corresponding chapters may be found here: * * file:///usr/demo/dtrace/index.html */ #pragma D option quiet dtrace:::BEGIN { printf("%-10s %-10s %-20s %-20s\n", "C", "PID", "PREV", "NEW"); } sctp:::state-change { printf("%-10d %-10d %-20s -> %-20s\n", cpu, args[1]->cs_pid, sctp_state_string[args[5]->sctps_state], sctp_state_string[args[3]->sctps_state]); }