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