All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Shen Rong" <rshen@udtech.com.cn>
To: <linuxppc-dev@lists.linuxppc.org>
Subject: MPC75x Preformance Monitor Support
Date: Wed, 18 Jun 2003 11:02:55 +0800	[thread overview]
Message-ID: <09f101c33546$1dd30f60$e600a8c0@udtech.net> (raw)


Hi,

I have written a simple program which supports MPC75x cpu performance monitor.
It's really primitive. So I hope there is someone who has interesting and free time
to do further following work on it:
1. more features and more usable
2. config-able and module-able
3. check to see if it will conflict with other program using PMC, such as ppc_htab.c
4. write userland program to give out run-time curve, it's interesting
5. better than pmc_proc.c in iseries :-(
6. and finally, the most important is to be accepted by the ppc maintainers

Do I ask too much, if so, sorry.
Thanks.

Shenrong


begin 666 mpc75x_pmc.c
M+RH*("H@35!#-S5X(%!E<F9O<FUA;F-E($UO;FET;W(*("H*("H@4VAE;G)O
M;F<@/')S:&5N0'5D=&5C:"YC;VTN8VX^"B J"B J+PH*(VEN8VQU9&4@/&QI
M;G5X+V-O;F9I9RYH/@HC:6YC;'5D92 \;&EN=7@O<V-H960N:#X*(VEN8VQU
M9&4@/&QI;G5X+W!R;V-?9G,N:#X*(VEN8VQU9&4@/&QI;G5X+W-T870N:#X*
M(VEN8VQU9&4@/&QI;G5X+W-Y<V-T;"YH/@HC:6YC;'5D92 \;&EN=7@O8W1Y
M<&4N:#X*(VEN8VQU9&4@/&QI;G5X+VEN:70N:#X*"B-I;F-L=61E(#QA<VTO
M<')O8V5S<V]R+F@^"B-I;F-L=61E(#QA<VTO8W!U=&%B;&4N:#X*(VEN8VQU
M9&4@/&%S;2]S>7-T96TN:#X*"@HC9&5F:6YE($U-0U(P"0D).34R"B-D969I
M;F4@4$U#,0D)"3DU,PHC9&5F:6YE(%!#33()"0DY-30*(V1E9FEN92!324$)
M"0DY-34*(V1E9FEN92!-34-2,0D)"3DU-@HC9&5F:6YE(%!-0S,)"0DY-3<*
M(V1E9FEN92!034,T"0D).34X"@HC9&5F:6YE(%!-0S%?3#)(250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"7)E='5R;B!R971V.PI]"@IS=&%T:6,@:6YT(%]?:6YI="!M<&,W
M-7A?<&U?:6YI="AV;VED*0I["@EP;5]S>7-C=&Q?:&5A9&5R(#T@<F5G:7-T
M97)?<WES8W1L7W1A8FQE*'!M7W)O;W1?=&%B;&4L(# I.PH)<F5T=7)N(# [
M"GT*"G9O:60@;7!C-S5X7W!M7W)E;&5A<V4H=F]I9"D*>PH):68H<&U?<WES
M8W1L7VAE861E<BD*"0EU;G)E9VES=&5R7W-Y<V-T;%]T86)L92AP;5]S>7-C
K=&Q?:&5A9&5R*3L*?0H*7U]I;FET8V%L;"AM<&,W-7A?<&U?:6YI="D["@``
`
end


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

                 reply	other threads:[~2003-06-18  3:02 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='09f101c33546$1dd30f60$e600a8c0@udtech.net' \
    --to=rshen@udtech.com.cn \
    --cc=linuxppc-dev@lists.linuxppc.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.