This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Program cache layout cannot be seen

Hi,

I want to use program cache layout in my project. I got some ideas from the link:

http://processors.wiki.ti.com/index.php/Program_Cache_Layout

Unfortunately, I only the normal function profiling. The picture of the steps are shown below.

a. target configuration

b. Setup profile

c. Profile results

What is wrong with my input?

Thanks.

  • It once did show a window (which is similar to "Function Coverage") had L1P... some column, but it has no data. I cannot get that window anymore now unfortunately.

    When I press the "Enter control point location..." row, a message pops up:

    What is wrong?

    Regards,

  • Hi,

    I find that optimization user guide mentions the following procedures to prepare the profiling. My question is that How and where to run pdd6x? Because in phase two it requires a PRF file, where to name that file?

    3.8.1.1 Phase 1: Collect Program Profile Information
    In this phase the compiler is invoked with the option --gen_profile_info, which instructs the compiler to add
    instrumentation code to collect profile information. The compiler inserts a minimal amount of
    instrumentation code to determine control flow frequencies. Memory is allocated to store counter
    information.
    The instrumented application program is executed on the target using representative input data sets. The
    input data sets should correlate closely with the way the program is expected to be used in the end
    product environment. When the program completes, a run-time-support function writes the collected
    information into a profile data file called a PDAT file. Multiple executions of the program using different
    input data sets can be performed and in such cases, the run-time-support function appends the collected
    information into the PDAT file. The resulting PDAT file is post-processed using a tool called the Profile
    Data Decoder or pdd6x. The pdd6x tool consolidates multiple data sets and formats the data into a
    feedback file (PRF file, see Section 3.8.2) for consumption by phase 2 of feedback directed optimization.

    The following does talk about ppd6x. Can it run in IDE? Or, it needs command line in Windows 7?  Thanks.

    These steps illustrate the creation and use of feedback directed optimization.
    1. Generate profile information. (Skeletal debug is on by default.)
    cl6x -mv6400+ --opt_level=2 --gen_profile_info foo.c --run_linker --output_file=foo.out
    --library=lnk.cmd --library=rts64plus.lib
    2. Execute the application.
    The execution of the application creates a PDAT file named pprofout.pdat in the current (host)
    directory. The application can be run on a simulator or on target hardware connected to a host
    machine.
    3. Process the profile data.
    After running the application with multiple data-sets, run pdd6x on the PDAT files to create a profile
    information (PRF) file to be used with --use_profile_info.
    ppd6x -e foo.out -o pprofout.prf pprofout.pdat
    4. Re-compile using the profile feedback file. Skeletal debug is not required.
    cl6x -mv6400+ --opt_level=2 --use_profile_info=pprofout.prf foo.c --run_linker
    --output_file=foo.out --library=lnk.cmd --library=rts64plus.lib

  • Hi,

    I find a link talking about command line compiling.

    http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/t/87701.aspx

    Is there a document describing the environment setting etc. I use Windows 7, 64 bit now. Thanks.

  • Robert W said:
    Unfortunately, I only the normal function profiling. The picture of the steps are shown below.

    In your third screenshot with the results, it will show the data collected for one event at a time. Currently it is showing cycle.CPU. You can change the event with the dropdown menu in the right in the Profile view (circled in red):

    Thanks

    ki

  • Robert W said:
    I find that optimization user guide mentions the following procedures to prepare the profiling. My question is that How and where to run pdd6x? Because in phase two it requires a PRF file, where to name that file?

    take a look at slides 15-21 of:

    http://processors.wiki.ti.com/images/5/58/Release_610_overview_public.pdf

    It gives an overview of path profiling, which is related to the questions you are asking. The rest of the documentation for it is covered in the documentation for the compiler.

    Thanks

    ki