Searched refs:namespaces (Results 1 - 25 of 45) sorted by relevance

12

/linux-master/tools/perf/util/
H A Dnamespaces.h24 struct namespaces { struct
30 struct namespaces *namespaces__new(struct perf_record_namespaces *event);
31 void namespaces__free(struct namespaces *namespaces);
H A Dnamespaces.c7 #include "namespaces.h"
40 struct namespaces *namespaces__new(struct perf_record_namespaces *event)
42 struct namespaces *namespaces; local
46 namespaces = zalloc(sizeof(struct namespaces) + link_info_size);
47 if (!namespaces)
50 namespaces->end_time = -1;
53 memcpy(namespaces->link_info, event->link_info, link_info_size);
55 return namespaces;
58 namespaces__free(struct namespaces *namespaces) argument
[all...]
H A Dthread.c13 #include "namespaces.h"
94 struct namespaces *namespaces, *tmp_namespaces; local
104 list_for_each_entry_safe(namespaces, tmp_namespaces,
106 list_del_init(&namespaces->list);
107 namespaces__free(namespaces);
149 static struct namespaces *__thread__namespaces(struct thread *thread)
154 return list_first_entry(thread__namespaces_list(thread), struct namespaces, list);
157 struct namespaces *thread__namespaces(struct thread *thread)
159 struct namespaces *n
[all...]
H A Dtool.h49 namespaces, member in struct:perf_tool
H A Dthread.h69 struct namespaces;
89 struct namespaces *thread__namespaces(struct thread *thread);
H A Dsynthetic-events.c14 #include "util/namespaces.h"
233 memset(&event->namespaces, 0, (sizeof(event->namespaces) +
237 event->namespaces.pid = tgid;
238 event->namespaces.tid = pid;
240 event->namespaces.nr_namespaces = NR_NAMESPACES;
242 ns_link_info = event->namespaces.link_info;
244 for (idx = 0; idx < event->namespaces.nr_namespaces; idx++)
248 event->namespaces.header.type = PERF_RECORD_NAMESPACES;
250 event->namespaces
[all...]
H A Devent.c27 #include "util/namespaces.h"
192 ns_link_info = event->namespaces.link_info;
193 nr_namespaces = event->namespaces.nr_namespaces;
196 event->namespaces.pid,
197 event->namespaces.tid,
H A Dsession.c493 if (tool->namespaces == NULL)
494 tool->namespaces = process_event_stub;
728 event->namespaces.pid = bswap_32(event->namespaces.pid);
729 event->namespaces.tid = bswap_32(event->namespaces.tid);
730 event->namespaces.nr_namespaces = bswap_64(event->namespaces.nr_namespaces);
732 for (i = 0; i < event->namespaces.nr_namespaces; i++) {
733 struct perf_ns_link_info *ns = &event->namespaces
[all...]
H A Dperf_event_attr_fprintf.c302 PRINT_ATTRf(namespaces, p_unsigned);
/linux-master/scripts/
H A Dnsdeps36 local namespaces="$*"
39 for ns in $namespaces; do
/linux-master/include/net/
H A Dioam6.h44 struct rhashtable namespaces; member in struct:ioam6_pernet_data
/linux-master/fs/proc/
H A DMakefile27 proc-y += namespaces.o
/linux-master/tools/testing/selftests/drivers/net/bonding/
H A Dlag_lib.sh77 # between the namespaces
91 local namespaces="lag_node1 lag_node2"
93 # create namespaces
94 for n in ${namespaces}; do
98 # wire up namespaces
107 NAMESPACES="${namespaces}"
110 # cleanup all lag related namespaces
/linux-master/tools/testing/selftests/net/
H A Dpmtu.sh10 # Set up two namespaces, A and B, with two paths between them over routers
11 # R1 and R2 (also implemented with namespaces), with different MTUs:
72 # Set up three namespaces, A, B, and C, with routing between A and B over
91 # Set up two namespaces, B, and C, with routing between the init namespace
124 # namespaces with matching endpoints. Check that route exception is not
142 # namespaces with matching endpoints. Check that route exception is
155 # Set up vti4 tunnel on top of veth, in two namespaces with matching
1020 setup namespaces routing || return $ksft_skip
1114 setup namespaces policy_routing || return $ksft_skip
1159 setup namespaces policy_routin
[all...]
/linux-master/net/ipv6/
H A Dioam6.c124 ns = rhashtable_lookup_fast(&nsdata->namespaces, &id, rht_ns_params);
151 err = rhashtable_lookup_insert_fast(&nsdata->namespaces, &ns->head,
177 ns = rhashtable_lookup_fast(&nsdata->namespaces, &id, rht_ns_params);
186 err = rhashtable_remove_fast(&nsdata->namespaces, &ns->head,
259 rhashtable_walk_enter(&nsdata->namespaces, iter);
517 ns = rhashtable_lookup_fast(&nsdata->namespaces, &ns_id, rht_ns_params);
694 return rhashtable_lookup_fast(&nsdata->namespaces, &id, rht_ns_params);
974 err = rhashtable_init(&nsdata->namespaces, &rht_ns_params);
985 rhashtable_destroy(&nsdata->namespaces);
996 rhashtable_free_and_destroy(&nsdata->namespaces, ioam6_free_n
[all...]
/linux-master/tools/perf/tests/
H A Dattr.c133 WRITE_ASS(namespaces, "d");
/linux-master/drivers/nvme/target/
H A Dcore.c129 xa_for_each(&subsys->namespaces, idx, cur)
441 req->ns = xa_load(&nvmet_req_subsys(req)->namespaces, nsid);
478 pr_err("peer-to-peer DMA is not supported by non-block device namespaces\n");
574 pr_info("cannot enable both passthru and regular namespaces for a single subsystem");
606 ret = xa_insert(&subsys->namespaces, ns->nsid, ns, GFP_KERNEL);
640 xa_erase(&ns->subsys->namespaces, ns->nsid);
650 * Now that we removed the namespaces from the lookup list, we
654 * use call_rcu here as we need to ensure the namespaces have
1344 xa_for_each(&ctrl->subsys->namespaces, idx, ns)
1619 xa_init(&subsys->namespaces);
[all...]
H A Dadmin-cmd.c113 xa_for_each(&ctrl->subsys->namespaces, idx, ns) {
262 xa_for_each(&ctrl->subsys->namespaces, idx, ns)
596 xa_for_each(&ctrl->subsys->namespaces, idx, ns) {
/linux-master/tools/lib/perf/include/perf/
H A Devent.h483 struct perf_record_namespaces namespaces; member in union:perf_event
/linux-master/drivers/nvme/host/
H A Dioctl.c700 * deadlock when deleting namespaces using the passthrough interface.
788 if (list_empty(&ctrl->namespaces)) {
793 ns = list_first_entry(&ctrl->namespaces, struct nvme_ns, list);
794 if (ns != list_last_entry(&ctrl->namespaces, struct nvme_ns, list)) {
796 "NVME_IOCTL_IO_CMD not supported when multiple namespaces present!\n");
H A Dmultipath.c155 list_for_each_entry(ns, &ctrl->namespaces, list) {
198 list_for_each_entry(ns, &ctrl->namespaces, list) {
529 * We also do this for private namespaces as the namespace sharing flag
694 list_for_each_entry(ns, &ctrl->namespaces, list) {
H A Dcore.c1180 * For simplicity, IO to all namespaces is quiesced even if the command
2134 * I/O to namespaces with metadata except when the namespace supports
3417 * Private namespaces can share NSIDs under some conditions.
3418 * In that case we can't use the same ns_head for namespaces
3614 * We've found two different namespaces on two different
3684 "Support for shared namespaces without CONFIG_NVME_MULTIPATH is deprecated and will be removed in Linux 6.0\n.");
3705 list_for_each_entry(ns, &ctrl->namespaces, list) {
3727 list_for_each_entry_reverse(tmp, &ns->ctrl->namespaces, list) {
3733 list_add(&ns->list, &ns->ctrl->namespaces);
3771 * just those that represent shared namespaces need
[all...]
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dtc_redirect.c70 static const char * const namespaces[] = {NS_SRC, NS_FWD, NS_DST, NULL}; variable
90 const char * const *ns = namespaces;
104 const char * const *ns = namespaces;
1150 /* Start a L3 TUN/TAP tunnel between the src and dst namespaces.
1256 if (ASSERT_OK(netns_setup_namespaces("add"), "setup namespaces")) { \
/linux-master/include/uapi/linux/
H A Dperf_event.h453 namespaces : 1, /* include namespaces data */ member in struct:perf_event_attr
835 NR_NAMESPACES, /* number of available namespaces */
/linux-master/tools/include/uapi/linux/
H A Dperf_event.h453 namespaces : 1, /* include namespaces data */ member in struct:perf_event_attr
835 NR_NAMESPACES, /* number of available namespaces */

Completed in 265 milliseconds

12