1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
|
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# Copyright 2020 Peter Tribble
#
include $(SRC)/lib/Makefile.lib
SUBDIRS = $(MACH64)
all : TARGET = all
clean : TARGET = clean
clobber : TARGET = clobber
install : TARGET = install
all install: $(SUBDIRS)
clean clobber: $(SUBDIRS)
$(SUBDIRS): FRC
@cd $@; pwd; $(MAKE) $(TARGET)
FRC:
include $(SRC)/lib/Makefile.targ
include $(SRC)/Makefile.msg.targ
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# Copyright (c) 2018, Joyent, Inc.
LIBRARY = libjkstat.a
VERS = .1
OBJECTS = jkstat.o
include $(SRC)/lib/Makefile.lib
INCS = -I$(JAVA_ROOT)/include \
-I$(JAVA_ROOT)/include/solaris
LIBS = $(DYNLIB)
LDLIBS += -lkstat
ROOTLIBDIR = $(ROOT)/usr/lib/pool
CFLAGS += $(CCVERBOSE)
CPPFLAGS += -D_REENTRANT -D_FILE_OFFSET_BITS=64 $(INCS)
# not linted
SMATCH=off
all: $(LIBS)
lint: lintcheck
include $(SRC)/lib/Makefile.targ
#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"), version 1.0.
# You may only use this file in accordance with the terms of version
# 1.0 of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source. A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.
#
#
# Copyright 2017 Alexander Pyhalov
#
include ../Makefile.com
include $(SRC)/Makefile.master.64
install: all $(ROOTLIBS) $(ROOTLINKS)
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#include <stddef.h>
#include <kstat.h>
#include "jkstat.h"
/*
* Class descriptors
*/
#define DOUBLE_CLASS_DESC "java/lang/Double"
#define LONG_CLASS_DESC "java/lang/Long"
#define UI64_CLASS_DESC "com/sun/solaris/service/pools/UnsignedInt64"
#define HRTIME_CLASS_DESC "com/sun/solaris/service/pools/HRTime"
#define KSTAT_CLASS_DESC "com/sun/solaris/service/kstat/Kstat"
#define KSTATCTL_CLASS_DESC "com/sun/solaris/service/kstat/KstatCtl"
#define KSTAT_READ_EX_CLASS_DESC \
"com/sun/solaris/service/kstat/KstatReadException"
#define KSTAT_TNS_EX_CLASS_DESC \
"com/sun/solaris/service/kstat/KstatTypeNotSupportedException"
#define THROWABLE_CLASS_DESC "java/lang/Throwable"
#define CLASS_FIELD_DESC(class_desc) "L" class_desc ";"
/*
* Cached class, method, and field IDs.
*/
static jclass doubleclass;
static jclass hrtimeclass;
static jclass kstatclass;
static jclass kstatctlclass;
static jclass longclass;
static jclass ui64class;
static jfieldID kstat_kctl_fieldid;
static jfieldID kstat_ksp_fieldid;
static jfieldID kstatctl_kctl_fieldid;
static jmethodID doublecons_mid;
static jmethodID hrtimecons_mid;
static jmethodID kstatcons_mid;
static jmethodID longcons_mid;
static jmethodID ui64cons_mid;
static jobject
makeUnsignedInt64(JNIEnv *env, uint64_t value)
{
jobject valueObj;
jobject byteArray;
jbyte *bytes;
int i;
if (!(byteArray = (*env)->NewByteArray(env, 9)))
return (NULL); /* OutOfMemoryError thrown */
if (!(bytes = (*env)->GetByteArrayElements(env, byteArray, NULL)))
return (NULL); /* OutOfMemoryError thrown */
/*
* Interpret the uint64_t as a 9-byte big-endian signed quantity
* suitable for constructing an UnsignedInt64 or BigInteger.
*/
for (i = 8; i >= 1; i--) {
bytes[i] = value & 0xff;
value >>= 8;
}
bytes[0] = 0;
(*env)->ReleaseByteArrayElements(env, byteArray, bytes, 0);
if (!(valueObj = (*env)->NewObject(env, ui64class, ui64cons_mid,
byteArray)))
return (NULL); /* exception thrown */
return (valueObj);
}
/*
* Return a Long object with the given value.
*/
static jobject
makeLong(JNIEnv *env, jlong value)
{
jobject valueObj;
if (!(valueObj = (*env)->NewObject(env, longclass, longcons_mid,
value)))
return (NULL); /* exception thrown */
return (valueObj);
}
/*
* Return a Double object with the given value.
*/
static jobject
makeDouble(JNIEnv *env, jdouble value)
{
jobject valueObj;
if (!(valueObj = (*env)->NewObject(env, doubleclass, doublecons_mid,
value)))
return (NULL); /* exception thrown */
return (valueObj);
}
/*
* Returns the kctl_t * from kstat_open(3kstat).
*/
/*ARGSUSED*/
JNIEXPORT jlong JNICALL
Java_com_sun_solaris_service_kstat_KstatCtl_open(JNIEnv *env, jobject obj)
{
return ((jlong)(uintptr_t)kstat_open());
}
/*
* Invokes kstat_close(3kstat).
*/
/*ARGSUSED*/
JNIEXPORT jint JNICALL
Java_com_sun_solaris_service_kstat_KstatCtl_close(JNIEnv *env, jobject obj,
jlong kctl)
{
if (kctl)
return (kstat_close((kstat_ctl_t *)(uintptr_t)kctl));
else
return (0);
}
/*
* Invoke kstat_read(3kstat) for the given Kstat object.
*/
JNIEXPORT void JNICALL Java_com_sun_solaris_service_kstat_Kstat_read(
JNIEnv *env, jobject obj)
{
kstat_ctl_t *kctl =
((kstat_ctl_t *)(uintptr_t)(*env)->GetLongField(env, obj,
kstat_kctl_fieldid));
kstat_t *ksp = ((kstat_t *)(uintptr_t)(*env)->GetLongField(env, obj,
kstat_ksp_fieldid));
kid_t kid;
if (!ksp || !kctl)
return; /* exception thronw */
kid = kstat_read((kstat_ctl_t *)kctl, (kstat_t *)ksp, NULL);
if (kid == -1) {
jclass e;
if (!(e = (*env)->FindClass(env, KSTAT_READ_EX_CLASS_DESC)))
return; /* exception thrown */
(*env)->Throw(env, (*env)->NewObject(env, e,
(*env)->GetStaticMethodID(env, e, "<init>",
"()" CLASS_FIELD_DESC(THROWABLE_CLASS_DESC))));
}
}
/*
* Return a Kstat object corresponding to the result of
* kstat_lookup(3kstat).
*/
JNIEXPORT jobject JNICALL
Java_com_sun_solaris_service_kstat_KstatCtl_lookup(JNIEnv *env, jobject obj,
jstring moduleObj, jint instance, jstring nameObj)
{
const char *module = NULL;
const char *name = NULL;
kstat_ctl_t *kctl;
kstat_t *ksp;
jobject kstatObject = NULL;
if (moduleObj == NULL || nameObj == NULL)
return (NULL);
if (!(module = (*env)->GetStringUTFChars(env, moduleObj, NULL)))
goto done; /* exception thrown */
if (!(name = (*env)->GetStringUTFChars(env, nameObj, NULL)))
goto done; /* exception thrown */
kctl = (kstat_ctl_t *)(uintptr_t)(*env)->GetLongField(env, obj,
kstatctl_kctl_fieldid);
ksp = kstat_lookup(kctl, (char *)module, instance, (char *)name);
if (ksp)
kstatObject = (*env)->NewObject(env, kstatclass, kstatcons_mid,
(jlong)(uintptr_t)kctl, (jlong)(uintptr_t)ksp);
done:
if (name)
(*env)->ReleaseStringUTFChars(env, nameObj, name);
if (module)
(*env)->ReleaseStringUTFChars(env, moduleObj, module);
return (kstatObject);
}
/*
* Returns the named value -- the value of the named kstat, or field in
* a raw kstat, as applicable, and available. Returns <i>null</i> if no
* such named kstat or field is available.
*
* Throws KstatTypeNotSupportedException if the raw kstat is not
* understood. (Presently, none are.)
*/
JNIEXPORT jobject JNICALL
Java_com_sun_solaris_service_kstat_Kstat_getValue(JNIEnv *env, jobject obj,
jstring nameObj)
{
kstat_t *ksp = ((kstat_t *)(uintptr_t)(*env)->GetLongField(env, obj,
kstat_ksp_fieldid));
jobject valueObj = NULL;
kstat_named_t *ksnp;
const char *name;
jclass exceptionClass;
if (!nameObj)
return (NULL);
if (!(name = (*env)->GetStringUTFChars(env, nameObj, NULL)))
return (NULL); /* exception thrown */
if (!(exceptionClass = (*env)->FindClass(env,
KSTAT_TNS_EX_CLASS_DESC))) {
(*env)->ReleaseStringUTFChars(env, nameObj, name);
return (NULL); /* exception thrown */
}
switch (ksp->ks_type) {
case KSTAT_TYPE_NAMED:
ksnp = kstat_data_lookup(ksp, (char *)name);
if (ksnp == NULL)
break;
switch (ksnp->data_type) {
case KSTAT_DATA_CHAR:
valueObj = makeLong(env, ksnp->value.c[0]);
break;
case KSTAT_DATA_INT32:
valueObj = makeLong(env, ksnp->value.i32);
break;
case KSTAT_DATA_UINT32:
valueObj = makeLong(env, ksnp->value.ui32);
break;
case KSTAT_DATA_INT64:
valueObj = makeLong(env, ksnp->value.i64);
break;
case KSTAT_DATA_UINT64:
valueObj = makeUnsignedInt64(env, ksnp->value.ui64);
break;
case KSTAT_DATA_STRING:
valueObj = (*env)->NewStringUTF(env,
KSTAT_NAMED_STR_PTR(ksnp));
break;
case KSTAT_DATA_FLOAT:
valueObj = makeDouble(env, ksnp->value.f);
break;
case KSTAT_DATA_DOUBLE:
valueObj = makeDouble(env, ksnp->value.d);
break;
default:
goto fail;
}
break;
default:
goto fail;
}
(*env)->ReleaseStringUTFChars(env, nameObj, name);
return (valueObj);
fail:
(*env)->ReleaseStringUTFChars(env, nameObj, name);
(*env)->Throw(env, (*env)->NewObject(env, exceptionClass,
(*env)->GetStaticMethodID(env, exceptionClass, "<init>",
"()" CLASS_FIELD_DESC(THROWABLE_CLASS_DESC))));
return (valueObj);
}
/*
* Given a Kstat object, return, as an HRTime object, its kstat_t's
* field at the given offset.
*/
static jobject
ksobj_get_hrtime(JNIEnv *env, jobject obj, offset_t ksfieldoff)
{
kstat_t *ksp = ((kstat_t *)(uintptr_t)(*env)->GetLongField(env, obj,
kstat_ksp_fieldid));
if (!ksp)
return (NULL); /* exception thrown */
return ((*env)->NewObject(env, hrtimeclass, hrtimecons_mid,
makeUnsignedInt64(env, *((hrtime_t *)ksp + ksfieldoff *
sizeof (hrtime_t)))));
}
/*
* Given a Kstat object, return as an HRTime object its ks_snaptime
* field.
*/
JNIEXPORT jobject JNICALL
Java_com_sun_solaris_service_kstat_Kstat_getSnapTime(JNIEnv *env, jobject obj)
{
return (ksobj_get_hrtime(env, obj, offsetof(kstat_t, ks_snaptime)));
}
/*
* Given a Kstat object, return as an HRTime object its ks_crtime
* field.
*/
JNIEXPORT jobject JNICALL
Java_com_sun_solaris_service_kstat_Kstat_getCreationTime(JNIEnv *env,
jobject obj)
{
return (ksobj_get_hrtime(env, obj, offsetof(kstat_t, ks_crtime)));
}
/*
* Invoke kstat_chain_update(3kstat) for the kstat chain corresponding
* to the given KstatCtl object.
*/
JNIEXPORT void JNICALL
Java_com_sun_solaris_service_kstat_KstatCtl_chainUpdate(JNIEnv *env,
jobject obj)
{
kstat_ctl_t *kctl;
kctl = (kstat_ctl_t *)(uintptr_t)(*env)->GetLongField(env, obj,
kstatctl_kctl_fieldid);
(void) kstat_chain_update(kctl);
}
/*
* Cache class, method, and field IDs.
*/
/*ARGSUSED*/
JNIEXPORT void JNICALL
Java_com_sun_solaris_service_kstat_KstatCtl_init(JNIEnv *env, jclass clazz)
{
jclass doubleclass_lref;
jclass hrtimeclass_lref;
jclass kstatclass_lref;
jclass kstatctlclass_lref;
jclass longclass_lref;
jclass ui64class_lref;
if (!(doubleclass_lref = (*env)->FindClass(env, DOUBLE_CLASS_DESC)))
return; /* exception thrown */
if (!(doubleclass = (*env)->NewGlobalRef(env, doubleclass_lref)))
return; /* exception thrown */
if (!(doublecons_mid = (*env)->GetMethodID(env, doubleclass, "<init>",
"(D)V")))
return; /* exception thrown */
if (!(hrtimeclass_lref = (*env)->FindClass(env, HRTIME_CLASS_DESC)))
return; /* exception thrown */
if (!(hrtimeclass = (*env)->NewGlobalRef(env, hrtimeclass_lref)))
return; /* exception thrown */
if (!(hrtimecons_mid = (*env)->GetMethodID(env, hrtimeclass, "<init>",
"(" CLASS_FIELD_DESC(UI64_CLASS_DESC) ")V")))
return; /* exception thrown */
if (!(kstatclass_lref = (*env)->FindClass(env, KSTAT_CLASS_DESC)))
return; /* exception thrown */
if (!(kstatclass = (*env)->NewGlobalRef(env, kstatclass_lref)))
return; /* exception thrown */
if (!(kstatcons_mid = (*env)->GetMethodID(env, kstatclass, "<init>",
"(JJ)V")))
return; /* exception thrown */
if (!(kstat_kctl_fieldid = (*env)->GetFieldID(env, kstatclass, "kctl",
"J")))
return; /* exception thrown */
if (!(kstat_ksp_fieldid = (*env)->GetFieldID(env, kstatclass, "ksp",
"J")))
return; /* exception thrown */
if (!(kstatctlclass_lref = (*env)->FindClass(env, KSTATCTL_CLASS_DESC)))
return; /* exception thrown */
if (!(kstatctlclass = (*env)->NewGlobalRef(env, kstatctlclass_lref)))
return; /* exception thrown */
if (!(kstatctl_kctl_fieldid = (*env)->GetFieldID(env, kstatctlclass,
"kctl", "J")))
return; /* exception thrown */
if (!(longclass_lref = (*env)->FindClass(env, LONG_CLASS_DESC)))
return; /* exception thrown */
if (!(longclass = (*env)->NewGlobalRef(env, longclass_lref)))
return; /* exception thrown */
if (!(longcons_mid = (*env)->GetMethodID(env, longclass, "<init>",
"(J)V")))
return; /* exception thrown */
if (!(ui64class_lref = (*env)->FindClass(env, UI64_CLASS_DESC)))
return; /* exception thrown */
if (!(ui64class = (*env)->NewGlobalRef(env, ui64class_lref)))
return; /* exception thrown */
ui64cons_mid = (*env)->GetMethodID(env, ui64class, "<init>", "([B)V");
}
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class com_sun_solaris_service_kstat_Kstat */
#ifndef _Included_com_sun_solaris_service_kstat_Kstat
#define _Included_com_sun_solaris_service_kstat_Kstat
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: com_sun_solaris_service_kstat_Kstat
* Method: getSnapTime
* Signature: ()Lcom/sun/solaris/service/pools/HRTime;
*/
JNIEXPORT jobject JNICALL Java_com_sun_solaris_service_kstat_Kstat_getSnapTime
(JNIEnv *, jobject);
/*
* Class: com_sun_solaris_service_kstat_Kstat
* Method: getCreationTime
* Signature: ()Lcom/sun/solaris/service/pools/HRTime;
*/
JNIEXPORT jobject JNICALL Java_com_sun_solaris_service_kstat_Kstat_getCreationTime
(JNIEnv *, jobject);
/*
* Class: com_sun_solaris_service_kstat_Kstat
* Method: getValue
* Signature: (Ljava/lang/String;)Ljava/lang/Object;
*/
JNIEXPORT jobject JNICALL Java_com_sun_solaris_service_kstat_Kstat_getValue
(JNIEnv *, jobject, jstring);
/*
* Class: com_sun_solaris_service_kstat_Kstat
* Method: read
* Signature: ()V
*/
JNIEXPORT void JNICALL Java_com_sun_solaris_service_kstat_Kstat_read
(JNIEnv *, jobject);
#ifdef __cplusplus
}
#endif
#endif
/* Header for class com_sun_solaris_service_kstat_KstatCtl */
#ifndef _Included_com_sun_solaris_service_kstat_KstatCtl
#define _Included_com_sun_solaris_service_kstat_KstatCtl
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: com_sun_solaris_service_kstat_KstatCtl
* Method: open
* Signature: ()J
*/
JNIEXPORT jlong JNICALL Java_com_sun_solaris_service_kstat_KstatCtl_open
(JNIEnv *, jobject);
/*
* Class: com_sun_solaris_service_kstat_KstatCtl
* Method: close
* Signature: (J)I
*/
JNIEXPORT jint JNICALL Java_com_sun_solaris_service_kstat_KstatCtl_close
(JNIEnv *, jobject, jlong);
/*
* Class: com_sun_solaris_service_kstat_KstatCtl
* Method: lookup
* Signature: (Ljava/lang/String;ILjava/lang/String;)Lcom/sun/solaris/service/kstat/Kstat;
*/
JNIEXPORT jobject JNICALL Java_com_sun_solaris_service_kstat_KstatCtl_lookup
(JNIEnv *, jobject, jstring, jint, jstring);
/*
* Class: com_sun_solaris_service_kstat_KstatCtl
* Method: chainUpdate
* Signature: ()V
*/
JNIEXPORT void JNICALL Java_com_sun_solaris_service_kstat_KstatCtl_chainUpdate
(JNIEnv *, jobject);
/*
* Class: com_sun_solaris_service_kstat_KstatCtl
* Method: init
* Signature: ()V
*/
JNIEXPORT void JNICALL Java_com_sun_solaris_service_kstat_KstatCtl_init
(JNIEnv *, jclass);
#ifdef __cplusplus
}
#endif
#endif
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
# Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
#
#
# MAPFILE HEADER START
#
# WARNING: STOP NOW. DO NOT MODIFY THIS FILE.
# Object versioning must comply with the rules detailed in
#
# usr/src/lib/README.mapfiles
#
# You should not be making modifications here until you've read the most current
# copy of that file. If you need help, contact a gatekeeper for guidance.
#
# MAPFILE HEADER END
#
$mapfile_version 2
SYMBOL_VERSION SUNWprivate_1.1 {
global:
Java_com_sun_solaris_service_kstat_KstatCtl_chainUpdate;
Java_com_sun_solaris_service_kstat_KstatCtl_close;
Java_com_sun_solaris_service_kstat_KstatCtl_init;
Java_com_sun_solaris_service_kstat_KstatCtl_lookup;
Java_com_sun_solaris_service_kstat_KstatCtl_open;
Java_com_sun_solaris_service_kstat_Kstat_getCreationTime;
Java_com_sun_solaris_service_kstat_Kstat_getSnapTime;
Java_com_sun_solaris_service_kstat_Kstat_getValue;
Java_com_sun_solaris_service_kstat_Kstat_read;
local:
*;
};
|