1libcpc(3LIB) Interface Libraries libcpc(3LIB)
2
3
4
6 libcpc - CPU performance counter library
7
9 cc [ flag... ] file... -lcpc [ library... ]
10
11
13 Functions in this library provide access to CPU performance counters on
14 platforms that contain the appropriate hardware.
15
17 The shared object libcpc.so.1 provides the public interfaces defined
18 below. See Intro(3) for additional information on shared object inter‐
19 faces.
20
21
22
23
24 cpc_access cpc_bind_cpu
25 cpc_bind_curlwp cpc_bind_event
26 cpc_bind_pctx cpc_buf_add
27 cpc_buf_copy cpc_buf_create
28 cpc_buf_destroy cpc_buf_get
29 cpc_buf_hrtime cpc_buf_set
30 cpc_buf_sub cpc_buf_tick
31 cpc_buf_zero cpc_caps
32 cpc_cciname cpc_close
33 cpc_cpuref cpc_count_sys_events
34 cpc_count_usr_events cpc_disable
35 cpc_enable cpc_event_accum
36 cpc_event_diff cpc_eventtostr
37 cpc_getcciname cpc_getcpuref
38 cpc_getcpuver cpc_getnpic
39 cpc_getusage cpc_npic
40 cpc_open cpc_pctx_bind_event
41 cpc_pctx_invalidate cpc_pctx_rele
42 cpc_pctx_take_sample cpc_rele
43 cpc_request_preset cpc_set_add_request
44 cpc_set_create cpc_set_destroy
45 cpc_set_restart cpc_set_sample
46 cpc_seterrfn cpc_seterrhndlr
47 cpc_shared_bind_event cpc_shared_close
48 cpc_shared_open cpc_shared_rele
49 cpc_shared_take_sample cpc_strtoevent
50 cpc_take_sample cpc_unbind
51 cpc_version cpc_walk_attrs
52 cpc_walk_events_all cpc_walk_events_pic
53 cpc_walk_generic_events_all cpc_walk_generic_events_pic
54 cpc_walk_names cpc_walk_requests
55
56
58 /usr/lib/libcpc.so.1 shared object
59
60
61 /usr/lib/64/libcpc.so.1 64-bit shared object
62
63
65 See attributes(5) for descriptions of the following attributes:
66
67
68
69
70 ┌─────────────────────────────┬─────────────────────────────┐
71 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
72 ├─────────────────────────────┼─────────────────────────────┤
73 │Availability │SUNWcpcu │
74 │MT-Level │Safe │
75 └─────────────────────────────┴─────────────────────────────┘
76
78 cputrack(1), cpustat(1M), Intro(3), cpc(3CPC), attributes(5), xVM(5)
79
81 There is no support for access to performance counters in the xVM(5)
82 environment. The -h operations for cputrack(1) are not enabled.
83
84
85
86SunOS 5.11 8 Oct 2008 libcpc(3LIB)