/Linux-v5.4/tools/perf/util/ |
D | namespaces.c | 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 void namespaces__free(struct namespaces *namespaces) in namespaces__free() argument 60 free(namespaces); in namespaces__free()
|
D | namespaces.h | 22 struct namespaces { struct 28 struct namespaces *namespaces__new(struct perf_record_namespaces *event); argument 29 void namespaces__free(struct namespaces *namespaces);
|
D | thread.c | 82 struct namespaces *namespaces, *tmp_namespaces; in thread__delete() local 94 list_for_each_entry_safe(namespaces, tmp_namespaces, in thread__delete() 96 list_del_init(&namespaces->list); in thread__delete() 97 namespaces__free(namespaces); in thread__delete() 152 static struct namespaces *__thread__namespaces(const struct thread *thread) in __thread__namespaces() 157 return list_first_entry(&thread->namespaces_list, struct namespaces, list); in __thread__namespaces() 160 struct namespaces *thread__namespaces(struct thread *thread) in thread__namespaces() 162 struct namespaces *ns; in thread__namespaces() 174 struct namespaces *new, *curr = __thread__namespaces(thread); in __thread__set_namespaces()
|
D | thread.h | 52 struct namespaces; 75 struct namespaces *thread__namespaces(struct thread *thread);
|
D | synthetic-events.c | 216 memset(&event->namespaces, 0, (sizeof(event->namespaces) + in perf_event__synthesize_namespaces() 220 event->namespaces.pid = tgid; in perf_event__synthesize_namespaces() 221 event->namespaces.tid = pid; in perf_event__synthesize_namespaces() 223 event->namespaces.nr_namespaces = NR_NAMESPACES; in perf_event__synthesize_namespaces() 225 ns_link_info = event->namespaces.link_info; in perf_event__synthesize_namespaces() 227 for (idx = 0; idx < event->namespaces.nr_namespaces; idx++) in perf_event__synthesize_namespaces() 231 event->namespaces.header.type = PERF_RECORD_NAMESPACES; in perf_event__synthesize_namespaces() 233 event->namespaces.header.size = (sizeof(event->namespaces) + in perf_event__synthesize_namespaces() 581 namespaces_event = malloc(sizeof(namespaces_event->namespaces) + in perf_event__synthesize_thread_map() 663 namespaces_event = malloc(sizeof(namespaces_event->namespaces) + in __perf_event__synthesize_threads()
|
D | event.c | 162 ns_link_info = event->namespaces.link_info; in perf_event__fprintf_namespaces() 163 nr_namespaces = event->namespaces.nr_namespaces; in perf_event__fprintf_namespaces() 166 event->namespaces.pid, in perf_event__fprintf_namespaces() 167 event->namespaces.tid, in perf_event__fprintf_namespaces()
|
D | tool.h | 48 namespaces, member
|
D | python-ext-sources | 17 util/namespaces.c
|
D | session.c | 468 if (tool->namespaces == NULL) in perf_tool__fill_defaults() 469 tool->namespaces = process_event_stub; in perf_tool__fill_defaults() 673 event->namespaces.pid = bswap_32(event->namespaces.pid); in perf_event__namespaces_swap() 674 event->namespaces.tid = bswap_32(event->namespaces.tid); in perf_event__namespaces_swap() 675 event->namespaces.nr_namespaces = bswap_64(event->namespaces.nr_namespaces); in perf_event__namespaces_swap() 677 for (i = 0; i < event->namespaces.nr_namespaces; i++) { in perf_event__namespaces_swap() 678 struct perf_ns_link_info *ns = &event->namespaces.link_info[i]; in perf_event__namespaces_swap() 685 swap_sample_id_all(event, &event->namespaces.link_info[i]); in perf_event__namespaces_swap() 1431 return tool->namespaces(tool, event, sample, machine); in machines__deliver_event()
|
/Linux-v5.4/Documentation/admin-guide/sysctl/ |
D | user.rst | 15 limits on the number of namespaces and other objects that have 29 who created user namespaces the creation of the object happens 30 in (user namespaces can be nested) and verified to be below the per user 31 limits in the user namespaces of those users. 41 The maximum number of cgroup namespaces that any user in the current 47 The maximum number of ipc namespaces that any user in the current 53 The maximum number of mount namespaces that any user in the current 59 The maximum number of network namespaces that any user in the 65 The maximum number of pid namespaces that any user in the current 71 The maximum number of user namespaces that any user in the current [all …]
|
/Linux-v5.4/Documentation/admin-guide/namespaces/ |
D | compatibility-list.rst | 6 may have when creating tasks living in different namespaces. 10 in different other namespaces (the rows): 23 1. Both the IPC and the PID namespaces provide IDs to address 33 2. Intentionally, two equal user IDs in different user namespaces 39 The same is true for the IPC namespaces being shared - two users 40 from different user namespaces should not access the same IPC objects
|
D | resource-control.rst | 7 of processes is allowed to switch user ids. With user namespaces 12 kernels that enable user namespaces, and it is further recommended
|
/Linux-v5.4/tools/testing/selftests/net/forwarding/ |
D | README | 4 One of the nice things about network namespaces is that they allow one 7 Unfortunately, these namespaces can not be used with actual switching 8 ASICs, as their ports can not be migrated to other network namespaces 10 L1-separation provided by namespaces. 26 The VRFs act as lightweight namespaces representing hosts connected to
|
/Linux-v5.4/Documentation/core-api/ |
D | symbol-namespaces.rst | 24 their exported symbols into separate namespaces. That is useful for 27 kernel. As of today, modules that make use of symbols exported into namespaces, 60 Defining namespaces for all symbols of a subsystem can be very verbose and may 90 In order to use symbols that are exported into namespaces, kernel modules need 91 to explicitly import these namespaces. Otherwise the kernel might reject to 93 for the namespaces it uses symbols from. E.g. a module using the 100 This has the side effect, that the imported namespaces of a module can be 128 Missing namespaces imports can easily be detected at build time. In fact,
|
D | index.rst | 41 symbol-namespaces
|
/Linux-v5.4/tools/testing/selftests/net/ |
D | pmtu.sh | 665 setup namespaces routing || return 2 763 setup namespaces routing ${type}4 || return 2 767 setup namespaces routing ${type}6 || return 2 837 setup namespaces routing ${encap}${outer_family}${inner_family} || return 2 912 setup namespaces veth vti4 xfrm4 || return 2 942 setup namespaces veth vti6 xfrm6 || return 2 972 setup namespaces veth vti4 || return 2 984 setup namespaces veth vti6 || return 2 996 setup namespaces || return 2 1034 setup namespaces || return 2 [all …]
|
/Linux-v5.4/Documentation/admin-guide/LSM/ |
D | SafeSetID.rst | 66 Use user namespaces 73 Unfortunately, it is not generally feasible to use user namespaces in isolation, 76 entity. For example, Linux has the notion that network namespaces are owned by 85 configurations. Using user namespaces in isolation causes problems regarding 86 other system interactions, including use of pid namespaces and device creation.
|
/Linux-v5.4/Documentation/filesystems/ |
D | sysfs-tagging.txt | 12 namespaces to see the same interface that is currently presented in 32 the contents of other namespaces' sysfs mounts. Therefore, when a
|
/Linux-v5.4/Documentation/networking/ |
D | netfilter-sysctl.txt | 10 namespaces. This variable is only accessible from init_net.
|
D | ipvlan.txt | 11 driver in conjunction with network namespaces and not sure if there is use case 120 (a) Create two network namespaces - ns0, ns1 128 (c) Assign slaves to the respective network namespaces
|
/Linux-v5.4/drivers/nvme/target/ |
D | core.c | 120 if (list_empty(&subsys->namespaces)) in nvmet_max_nsid() 123 ns = list_last_entry(&subsys->namespaces, struct nvmet_ns, dev_link); in nvmet_max_nsid() 391 list_for_each_entry_rcu(ns, &ctrl->subsys->namespaces, dev_link) { in __nvmet_find_namespace() 553 if (list_empty(&subsys->namespaces)) { in nvmet_ns_enable() 554 list_add_tail_rcu(&ns->dev_link, &subsys->namespaces); in nvmet_ns_enable() 558 list_for_each_entry_rcu(old, &subsys->namespaces, dev_link) { in nvmet_ns_enable() 1177 list_for_each_entry_rcu(ns, &ctrl->subsys->namespaces, dev_link) in nvmet_setup_p2p_ns_map() 1425 INIT_LIST_HEAD(&subsys->namespaces); in nvmet_subsys_alloc() 1437 WARN_ON_ONCE(!list_empty(&subsys->namespaces)); in nvmet_subsys_free()
|
/Linux-v5.4/Documentation/driver-api/nvdimm/ |
D | nvdimm.rst | 220 reasons to allow multiple BLK namespaces per REGION is so that each 263 reclaimed space we create two BLK-aperture "namespaces" from REGION2 and 270 named "pm1.0", the rest is reclaimed in 4 BLK-aperture namespaces (for 276 offset (b) are also included in the "blk4.0" and "blk5.0" namespaces. 277 Note, that this example shows that BLK-aperture namespaces don't need to 584 2. A region with zero child-namespaces is a possible configuration. For 627 the resulting namespaces. The output from module resolution is more 745 Idle namespaces are automatically created by the kernel if a given 766 /* unlike pmem namespaces, blk namespaces have a sector size */ 781 http://www.nvmexpress.org/specifications/), and NFIT namespaces are [all …]
|
/Linux-v5.4/fs/proc/ |
D | Makefile | 27 proc-y += namespaces.o
|
/Linux-v5.4/drivers/nvdimm/ |
D | Kconfig | 12 namespaces (/dev/pmemX) and BLK (sliding mmio window(s)) 13 namespaces (/dev/ndblkX.Y). A PMEM namespace refers to a
|
/Linux-v5.4/drivers/nvme/host/ |
D | core.c | 1344 list_for_each_entry(ns, &ctrl->namespaces, list) in nvme_update_formats() 2930 if (list_empty(&ctrl->namespaces)) { in nvme_dev_user_cmd() 2935 ns = list_first_entry(&ctrl->namespaces, struct nvme_ns, list); in nvme_dev_user_cmd() 2936 if (ns != list_last_entry(&ctrl->namespaces, struct nvme_ns, list)) { in nvme_dev_user_cmd() 3431 list_for_each_entry(ns, &ctrl->namespaces, list) { in nvme_find_get_ns() 3545 list_add_tail(&ns->list, &ctrl->namespaces); in nvme_alloc_ns() 3624 list_for_each_entry_safe(ns, next, &ctrl->namespaces, list) { in nvme_remove_invalid_namespaces() 3742 list_sort(NULL, &ctrl->namespaces, ns_cmp); in nvme_scan_work() 3776 list_splice_init(&ctrl->namespaces, &ns_list); in nvme_remove_namespaces() 4028 INIT_LIST_HEAD(&ctrl->namespaces); in nvme_init_ctrl() [all …]
|