Searched refs:LEN_OR_ZERO (Results 1 – 2 of 2) sorted by relevance
/linux-4.1.27/kernel/trace/ |
D | trace_probe.c | 680 #define LEN_OR_ZERO (len ? len - pos : 0) in __set_print_fmt() macro 682 pos += snprintf(buf + pos, LEN_OR_ZERO, "\"%s", fmt); in __set_print_fmt() 685 pos += snprintf(buf + pos, LEN_OR_ZERO, " %s=%s", in __set_print_fmt() 689 pos += snprintf(buf + pos, LEN_OR_ZERO, "\", %s", arg); in __set_print_fmt() 693 pos += snprintf(buf + pos, LEN_OR_ZERO, in __set_print_fmt() 697 pos += snprintf(buf + pos, LEN_OR_ZERO, ", REC->%s", in __set_print_fmt() 701 #undef LEN_OR_ZERO in __set_print_fmt()
|
D | trace_syscalls.c | 201 #define LEN_OR_ZERO (len ? len - pos : 0) in __set_enter_print_fmt() macro 203 pos += snprintf(buf + pos, LEN_OR_ZERO, "\""); in __set_enter_print_fmt() 205 pos += snprintf(buf + pos, LEN_OR_ZERO, "%s: 0x%%0%zulx%s", in __set_enter_print_fmt() 209 pos += snprintf(buf + pos, LEN_OR_ZERO, "\""); in __set_enter_print_fmt() 212 pos += snprintf(buf + pos, LEN_OR_ZERO, in __set_enter_print_fmt() 216 #undef LEN_OR_ZERO in __set_enter_print_fmt()
|