Searched refs:LEN_OR_ZERO (Results 1 – 2 of 2) sorted by relevance
/linux-4.4.14/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 | 202 #define LEN_OR_ZERO (len ? len - pos : 0) in __set_enter_print_fmt() macro 204 pos += snprintf(buf + pos, LEN_OR_ZERO, "\""); in __set_enter_print_fmt() 206 pos += snprintf(buf + pos, LEN_OR_ZERO, "%s: 0x%%0%zulx%s", in __set_enter_print_fmt() 210 pos += snprintf(buf + pos, LEN_OR_ZERO, "\""); in __set_enter_print_fmt() 213 pos += snprintf(buf + pos, LEN_OR_ZERO, in __set_enter_print_fmt() 217 #undef LEN_OR_ZERO in __set_enter_print_fmt()
|