posix.cfg: Added support for more posix_trace..() functions
This commit is contained in:
parent
3c57752c9b
commit
f5b9445767
|
@ -4795,6 +4795,25 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s
|
|||
<not-null/>
|
||||
</arg>
|
||||
</function>
|
||||
<!-- void posix_trace_event(trace_event_id_t event_id,
|
||||
const void *restrictdata_ptr, size_t data_len); -->
|
||||
<function name="posix_trace_event">
|
||||
<leak-ignore/>
|
||||
<noreturn>false</noreturn>
|
||||
<returnValue type="void"/>
|
||||
<arg nr="1" direction="in">
|
||||
<not-uninit/>
|
||||
<valid>1:</valid>
|
||||
</arg>
|
||||
<arg nr="2" direction="in">
|
||||
<not-uninit/>
|
||||
<not-null/>
|
||||
</arg>
|
||||
<arg nr="3" direction="in">
|
||||
<not-uninit/>
|
||||
<valid>0:</valid>
|
||||
</arg>
|
||||
</function>
|
||||
<!-- int posix_trace_getnext_event(trace_id_t trid,
|
||||
struct posix_trace_event_info *restrict event,
|
||||
void *restrict data, size_t num_bytes,
|
||||
|
|
|
@ -37,6 +37,14 @@
|
|||
#include <strings.h>
|
||||
|
||||
#if __TRACE_H__ // <trace.h>
|
||||
|
||||
void nullPointer_posix_trace_event(trace_event_id_t event_id, const void* restrictdata_ptr, size_t data_len)
|
||||
{
|
||||
// cppcheck-suppress nullPointer
|
||||
(void) posix_trace_event(event_id, NULL, data_len);
|
||||
(void) posix_trace_event(event_id, restrictdata_ptr, 0);
|
||||
}
|
||||
|
||||
void nullPointer_posix_trace_trygetnext_event(trace_id_t trid,
|
||||
struct posix_trace_event_info *event,
|
||||
void *data, size_t num_bytes,
|
||||
|
|
Loading…
Reference in New Issue