Home
last modified time | relevance | path

Searched refs:namespaces (Results 1 – 25 of 34) sorted by relevance

12

/tools/perf/util/
Dnamespaces.c40 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()
Dnamespaces.h22 struct namespaces { struct
28 struct namespaces *namespaces__new(struct perf_record_namespaces *event); argument
29 void namespaces__free(struct namespaces *namespaces);
Dthread.c82 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()
Dthread.h52 struct namespaces;
75 struct namespaces *thread__namespaces(struct thread *thread);
Dpython-ext-sources17 util/namespaces.c
Dtool.h48 namespaces, member
Dsynthetic-events.c216 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()
Devent.c162 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()
Dsession.c468 if (tool->namespaces == NULL) in perf_tool__fill_defaults()
469 tool->namespaces = process_event_stub; in perf_tool__fill_defaults()
674 event->namespaces.pid = bswap_32(event->namespaces.pid); in perf_event__namespaces_swap()
675 event->namespaces.tid = bswap_32(event->namespaces.tid); in perf_event__namespaces_swap()
676 event->namespaces.nr_namespaces = bswap_64(event->namespaces.nr_namespaces); in perf_event__namespaces_swap()
678 for (i = 0; i < event->namespaces.nr_namespaces; i++) { in perf_event__namespaces_swap()
679 struct perf_ns_link_info *ns = &event->namespaces.link_info[i]; in perf_event__namespaces_swap()
686 swap_sample_id_all(event, &event->namespaces.link_info[i]); in perf_event__namespaces_swap()
1432 return tool->namespaces(tool, event, sample, machine); in machines__deliver_event()
Dperf_event_attr_fprintf.c130 PRINT_ATTRf(namespaces, p_unsigned); in perf_event_attr__fprintf()
Dmachine.c627 event->namespaces.pid, in machine__process_namespaces_event()
628 event->namespaces.tid); in machine__process_namespaces_event()
631 WARN_ONCE(event->namespaces.nr_namespaces > NR_NAMESPACES, in machine__process_namespaces_event()
635 WARN_ONCE(event->namespaces.nr_namespaces < NR_NAMESPACES, in machine__process_namespaces_event()
643 thread__set_namespaces(thread, sample->time, &event->namespaces)) { in machine__process_namespaces_event()
DBuild59 perf-y += namespaces.o
/tools/testing/selftests/net/forwarding/
DREADME4 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
/tools/testing/selftests/net/
Dpmtu.sh674 setup namespaces routing || return 2
772 setup namespaces routing ${type}4 || return 2
776 setup namespaces routing ${type}6 || return 2
846 setup namespaces routing ${encap}${outer_family}${inner_family} || return 2
921 setup namespaces veth vti4 xfrm4 || return 2
951 setup namespaces veth vti6 xfrm6 || return 2
981 setup namespaces veth vti4 || return 2
993 setup namespaces veth vti6 || return 2
1005 setup namespaces || return 2
1043 setup namespaces || return 2
[all …]
/tools/perf/tests/
Dattr.c132 WRITE_ASS(namespaces, "d"); in store_event()
/tools/perf/lib/include/perf/
Devent.h354 struct perf_record_namespaces namespaces; member
/tools/include/uapi/linux/
Dperf_event.h377 namespaces : 1, /* include namespaces data */ member
/tools/perf/
Dbuiltin-mem.c400 .namespaces = perf_event__process_namespaces, in cmd_mem()
Dbuiltin-annotate.c483 .namespaces = perf_event__process_namespaces, in cmd_annotate()
Dbuiltin-script.c2133 thread = machine__findnew_thread(machine, event->namespaces.pid, in process_namespaces_event()
2134 event->namespaces.tid); in process_namespaces_event()
2146 sample->tid = event->namespaces.tid; in process_namespaces_event()
2147 sample->pid = event->namespaces.pid; in process_namespaces_event()
2504 script->tool.namespaces = process_namespaces_event; in __cmd_script()
3429 .namespaces = perf_event__process_namespaces, in cmd_script()
Dbuiltin-kvm.c1086 .namespaces = perf_event__process_namespaces, in read_events()
1391 kvm->tool.namespaces = perf_event__process_namespaces; in kvm_events_live()
Dbuiltin-lock.c866 .namespaces = perf_event__process_namespaces, in __cmd_report()
Dbuiltin-inject.c675 inject->tool.namespaces = perf_event__repipe_namespaces; in __cmd_inject()
Dbuiltin-record.c1528 event = malloc(sizeof(event->namespaces) + in __cmd_record()
2100 .namespaces = perf_event__process_namespaces,
/tools/perf/Documentation/
Dperf-top.txt265 --namespaces::

12