components/proftpd/dtrace/ftp_provider.d
branchs11u2-sru
changeset 4311 3a33895438c9
equal deleted inserted replaced
4294:427b52500a3a 4311:3a33895438c9
       
     1 /*
       
     2  * Copyright (c) 2009, 2015, Oracle and/or its affiliates. All rights reserved.
       
     3  */
       
     4 
       
     5 /*
       
     6  * We seem currently unable to depend properly on existing D libraries (like
       
     7  * ftp.d). But the definitions for conninfo_t and ftpinfo_t are stored there
       
     8  * (and have to be, since that's where the real translators live). So we're
       
     9  * forced to define something here to satisfy dtrace(1M), but none of the
       
    10  * definitions or translators here are actually used.
       
    11  */
       
    12 typedef struct ftpinfo {
       
    13 	int dummy;
       
    14 } ftpinfo_t;
       
    15 
       
    16 typedef struct ftpproto {
       
    17 	int dummy;
       
    18 } ftpproto_t;
       
    19 
       
    20 typedef struct conninfo {
       
    21 	int dummy;
       
    22 } conninfo_t;
       
    23 
       
    24 translator conninfo_t <ftpproto_t *dp> {
       
    25 	dummy = 0;
       
    26 };
       
    27 
       
    28 translator ftpinfo_t <ftpproto_t *dp> {
       
    29 	dummy = 0;
       
    30 };
       
    31 
       
    32 provider ftp {
       
    33 	probe transfer__start(ftpproto_t *p) :
       
    34 	    (conninfo_t *p, ftpinfo_t *p);
       
    35 	probe transfer__done(ftpproto_t *p) :
       
    36 	    (conninfo_t *p, ftpinfo_t *p);
       
    37 };
       
    38 
       
    39 #pragma D attributes Evolving/Evolving/ISA provider ftp provider
       
    40 #pragma D attributes Private/Private/Unknown provider ftp module
       
    41 #pragma D attributes Private/Private/Unknown provider ftp function
       
    42 #pragma D attributes Private/Private/ISA provider ftp name
       
    43 #pragma D attributes Evolving/Evolving/ISA provider ftp args