Home
last modified time | relevance | path

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

1234

/kernel/linux/linux-5.10/tools/perf/util/
H A Dnamespaces.c7 #include "namespaces.h"
40 struct namespaces *namespaces__new(struct perf_record_namespaces *event) in namespaces__new()
42 struct namespaces *namespaces; in namespaces__new() local
46 namespaces = zalloc(sizeof(struct namespaces) + link_info_size); in namespaces__new()
47 if (!namespaces) in namespaces__new()
50 namespaces->end_time = -1; in namespaces__new()
53 memcpy(namespaces->link_info, event->link_info, link_info_size); in namespaces__new()
55 return namespaces; in namespaces__new()
58 namespaces__free(struct namespaces *namespaces) namespaces__free() argument
[all...]
H A Dnamespaces.h22 struct namespaces { struct
28 struct namespaces *namespaces__new(struct perf_record_namespaces *event);
29 void namespaces__free(struct namespaces *namespaces);
H A Dthread.c13 #include "namespaces.h"
83 struct namespaces *namespaces, *tmp_namespaces; in thread__delete() local
95 list_for_each_entry_safe(namespaces, tmp_namespaces, in thread__delete()
97 list_del_init(&namespaces->list); in thread__delete()
98 namespaces__free(namespaces); in thread__delete()
154 static struct namespaces *__thread__namespaces(const struct thread *thread) in __thread__namespaces()
159 return list_first_entry(&thread->namespaces_list, struct namespaces, list); in __thread__namespaces()
162 struct namespaces *thread__namespaces(struct thread *thread) in thread__namespaces()
164 struct namespaces *n in thread__namespaces()
[all...]
H A Dthread.h65 struct namespaces;
88 struct namespaces *thread__namespaces(struct thread *thread);
H A Dsynthetic-events.c12 #include "util/namespaces.h"
217 memset(&event->namespaces, 0, (sizeof(event->namespaces) + in perf_event__synthesize_namespaces()
221 event->namespaces.pid = tgid; in perf_event__synthesize_namespaces()
222 event->namespaces.tid = pid; in perf_event__synthesize_namespaces()
224 event->namespaces.nr_namespaces = NR_NAMESPACES; in perf_event__synthesize_namespaces()
226 ns_link_info = event->namespaces.link_info; in perf_event__synthesize_namespaces()
228 for (idx = 0; idx < event->namespaces.nr_namespaces; idx++) in perf_event__synthesize_namespaces()
232 event->namespaces.header.type = PERF_RECORD_NAMESPACES; in perf_event__synthesize_namespaces()
234 event->namespaces in perf_event__synthesize_namespaces()
[all...]
H A Dtool.h48 namespaces, member
H A Dsession.c471 if (tool->namespaces == NULL) in perf_tool__fill_defaults()
472 tool->namespaces = process_event_stub; in perf_tool__fill_defaults()
699 event->namespaces.pid = bswap_32(event->namespaces.pid); in perf_event__namespaces_swap()
700 event->namespaces.tid = bswap_32(event->namespaces.tid); in perf_event__namespaces_swap()
701 event->namespaces.nr_namespaces = bswap_64(event->namespaces.nr_namespaces); in perf_event__namespaces_swap()
703 for (i = 0; i < event->namespaces.nr_namespaces; i++) { in perf_event__namespaces_swap()
704 struct perf_ns_link_info *ns = &event->namespaces in perf_event__namespaces_swap()
[all...]
H A Devent.c27 #include "util/namespaces.h"
165 ns_link_info = event->namespaces.link_info; in perf_event__fprintf_namespaces()
166 nr_namespaces = event->namespaces.nr_namespaces; in perf_event__fprintf_namespaces()
169 event->namespaces.pid, in perf_event__fprintf_namespaces()
170 event->namespaces.tid, in perf_event__fprintf_namespaces()
/kernel/linux/linux-6.6/tools/perf/util/
H A Dnamespaces.c7 #include "namespaces.h"
40 struct namespaces *namespaces__new(struct perf_record_namespaces *event) in namespaces__new()
42 struct namespaces *namespaces; in namespaces__new() local
46 namespaces = zalloc(sizeof(struct namespaces) + link_info_size); in namespaces__new()
47 if (!namespaces) in namespaces__new()
50 namespaces->end_time = -1; in namespaces__new()
53 memcpy(namespaces->link_info, event->link_info, link_info_size); in namespaces__new()
55 return namespaces; in namespaces__new()
58 namespaces__free(struct namespaces *namespaces) namespaces__free() argument
[all...]
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 Dthread.c13 #include "namespaces.h"
94 struct namespaces *namespaces, *tmp_namespaces; in thread__delete() local
104 list_for_each_entry_safe(namespaces, tmp_namespaces, in thread__delete()
106 list_del_init(&namespaces->list); in thread__delete()
107 namespaces__free(namespaces); in thread__delete()
149 static struct namespaces *__thread__namespaces(struct thread *thread) in __thread__namespaces()
154 return list_first_entry(thread__namespaces_list(thread), struct namespaces, list); in __thread__namespaces()
157 struct namespaces *thread__namespaces(struct thread *thread) in thread__namespaces()
159 struct namespaces *n in thread__namespaces()
[all...]
H A Dtool.h49 namespaces, member
H A Dthread.h67 struct namespaces;
87 struct namespaces *thread__namespaces(struct thread *thread);
H A Dsynthetic-events.c14 #include "util/namespaces.h"
233 memset(&event->namespaces, 0, (sizeof(event->namespaces) + in perf_event__synthesize_namespaces()
237 event->namespaces.pid = tgid; in perf_event__synthesize_namespaces()
238 event->namespaces.tid = pid; in perf_event__synthesize_namespaces()
240 event->namespaces.nr_namespaces = NR_NAMESPACES; in perf_event__synthesize_namespaces()
242 ns_link_info = event->namespaces.link_info; in perf_event__synthesize_namespaces()
244 for (idx = 0; idx < event->namespaces.nr_namespaces; idx++) in perf_event__synthesize_namespaces()
248 event->namespaces.header.type = PERF_RECORD_NAMESPACES; in perf_event__synthesize_namespaces()
250 event->namespaces in perf_event__synthesize_namespaces()
[all...]
H A Devent.c27 #include "util/namespaces.h"
192 ns_link_info = event->namespaces.link_info; in perf_event__fprintf_namespaces()
193 nr_namespaces = event->namespaces.nr_namespaces; in perf_event__fprintf_namespaces()
196 event->namespaces.pid, in perf_event__fprintf_namespaces()
197 event->namespaces.tid, in perf_event__fprintf_namespaces()
/kernel/linux/linux-6.6/net/ipv6/
H A Dioam6.c124 ns = rhashtable_lookup_fast(&nsdata->namespaces, &id, rht_ns_params); in ioam6_genl_addns()
151 err = rhashtable_lookup_insert_fast(&nsdata->namespaces, &ns->head, in ioam6_genl_addns()
177 ns = rhashtable_lookup_fast(&nsdata->namespaces, &id, rht_ns_params); in ioam6_genl_delns()
186 err = rhashtable_remove_fast(&nsdata->namespaces, &ns->head, in ioam6_genl_delns()
259 rhashtable_walk_enter(&nsdata->namespaces, iter); in ioam6_genl_dumpns_start()
517 ns = rhashtable_lookup_fast(&nsdata->namespaces, &ns_id, rht_ns_params); in ioam6_genl_ns_set_schema()
630 return rhashtable_lookup_fast(&nsdata->namespaces, &id, rht_ns_params); in ioam6_namespace()
910 err = rhashtable_init(&nsdata->namespaces, &rht_ns_params); in ioam6_net_init()
921 rhashtable_destroy(&nsdata->namespaces); in ioam6_net_init()
932 rhashtable_free_and_destroy(&nsdata->namespaces, ioam6_free_n in ioam6_net_exit()
[all...]
/kernel/linux/linux-6.6/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...]
/kernel/linux/linux-5.10/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:
63 # Set up three namespaces, A, B, and C, with routing between A and B over
82 # Set up two namespaces, B, and C, with routing between the init namespace
115 # namespaces with matching endpoints. Check that route exception is not
123 # namespaces with matching endpoints. Check that route exception is
129 # Set up vti4 tunnel on top of veth, in two namespaces with matching
899 setup namespaces routing || return 2
997 setup namespaces routing ${type}4 || return 2
1001 setup namespaces routin
[all...]
/kernel/linux/linux-6.6/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 and remove the bonding module
/kernel/linux/linux-6.6/tools/testing/selftests/drivers/net/team/
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 and remove the bonding module
/kernel/linux/linux-6.6/include/net/
H A Dioam6.h43 struct rhashtable namespaces; member
/kernel/linux/linux-5.10/fs/proc/
H A DMakefile27 proc-y += namespaces.o
/kernel/linux/linux-6.6/fs/proc/
H A DMakefile27 proc-y += namespaces.o
/kernel/linux/linux-5.10/drivers/nvme/target/
H A Dcore.c122 xa_for_each(&subsys->namespaces, idx, cur) in nvmet_max_nsid()
424 ns = xa_load(&ctrl->subsys->namespaces, le32_to_cpu(nsid)); in nvmet_find_namespace()
458 pr_err("peer-to-peer DMA is not supported by non-block device namespaces\n"); in nvmet_p2pmem_ns_enable()
555 pr_info("cannot enable both passthru and regular namespaces for a single subsystem"); in nvmet_ns_enable()
587 ret = xa_insert(&subsys->namespaces, ns->nsid, ns, GFP_KERNEL); in nvmet_ns_enable()
621 xa_erase(&ns->subsys->namespaces, ns->nsid); in nvmet_ns_disable()
631 * Now that we removed the namespaces from the lookup list, we in nvmet_ns_disable()
635 * use call_rcu here as we need to ensure the namespaces have in nvmet_ns_disable()
1284 xa_for_each(&ctrl->subsys->namespaces, idx, ns) in nvmet_setup_p2p_ns_map()
1528 xa_init(&subsys->namespaces); in nvmet_subsys_alloc()
[all...]
/kernel/linux/linux-6.6/drivers/nvme/target/
H A Dcore.c129 xa_for_each(&subsys->namespaces, idx, cur) in nvmet_max_nsid()
429 req->ns = xa_load(&nvmet_req_subsys(req)->namespaces, nsid); in nvmet_req_find_ns()
466 pr_err("peer-to-peer DMA is not supported by non-block device namespaces\n"); in nvmet_p2pmem_ns_enable()
562 pr_info("cannot enable both passthru and regular namespaces for a single subsystem"); in nvmet_ns_enable()
594 ret = xa_insert(&subsys->namespaces, ns->nsid, ns, GFP_KERNEL); in nvmet_ns_enable()
628 xa_erase(&ns->subsys->namespaces, ns->nsid); in nvmet_ns_disable()
638 * Now that we removed the namespaces from the lookup list, we in nvmet_ns_disable()
642 * use call_rcu here as we need to ensure the namespaces have in nvmet_ns_disable()
1331 xa_for_each(&ctrl->subsys->namespaces, idx, ns) in nvmet_setup_p2p_ns_map()
1601 xa_init(&subsys->namespaces); in nvmet_subsys_alloc()
[all...]

Completed in 20 milliseconds

1234