Lines Matching refs:buts_name
94 char *buts_name; /* name returned from bt kernel code */ member
184 char buts_name[32]; /* trace name */ member
619 if (dpp->buts_name) in dpp_free()
620 free(dpp->buts_name); in dpp_free()
877 static int net_send_header(int fd, int cpu, char *buts_name, int len) in net_send_header() argument
884 memset(hdr.buts_name, 0, sizeof(hdr.buts_name)); in net_send_header()
885 strncpy(hdr.buts_name, buts_name, sizeof(hdr.buts_name)); in net_send_header()
886 hdr.buts_name[sizeof(hdr.buts_name) - 1] = '\0'; in net_send_header()
898 static void net_send_open_close(int fd, int cpu, char *buts_name, int len) in net_send_open_close() argument
902 net_send_header(fd, cpu, buts_name, len); in net_send_open_close()
906 static void net_send_open(int fd, int cpu, char *buts_name) in net_send_open() argument
908 net_send_open_close(fd, cpu, buts_name, 0); in net_send_open()
911 static void net_send_close(int fd, char *buts_name, int drops) in net_send_close() argument
920 net_send_open_close(fd, drops, buts_name, 1); in net_send_close()
924 static void ack_open_close(int fd, char *buts_name) in ack_open_close() argument
926 net_send_header(fd, 0, buts_name, 2); in ack_open_close()
936 net_send_close(fd, dpp->buts_name, dpp->drops); in net_send_drops()
1085 dpp->buts_name = strdup(buts.name); in setup_buts()
1120 dpp->buts_name); in get_drops()
1304 if (net_send_header(fd, tbp->cpu, dpp->buts_name, tbp->len)) in flush_subbuf_net()
1505 if (net_send_header(iop->ofd, tp->cpu, dpp->buts_name, iop->ready)) in net_sendfile_data()
1510 static int fill_ofname(char *dst, int dstlen, char *subdir, char *buts_name, in fill_ofname() argument
1549 buts_name, cpu); in fill_ofname()
1586 iop->dpp->buts_name, cpu)) in iop_open()
1642 net_send_close(iop->ofd, dpp->buts_name, dpp->drops); in close_ios()
1672 debugfs_path, dpp->buts_name, tp->cpu); in open_ios()
1692 net_send_open(iop->ofd, tp->cpu, dpp->buts_name); in open_ios()
1701 net_send_open(cl_fds[tp->cpu], tp->cpu, dpp->buts_name); in open_ios()
1910 if (fill_ofname(fname, sizeof(fname), NULL, dpp->buts_name, in create_output_files()
2052 dpp->ch->hostname, dpp->buts_name); in show_stats()
2057 fprintf(ofp, "=== %s ===\n", dpp->buts_name); in show_stats()
2409 dpp->buts_name = strdup(bnh->buts_name); in nc_add_dpp()
2410 dpp->path = strdup(bnh->buts_name); in nc_add_dpp()
2456 if (!strcmp(dpp->buts_name, bnh->buts_name)) in nc_find_dpp()
2541 ack_open_close(nc->fd, dpp->buts_name); in net_client_data()
2549 ack_open_close(nc->fd, dpp->buts_name); in net_client_data()