#include <stddef.h> #include <stdbool.h> #include <linux/compiler.h> #include <linux/lockdep.h> #include <unistd.h> #include <sys/syscall.h> static __thread struct task_struct current_obj; /* lockdep wants these */ bool debug_locks = true; bool debug_locks_silent; __attribute__((destructor)) static void liblockdep_exit(void) { debug_check_no_locks_held(); } struct task_struct *__curr(void) { if (current_obj.pid == 0) { /* Makes lockdep output pretty */ prctl(PR_GET_NAME, current_obj.comm); current_obj.pid = syscall(__NR_gettid); } return ¤t_obj; } <div id='cgit'><table id='header'> <tr> <td class='logo' rowspan='2'><a href='/cgit.cgi/'><img src='/cgit.png' alt='cgit logo'/></a></td> <td class='main'><a href='/cgit.cgi/'>index</a> : <a href='/cgit.cgi/linux/net-next.git/'>net-next.git</a></td><td class='form'><form method='get'> <input type='hidden' name='id' value='da7061c82e4a1bc6a5e134ef362c86261906c860'/><select name='h' onchange='this.form.submit();'> <option value='emaclite-cleanup'>emaclite-cleanup</option> <option value='master' selected='selected'>master</option> <option value='nds-private-remove'>nds-private-remove</option> <option value='packet-loop-back'>packet-loop-back</option> <option value='packet-rx-pump-back'>packet-rx-pump-back</option> </select> <input type='submit' value='switch'/></form></td></tr> <tr><td class='sub'>net-next plumbings</td><td class='sub right'>Tobias Klauser</td></tr></table> <table class='tabs'><tr><td> <a href='/cgit.cgi/linux/net-next.git/'>summary</a><a href='/cgit.cgi/linux/net-next.git/refs/?id=da7061c82e4a1bc6a5e134ef362c86261906c860'>refs</a><a class='active' href='/cgit.cgi/linux/net-next.git/log/include/trace/events/alarmtimer.h'>log</a><a href='/cgit.cgi/linux/net-next.git/tree/include/trace/events/alarmtimer.h?id=da7061c82e4a1bc6a5e134ef362c86261906c860'>tree</a><a href='/cgit.cgi/linux/net-next.git/commit/include/trace/events/alarmtimer.h?id=da7061c82e4a1bc6a5e134ef362c86261906c860'>commit</a><a href='/cgit.cgi/linux/net-next.git/diff/include/trace/events/alarmtimer.h?id=da7061c82e4a1bc6a5e134ef362c86261906c860'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/linux/net-next.git/log/include/trace/events/alarmtimer.h'> <input type='hidden' name='id' value='da7061c82e4a1bc6a5e134ef362c86261906c860'/><select name='qt'> <option value='grep'>log msg</option> <option value='author'>author</option> <option value='committer'>committer</option> <option value='range'>range</option> </select> <input class='txt' type='search' size='10' name='q' value=''/> <input type='submit' value='search'/> </form> </td></tr></table> <div class='path'>path: <a href='/cgit.cgi/linux/net-next.git/log/?id=da7061c82e4a1bc6a5e134ef362c86261906c860'>root</a>/<a href='/cgit.cgi/linux/net-next.git/log/include?id=da7061c82e4a1bc6a5e134ef362c86261906c860'>include</a>/<a href='/cgit.cgi/linux/net-next.git/log/include/trace?id=da7061c82e4a1bc6a5e134ef362c86261906c860'>trace</a>/<a href='/cgit.cgi/linux/net-next.git/log/include/trace/events?id=da7061c82e4a1bc6a5e134ef362c86261906c860'>events</a>/<a href='/cgit.cgi/linux/net-next.git/log/include/trace/events/alarmtimer.h?id=da7061c82e4a1bc6a5e134ef362c86261906c860'>alarmtimer.h</a></div><div class='content'><table class='list nowrap'><tr class='nohover'><th class='left'>Age</th><th class='left'>Commit message (<a href='/cgit.cgi/linux/net-next.git/log/include/trace/events/alarmtimer.h?id=da7061c82e4a1bc6a5e134ef362c86261906c860&showmsg=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Files</th><th class='left'>Lines</th></tr>