Am 2018-07-10 16:49, schrieb Richard Cochran:
On Tue, Jul 10, 2018 at 11:55:44AM +0200, Michael Walle wrote:
These functions are just wrappers. Make it possible for the compiler to
optimize the calls when compiled with optimization.

Are you sure?

Compiled with -O? I've looked at the compiled binary and there is no host2net64 call anymore. If the patch isn't applied, there is a function host2net64() and calls to it.


Finding symbol: host2net64

*** msg.h:
<global>[427]                  int64_t host2net64(int64_t val);

*** msg.c:
host2net64[83]                 int64_t host2net64(int64_t val)
hdr_pre_send[107] m->correction = host2net64(m->correction);

*** tc.c:
tc_complete_response[164] resp->header.correction = host2net64(c2); tc_complete_response[171] resp->header.correction = host2net64(c1);
tc_complete_syfup[225]         fup->header.correction = host2net64(c2);
tc_complete_syfup[232]         fup->header.correction = host2net64(c1);

*** tlv.c:
scaled_ns_h2n[51]              sns->nanoseconds_lsb =
host2net64(sns->nanoseconds_msb);
host2net64_unaligned[68]       v = host2net64(v);
mgt_pre_send[342]              cds->offsetFromMaster =
host2net64(cds->offsetFromMaster);
mgt_pre_send[343]              cds->meanPathDelay =
host2net64(cds->meanPathDelay);
mgt_pre_send[363]              p->peerMeanPathDelay =
host2net64(p->peerMeanPathDelay);
mgt_pre_send[367]              tsn->master_offset =
host2net64(tsn->master_offset);
mgt_pre_send[368]              tsn->ingress_time =
host2net64(tsn->ingress_time);

what program is that?

-m

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Linuxptp-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel

Reply via email to