8 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hello. I am installing Kali Linux on a laptop with no monitor. The installation goes fine through the external monitor and I can see the GRUB menu on boot, but once it comes time to log in it acts like my non existant laptop screen is my main monitor to type my login info on while my external is... (14 Replies)
Discussion started by: debpleb293
14 Replies
2. Red Hat
Hey everyone,
I have a KVM or External monitor (19" Dell) that I am trying to hook up to a laptop running RHEL 6.3 (via VGA which is the only option). When I connect it, and go to System->Preferences->Display, the max resolution option it provides me for these external devices is 1280x1024. ... (2 Replies)
Discussion started by: rchaud10
2 Replies
3. AIX
Dear experts ,
Pls advice for any good Tool to monitor the CPU and performance of AIX the system ..
to keep monitoring to show me the utilization of that system .. (12 Replies)
Discussion started by: Mr.AIX
12 Replies
4. HP-UX
Hello,
there. We want to write application on HP-UX to monitor system resource,such as CPU,Network Traffic Load,Disk Usage,etc. Anyone know these API functions except the system command ? thanks. (6 Replies)
Discussion started by: Frank2004
6 Replies
5. Ubuntu
Hey,
I was trying to configure my laptop's xorg.conf file so I could use a external monitor. But things got messed up and now I can't get the original back (meaning a high resolution desktop on the laptop). What went wrong? How is it possible that the server always gets stuck at the line: ... (1 Reply)
Discussion started by: ElJavi
1 Replies
6. News, Links, Events and Announcements
About 4 years ago I wrote this tool inspired by Rob Urban's collect tool for DEC's Tru64 Unix. What makes this tool as different as collect was in its day is its ability to run at a low overhead and collect tons of stuff. I've expanded the general concept and even include data not available in... (0 Replies)
Discussion started by: MarkSeger
0 Replies
7. UNIX for Dummies Questions & Answers
Which performance counters you might to define as "The most important counters in checking unix performance" (3 Replies)
Discussion started by: gen4ik
3 Replies
8. AIX
I am an old HP 3000 systems administrator who had to retire the 3000 for some nice pseries AIX boxes. We are a Symitar site and the powers that be do not think we are ready for root acess. I need to find ways within my chains to view system statistics. Being able to wow someone in management... (3 Replies)
Discussion started by: Beetlejuice
3 Replies
cpc_event(3CPC) CPU Performance Counters Library Functions cpc_event(3CPC)
NAME
cpc_event - data structure to describe CPU performance counters
SYNOPSIS
#include <libcpc.h>
DESCRIPTION
The libcpc interfaces manipulate CPU performance counters using the cpc_event_t data structure. This structure contains several fields that
are common to all processors, and some that are processor-dependent. These structures can be declared by a consumer of the API, thus the
size and offsets of the fields and the entire data structure are fixed per processor for any particular version of the library. See
cpc_version(3CPC) for details of library versioning.
SPARC
For UltraSPARC, the structure contains the following members:
typedef struct {
int ce_cpuver;
hrtime_t ce_hrt;
uint64_t ce_tick;
uint64_t ce_pic[2];
uint64_t ce_pcr;
} cpc_event_t;
x86
For Pentium, the structure contains the following members:
typedef struct {
int ce_cpuver;
hrtime_t ce_hrt;
uint64_t ce_tsc;
uint64_t ce_pic[2];
uint32_t ce_pes[2];
#define ce_cesr ce_pes[0]
} cpc_event_t;
The APIs are used to manipulate the highly processor-dependent control registers (the ce_pcr, ce_cesr, and ce_pes fields); the programmer
is strongly advised not to reference those fields directly in portable code. The ce_pic array elements contain 64-bit accumulated counter
values. The hardware registers are virtualized to 64-bit quantities even though the underlying hardware only supports 32-bits (UltraSPARC)
or 40-bits (Pentium) before overflow.
The ce_hrt field is a high resolution timestamp taken at the time the counters were sampled by the kernel. This uses the same timebase as
gethrtime(3C).
On SPARC V9 machines, the number of cycles spent running on the processor is computed from samples of the processor-dependent %tick regis-
ter, and placed in the ce_tick field. On Pentium processors, the processor-dependent time-stamp counter register is similarly sampled and
placed in the ce_tsc field.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
SEE ALSO
gethrtime(3C), cpc(3CPC), cpc_version(3CPC), libcpc(3LIB), attributes(5)
SunOS 5.11 12 May 2003 cpc_event(3CPC)