Re: perfctr-2.6.4 released with PPC32 support

2 messages, 2 authors, 2004-01-13 · open the first message on its own page

Re: perfctr-2.6.4 released with PPC32 support

From: Mikael Pettersson <hidden>
Date: 2004-01-13 09:32:48

On Tue, 13 Jan 2004 00:04:31 +0100, Christian [off-list ref] wrote:
Mikael Pettersson wrote:
quoted
Version 2.6.4 of perfctr, the Linux performance
monitoring counters driver, is now available at the usual
place: http://www.csd.uu.se/~mikpe/linux/perfctr/

Three architectures are now supported: x86, AMD64, and PPC32.

Since I only have a PPC750, I'm looking for testers with 74xx
or 604 processors. Even if you don't intend to use the driver,
kernel patches applied with no fuzz to 2.4.24, but compiling the library
gives:

[...]
make[4]: Leaving directory `/usr/local/src/perfctr-2.6.4/examples/perfex'
make[4]: Entering directory `/usr/local/src/perfctr-2.6.4/examples/signal'
gcc -O2 -fomit-frame-pointer -Wall -I../../linux/include -I../../usr.lib
 -c -o ppc.o ppc.c
ppc.c: In function `mcontext_pc':
ppc.c:15: error: structure has no member named `regs'
make[4]: *** [ppc.o] Error 1
Hmm, must be a glibc or kernel headers version problem.
I'm running YDL3.0.1 with glibc-2.3.1.

What version of glibc do you have? How does it define an
mcontext_t (struct sigcontext_struct)?
evil@sheep:/usr/local/src/perfctr-2.6.4$ cat /proc/cpuinfo
processor       : 0
cpu             : 604r
clock           : ???
revision        : 49.2 (pvr 0009 3102)
bogomips        : 299.00
machine         : PReP Utah (Powerstack II Pro4000)
l2 cache        : 512KiB, parity disabled SRAM:synchronous, pipelined,
no parity
Nothing in dmesg?

/Mikael

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

Re: perfctr-2.6.4 released with PPC32 support

From: Christian <hidden>
Date: 2004-01-13 12:50:19

Mikael Pettersson wrote:
|>ppc.c: In function `mcontext_pc':
|>ppc.c:15: error: structure has no member named `regs'
|>make[4]: *** [ppc.o] Error 1
|
| Hmm, must be a glibc or kernel headers version problem.
| I'm running YDL3.0.1 with glibc-2.3.1.

this is debian/unstable with glibc 2.3.2.ds1-10, kernel headers are
*not* under /usr/src/linux/include as one might expect, any way to
specify them with the "make" command? i did not see any hint in the
Makefile how to do this, sorry. but: there is a package named
"linux-kernel-headers" in debian/unstable since a few weeks (?) now. i
have to install it, other -dev packages depend on it, its version is
"2.5.999-test7-bk-14", kinda weird, perhaps this is some bug or so and
hopefully resolved soon by the maintainer.

| What version of glibc do you have? How does it define an
| mcontext_t (struct sigcontext_struct)?

hm, don't know if i picked the one you meant, but
/usr/include/sys/ucontext.h shows:

- -----------------
/* Context to describe whole processor state.  */
typedef struct
{
~        gregset_t gregs;
~        fpregset_t fpregs;
~        vrregset_t vrregs __attribute__((__aligned__(16)));
} mcontext_t;

#else

/* For 64-bit, a machine context is exactly a sigcontext.  */
typedef struct sigcontext mcontext_t;

#endif
- -----------------

| Nothing in dmesg?

/var/log/dmesg is attached (booting a vanilla (!) 2.4.24), but there are
of course no messages during "make"...

no, i was not even aware of using perfctr, but you said testing helps,
and so i did :-)

Thank you for your time,
Christian.

- --
BOFH excuse #429:

Temporal anomaly
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help