Operating System - HP-UX
1833198 Members
2826 Online
110051 Solutions
New Discussion

HOW TO implement PBO when using .sl libs

 
SOLVED
Go to solution
Laurent Laperrousaz
Regular Advisor

HOW TO implement PBO when using .sl libs

Hi
I would like to use PBO optimization but I have several dynamic libraries and I can't set it successfully.
I did not find a clear document about the "how to"

Can somebody help me thru this issue?

Thank you
3 REPLIES 3
ranganath ramachandra
Esteemed Contributor

Re: HOW TO implement PBO when using .sl libs

from the hpux linker and libraries user's guide -
http://docs.hp.com/hpux/onlinedocs/B2355-90654/B2355-90654.html (or ld +help) :
To profile shared libraries, you must set the environment variable
SHLIB_FLOW_DATA to the file that receives profile data. Unlike FLOW_DATA,
SHLIB_FLOW_DATA has no default output file. If SHLIB_FLOW_DATA is not set,
profile data is not collected.
 
--
ranga
hp-ux 11i v3[i work for hpe]

Accept or Kudo

Laurent Laperrousaz
Regular Advisor

Re: HOW TO implement PBO when using .sl libs

thank you.
using your recommendation, I got my flow.data
It appears that for phase 3 of PBO it needs an explicit path for the flow.data so:
I forced the use of the flow.data with the +df otion like this:
/opt/aCC/bin/aCC +O2 +P -Wl,-aarchive_shared +df../flow.data -I/home/TANGO/STLport/stlport -D__unix__ -D__hpux__ -Wl,+s -Wl,+blib +z +Z -mt -AA -ext +DA2.0 +W829,921,652 -L./lib -L/home/TANGO/STLport/lib -L/usr/local/lib -b -o lib/libtg_disp.sl tmp/expatpp.o tmp/matchs_routages_parser.o tmp/regles_routages_parser.o tmp/routes_routages_parser.o tmp/tg_dispatcher.o tmp/tg_dispatcher_cfg.o tmp/tg_dispatcher_customer.o tmp/tg_dispatcher_log.o tmp/tg_dispatcher_request.o tmp/tg_dispatcher_routage.o tmp/tg_dispatcher_subscriber.o tmp/tg_dispatcher_timer.o

but I still get this message:

/usr/ccs/bin/fdp: No profile data for program lib/libtg_disp.sl in profile database ../flow.data
/usr/ccs/bin/ld: (Warning) Error executing feedback directed positioning call graph tool: /usr/ccs/bin/fdp

What went wrong?
ranganath ramachandra
Esteemed Contributor
Solution

Re: HOW TO implement PBO when using .sl libs

add +pgm libtg_disp.sl to your link line.
 
--
ranga
hp-ux 11i v3[i work for hpe]

Accept or Kudo