Hi
 
I have a query regarding the report generated by the lcov..
I am using lcov-1.3 on Red Hat linux 2.4.19
I am trying to generate coverage report for some of my kerenl modules.
Below is the portion of 2 sample .c.html files.
 
  
 
     : /*****************************************************************************
     266                 :  * find_CP_service()
     267                 :  *
     268                 :  * Description:
     269                 :  *     
     270                 :  * Input:
     271                 :  *      the_bridge : The bridge to be deregistered.
     272                 :  *     
     273                 :  * Return:
     274                 :  *      void
     275                 :  *     
     276                 :  * Note:
     277                 :  *
     278                 :  * Context:
     279                 :  ****************************************************************************/
     280                 : CP_Services_Struct * find_CP_service(char *bridge_name)
     281                 : {
     282          304425 :         CP_Services_Struct *prevService;
     283                 :         CP_Services_Bridge *bridge, *prevBridge; -----------------> Count is neither zero nor nonzero.(white color)
     284                 :
     285                 :         ENTER_FUNCTION();
     286                 :
     287                 :         /* locate the bridge */
     288          304425 :         bridge = findServiceBridge(bridge_name, &prevBridge);
     289                 :
     290                 :         LEAVE_FUNCTION();
     291                 :
     292                 :         /* return the services struct */
     293          304425 :         return findServiceStruct(bridge, &prevService);
     294          304425 : }
 
 
 
 
  : unsigned char *DpMalloc(int bytes)
     441                 : {
     442               0 :         malloc_struct *ptr = dpBufferData.DpMallocMemory.allocator_list;
     443                 :         malloc_struct *newptr;                   -----------------> Count is neither zero nor nonzero.(white color)
     444               0 :         unsigned char *buffer = NULL;
     445                 :             .....
                                        ........
                                        .......
 
Why is this happening. It is showing execution count for some declarations and not showing anything for some other..
 
Another query is on lcov how can I generate the coverage report on branching and function coverage (which is acheived using gcov -b -f .. options.)
On lcov do I have options like this. As of now I am able to generate percentage wise report only at file and directory level. not at function and branch level..
That is, I want  the report got by -b -f option of gcov  in lcov. 
 
Any help on this is really appreciated and thanks in advance.
Kindly reply to the same Id
 
 
 
 
Regards,
M. Ramanarayana Bhat,
Storage Solutions (E & PE),
Wipro Technologies,