PHP dtrace extension for Cool Stack 1.2

We have fixed the issue with the PHP dtrace extension not working in Cool Stack 1.2. As I mentioned in my announcement post, we had already identified the issue but didn't have time to fix it before the release. The issue was that /usr/ccs/bin/ld was being used to do the linking but this doesn't work for dtrace as some initialization code needs to be called from the .init section and this is not setup correctly if we don't use 'cc' to do the linking (rather than 'ld'). 

So a simple addition to the configure line:
LD="cc"

did the trick.

We now have two files : dtrace_1.2_sparc.so and dtrace_1.2_x86.so posted. Download the one for your machine and do the following :

  • Copy it to the php5 extensions directory of /opt/coolstack/php5/lib/php/extensions/no-debug-non-zts-20060613 and re-name it as dtrace.so.
  • Add extension="dtrace.so" to your /opt/coolstack/php5/lib/php.ini. 

See my earlier post, for an example of how to use dtrace to trace through the AMP stack. 

Comments:

1. Why is the CoolStack stuff so difficult to find on the Sun Downloads page? Try looking for it in the downloads page. Nigthmare!

2. Are the Cool Stack applications now SMF aware?

It really ticks me off that Sun does all this cool stuff then makes it difficult to find and get. Grrr!

Posted by Dave on November 05, 2007 at 10:32 PM PST #

Hi Dave,

Long story short, we'll be updating some of the other content so there are some better pointers. Specifically, the sun.com/solaris/amp page and the OpenSolaris Web Stack project.

It was better to release it with updates where it originally came out and then go tidy up the other spots rather than release it later with all of the appropriate pointers updated.

Sorry for the inconvenience.

- Matt

Posted by Matt Ingenthron on November 05, 2007 at 11:30 PM PST #

Regarding SMF, yes - it's there. Check out the Cool Stack page at http://cooltools.sunsource.net/coolstack for a complete list of changes in this version.

Posted by Shanti on November 06, 2007 at 12:03 AM PST #

I just installed the Tomcat one and the SMF is all working nicely nice!

Posted by dave on November 06, 2007 at 04:39 PM PST #

Post a Comment:
  • HTML Syntax: NOT allowed
About

I'm a Senior Staff Engineer in the Performance & Applications Engineering Group (PAE). This blog focuses on tips to build, configure, tune and measure performance of popular open source web applications on Solaris.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today