Searched refs:blen (Results 1 – 4 of 4) sorted by relevance
/tools/testing/selftests/net/ |
D | txring_overwrite.c | 41 static void build_packet(void *buffer, size_t blen, char payload_char) in build_packet() argument 48 memset(buffer, 0, blen); in build_packet() 61 iph->tot_len = htons(blen - off); in build_packet() 68 udph->len = htons(blen - off); in build_packet() 72 memset(buffer + off, payload_char, blen - off); in build_packet()
|
/tools/perf/util/arm-spe-decoder/ |
D | arm-spe-pkt-decoder.c | 253 static int arm_spe_pkt_out_string(int *err, char **buf_p, size_t *blen, in arm_spe_pkt_out_string() argument 264 ret = vsnprintf(*buf_p, *blen, fmt, ap); in arm_spe_pkt_out_string() 275 } else if ((size_t)ret >= *blen) { in arm_spe_pkt_out_string() 276 (*buf_p)[*blen - 1] = '\0'; in arm_spe_pkt_out_string() 286 *blen -= ret; in arm_spe_pkt_out_string() 492 size_t blen = buf_len; in arm_spe_pkt_desc() local 499 arm_spe_pkt_out_string(&err, &buf, &blen, "%s", name); in arm_spe_pkt_desc() 509 arm_spe_pkt_out_string(&err, &buf, &blen, "%s %lld", name, payload); in arm_spe_pkt_desc() 515 arm_spe_pkt_out_string(&err, &buf, &blen, "%s 0x%lx el%d", in arm_spe_pkt_desc()
|
/tools/perf/util/intel-pt-decoder/ |
D | intel-pt-pkt-decoder.c | 703 size_t blen = buf_len; in intel_pt_pkt_desc() local 705 ret = snprintf(buf, blen, "%s ", name); in intel_pt_pkt_desc() 709 blen -= ret; in intel_pt_pkt_desc() 712 ret = snprintf(buf, blen, "T"); in intel_pt_pkt_desc() 714 ret = snprintf(buf, blen, "N"); in intel_pt_pkt_desc() 718 blen -= ret; in intel_pt_pkt_desc() 721 ret = snprintf(buf, blen, " (%d)", packet->count); in intel_pt_pkt_desc() 724 blen -= ret; in intel_pt_pkt_desc() 725 return buf_len - blen; in intel_pt_pkt_desc()
|
/tools/perf/pmu-events/ |
D | jevents.c | 126 int blen = bt ? json_len(bt) : 0; in addfield() local 129 out = realloc(*dst, len + olen + blen); in addfield() 142 strncat(*dst, map + bt->start, blen); in addfield()
|