components/openssh/dtrace_sftp/sftp_provider.d
branchs11u3-sru
changeset 7621 c11a68c3a63d
parent 7619 4e1d20a92c16
equal deleted inserted replaced
7620:c60efbddf9c8 7621:c11a68c3a63d
       
     1 /*
       
     2  * CDDL HEADER START
       
     3  *
       
     4  * The contents of this file are subject to the terms of the
       
     5  * Common Development and Distribution License (the "License").
       
     6  * You may not use this file except in compliance with the License.
       
     7  *
       
     8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
       
     9  * or http://www.opensolaris.org/os/licensing.
       
    10  * See the License for the specific language governing permissions
       
    11  * and limitations under the License.
       
    12  *
       
    13  * When distributing Covered Code, include this CDDL HEADER in each
       
    14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
       
    15  * If applicable, add the following below this CDDL HEADER, with the
       
    16  * fields enclosed by brackets "[]" replaced with your own identifying
       
    17  * information: Portions Copyright [yyyy] [name of copyright owner]
       
    18  *
       
    19  * CDDL HEADER END
       
    20  */
       
    21 /*
       
    22  * Copyright (c) 2009, 2017, Oracle and/or its affiliates. All rights reserved.
       
    23  */
       
    24 
       
    25 /*
       
    26  * We seem currently unable to depend properly on existing D libraries (like
       
    27  * sftp.d). But the definitions for conninfo_t and sftpinfo_t are stored there
       
    28  * (and have to be, since that's where the real translators live). So we're
       
    29  * forced to define something here to satisfy dtrace(1M), but none of the
       
    30  * definitions or translators here are actually used.
       
    31  */
       
    32 typedef struct sftpinfo {
       
    33 	int dummy;
       
    34 } sftpinfo_t;
       
    35 
       
    36 typedef struct sftpproto {
       
    37 	int dummy;
       
    38 } sftpproto_t;
       
    39 
       
    40 typedef struct conninfo {
       
    41 	int dummy;
       
    42 } conninfo_t;
       
    43 
       
    44 translator conninfo_t <sftpproto_t *dp> {
       
    45 };
       
    46 
       
    47 translator sftpinfo_t <sftpproto_t *dp> {
       
    48 };
       
    49 
       
    50 provider sftp {
       
    51 	probe transfer__start(sftpproto_t *p) :
       
    52 	    (conninfo_t *p, sftpinfo_t *p);
       
    53 	probe transfer__done(sftpproto_t *p) :
       
    54 	    (conninfo_t *p, sftpinfo_t *p);
       
    55 };
       
    56 
       
    57 #pragma D attributes Evolving/Evolving/ISA provider sftp provider
       
    58 #pragma D attributes Private/Private/Unknown provider sftp module
       
    59 #pragma D attributes Private/Private/Unknown provider sftp function
       
    60 #pragma D attributes Private/Private/ISA provider sftp name
       
    61 #pragma D attributes Evolving/Evolving/ISA provider sftp args