/*
* 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
* 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 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#include <string.h>
#include <strings.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <libintl.h>
#include <libcpc.h>
#include "cpucmds.h"
struct args {
int colnum;
int margin;
};
struct evlist {
char *list;
int size;
};
/*ARGSUSED*/
static void
{
int i;
}
}
static void
{
/*
* The following attributes are used by the commands but should not be
* reported to the user, since they may not be specified directly.
*/
return;
}
static void *
{
void *ptr;
exit(1);
}
return (ptr);
}
/*
* Used by allpics_equal().
*/
/*ARGSUSED*/
static void
{
exit(1);
}
}
/*
* Returns 1 if all counters on this chip can count all possible events.
*/
static int
{
int i;
for (i = 0; i < npics; i++) {
}
for (i = 1; i < npics; i++)
ret = 0;
break;
}
for (i = 0; i < npics; i++) {
}
return (ret);
}
int
{
const char *ccp;
ccp = "No information available";
"[,[picn=]<eventn>[,attr[n][=<val>]],...]\n");
if (pics_equal) {
} else {
for (i = 0; i < npic; i++) {
}
}
" descriptions of these events\n\n"));
if (pics_equal) {
} else {
for (i = 0; i < npic; i++) {
}
}
/*
* In addition to the attributes published by the kernel, we allow the
* user to specify two additional tokens on all platforms. List them
* here.
*/
ccp = "No information available";
exit(1);
}
}
}
return (0);
}
/*
* Returns 1 on SMT processors which do not have full CPC hardware for each
* logical processor.
*/
int
{
return (1);
return (0);
}