muvarov replied on github web page:

platform/linux-generic/pktio/netmap.c
line 12
@@ -388,13 +389,22 @@ static int netmap_open(odp_pktio_t id ODP_UNUSED, 
pktio_entry_t *pktio_entry,
 
        if (pkt_nm->is_virtual) {
                static unsigned mac;
+               uint32_t tid = syscall(SYS_gettid);


Comment:
it was copied from netmap source  I think. gittid() will generate warning due 
to missing glibc wrapper: 
https://stackoverflow.com/questions/30680550/c-gettid-was-not-declared-in-this-scope
 Maybe something already changed...

> Matias Elo(matiaselo) wrote:
> What's the benefit from using gettid()? It seems like the only difference is 
> that gettid() cannot fail.


>> Dmitry Eremin-Solenikov(lumag) wrote:
>> Why don't you use `gettid()` function? Then you can check for its existence 
>> in `configure.ac` and provide replacement implementation. 


https://github.com/Linaro/odp/pull/237#discussion_r145377591
updated_at 2017-10-18 10:44:43

Reply via email to