Home
last modified time | relevance | path

Searched refs:namespaces (Results 1 – 25 of 39) 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.h24 struct namespaces { struct
30 struct namespaces *namespaces__new(struct perf_record_namespaces *event); argument
31 void namespaces__free(struct namespaces *namespaces);
Dthread.c90 struct namespaces *namespaces, *tmp_namespaces; in thread__delete() local
100 list_for_each_entry_safe(namespaces, tmp_namespaces, in thread__delete()
102 list_del_init(&namespaces->list); in thread__delete()
103 namespaces__free(namespaces); in thread__delete()
145 static struct namespaces *__thread__namespaces(struct thread *thread) in __thread__namespaces()
150 return list_first_entry(thread__namespaces_list(thread), struct namespaces, list); in __thread__namespaces()
153 struct namespaces *thread__namespaces(struct thread *thread) in thread__namespaces()
155 struct namespaces *ns; in thread__namespaces()
167 struct namespaces *new, *curr = __thread__namespaces(thread); in __thread__set_namespaces()
Dtool.h49 namespaces, member
Dpython-ext-sources18 util/namespaces.c
Dthread.h76 struct namespaces;
96 struct namespaces *thread__namespaces(struct thread *thread);
Dsynthetic-events.c233 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.header.size = (sizeof(event->namespaces) + in perf_event__synthesize_namespaces()
861 namespaces_event = malloc(sizeof(namespaces_event->namespaces) + in perf_event__synthesize_thread_map()
944 namespaces_event = malloc(sizeof(namespaces_event->namespaces) + in __perf_event__synthesize_threads()
Devent.c192 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()
Dsession.c493 if (tool->namespaces == NULL) in perf_tool__fill_defaults()
494 tool->namespaces = process_event_stub; in perf_tool__fill_defaults()
728 event->namespaces.pid = bswap_32(event->namespaces.pid); in perf_event__namespaces_swap()
729 event->namespaces.tid = bswap_32(event->namespaces.tid); in perf_event__namespaces_swap()
730 event->namespaces.nr_namespaces = bswap_64(event->namespaces.nr_namespaces); in perf_event__namespaces_swap()
732 for (i = 0; i < event->namespaces.nr_namespaces; i++) { in perf_event__namespaces_swap()
733 struct perf_ns_link_info *ns = &event->namespaces.link_info[i]; in perf_event__namespaces_swap()
740 swap_sample_id_all(event, &event->namespaces.link_info[i]); in perf_event__namespaces_swap()
1572 return tool->namespaces(tool, event, sample, machine); in machines__deliver_event()
Ddata-convert-json.c324 .namespaces = perf_event__process_namespaces, in bt_convert__perf2json()
Dperf_event_attr_fprintf.c313 PRINT_ATTRf(namespaces, p_unsigned); in perf_event_attr__fprintf()
Dmachine.c778 event->namespaces.pid, in machine__process_namespaces_event()
779 event->namespaces.tid); in machine__process_namespaces_event()
782 WARN_ONCE(event->namespaces.nr_namespaces > NR_NAMESPACES, in machine__process_namespaces_event()
786 WARN_ONCE(event->namespaces.nr_namespaces < NR_NAMESPACES, in machine__process_namespaces_event()
794 thread__set_namespaces(thread, sample->time, &event->namespaces)) { in machine__process_namespaces_event()
DBuild70 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.sh1020 setup namespaces routing || return $ksft_skip
1114 setup namespaces policy_routing || return $ksft_skip
1159 setup namespaces policy_routing || return $ksft_skip
1207 setup namespaces routing ${type}4 || return $ksft_skip
1211 setup namespaces routing ${type}6 || return $ksft_skip
1282 setup namespaces routing bridge bridged_${type}4 || return $ksft_skip
1286 setup namespaces routing bridge bridged_${type}6 || return $ksft_skip
1401 setup namespaces routing ovs_bridge ovs_${type}4 || return $ksft_skip
1405 setup namespaces routing ovs_bridge ovs_${type}6 || return $ksft_skip
1487 setup namespaces routing ${encap}${outer_family}${inner_family} || return $ksft_skip
[all …]
/tools/testing/selftests/drivers/net/bonding/
Dlag_lib.sh91 local namespaces="lag_node1 lag_node2"
94 for n in ${namespaces}; do
107 NAMESPACES="${namespaces}"
/tools/testing/selftests/drivers/net/team/
Dlag_lib.sh91 local namespaces="lag_node1 lag_node2"
94 for n in ${namespaces}; do
107 NAMESPACES="${namespaces}"
/tools/perf/tests/attr/
Dsystem-wide-dummy44 namespaces=0
/tools/perf/tests/
Dattr.c133 WRITE_ASS(namespaces, "d"); in store_event()
/tools/lib/perf/include/perf/
Devent.h483 struct perf_record_namespaces namespaces; member
/tools/testing/selftests/bpf/prog_tests/
Dtc_redirect.c69 static const char * const namespaces[] = {NS_SRC, NS_FWD, NS_DST, NULL}; variable
89 const char * const *ns = namespaces; in netns_setup_namespaces()
103 const char * const *ns = namespaces; in netns_setup_namespaces_nofail()
/tools/perf/
Dbuiltin-mem.c461 .namespaces = perf_event__process_namespaces, in cmd_mem()
Dbuiltin-annotate.c511 .namespaces = perf_event__process_namespaces, in cmd_annotate()
Dbuiltin-kvm.c1609 .namespaces = perf_event__process_namespaces, in read_events()
1927 kvm->tool.namespaces = perf_event__process_namespaces; in kvm_events_live()
/tools/include/uapi/linux/
Dperf_event.h449 namespaces : 1, /* include namespaces data */ member

12