I authored a apache module hook the publish_config(function svpn_publish_config below) and translate procudure(function svpn_trans_url below).It really works fine! However when I run the module with gcov to complete the system test,I've found that just the publish_config procedure appears to become known as.the truth is svpn_trans_url can also be known as,However I can't see in the gcov result.Anybody known why? some detail info:

  1. Module Makefile:CC =gcc -fprofile-arcs -ftest-coverage -fPIC -DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -pthread -g -shared
  2. I attempted to operate the httpd within the debug mode."httpd -X -k start -DSSL"
  3. I run the gcov to create after steer clear of the httpd.

    static int svpn_trans_url(request_rec *r)

    char *filenamestart  = NULL;//NOT RUN######
    char *hostinfo = NULL;//NOT RUN######
    char *origin_url = NULL;//NOT RUN######
    r_easylink_map_t el_info = {0};//NOT RUN######
    int web_proxy_type= TYPE_PROXY_NORMAL;//NOT RUN######
    ....//NOT RUN######
    return DECLINED;//NOT RUN######
    

    ......

    static int svpn_post_config(apr_pool_t *p, apr_pool_t *plog,
                                apr_pool_t *ptemp, server_rec *s)
       7    {
       7        static int _init = 0;
       7        int ret = 0;
       7        if(p == NULL)
        {