Home
last modified time | relevance | path

Searched refs:mod (Results 1 – 25 of 38) sorted by relevance

12

/tools/testing/selftests/livepatch/
Dfunctions.sh132 local mod="$1"
134 if [[ ! -f "test_modules/$mod.ko" ]]; then
135 die "Can't find \"test_modules/$mod.ko\", try \"make\""
138 if [[ $(modinfo "test_modules/$mod.ko" | awk '/^livepatch:/{print $NF}') == "Y" ]]; then
146 local mod="$1"; shift
148 local msg="% insmod test_modules/$mod.ko $*"
150 ret=$(insmod "test_modules/$mod.ko" "$@" 2>&1)
157 die "failed to load module $mod"
165 local mod="$1"; shift
167 is_livepatch_mod "$mod" &&
[all …]
Dtest-livepatch.sh127 for mod in $MOD_LIVEPATCH2 $MOD_LIVEPATCH3; do
128 load_lp "$mod"
146 for mod in $MOD_LIVEPATCH3 $MOD_LIVEPATCH2 $MOD_LIVEPATCH1; do
147 unload_lp "$mod"
/tools/perf/arch/powerpc/util/
Dskip-callchain-idx.c97 static Dwarf_Frame *get_eh_frame(Dwfl_Module *mod, Dwarf_Addr pc) in get_eh_frame() argument
104 cfi = dwfl_module_eh_cfi(mod, &bias); in get_eh_frame()
122 static Dwarf_Frame *get_dwarf_frame(Dwfl_Module *mod, Dwarf_Addr pc) in get_dwarf_frame() argument
129 cfi = dwfl_module_dwarf_cfi(mod, &bias); in get_dwarf_frame()
156 Dwfl_Module *mod; in check_return_addr() local
173 mod = dwfl_report_elf(dwfl, exec_file, exec_file, -1, in check_return_addr()
175 if (!mod) { in check_return_addr()
189 mod = dwfl_addrmodule(dwfl, pc); in check_return_addr()
190 if (!mod) { in check_return_addr()
199 frame = get_eh_frame(mod, pc); in check_return_addr()
[all …]
/tools/perf/util/
Dunwind-libdw.c24 static int __find_debuginfo(Dwfl_Module *mod __maybe_unused, void **userdata, in __find_debuginfo()
47 Dwfl_Module *mod; in __report_module() local
74 mod = dwfl_addrmodule(ui->dwfl, ip); in __report_module()
75 if (mod) { in __report_module()
78 dwfl_module_info(mod, NULL, &s, NULL, NULL, NULL, NULL, NULL); in __report_module()
80 mod = NULL; in __report_module()
83 if (!mod) { in __report_module()
87 mod = dwfl_report_elf(ui->dwfl, dso__short_name(dso), filename, -1, in __report_module()
90 if (!mod) { in __report_module()
94 mod = dwfl_report_elf(ui->dwfl, dso__short_name(dso), filename, -1, in __report_module()
[all …]
Ddebuginfo.c55 dbg->mod = dwfl_report_offline(dbg->dwfl, "", "", fd); in debuginfo__init_offline_dwarf()
56 if (!dbg->mod) in debuginfo__init_offline_dwarf()
59 dbg->dbg = dwfl_module_getdwarf(dbg->mod, &dbg->bias); in debuginfo__init_offline_dwarf()
63 dwfl_module_build_id(dbg->mod, &dbg->build_id, &dummy); in debuginfo__init_offline_dwarf()
152 elf = dwfl_module_getelf(dbg->mod, &dbg->bias); in debuginfo__get_text_offset()
157 n = dwfl_module_relocations(dbg->mod); in debuginfo__get_text_offset()
162 p = dwfl_module_relocation_info(dbg->mod, i, &shndx); in debuginfo__get_text_offset()
Dprobe-finder.h81 Dwfl_Module *mod; /* For solving symbols */ member
89 Dwfl_Module *mod; /* For solving symbols */ member
Dparse-events.l164 struct parse_events_modifier mod = { .precise = 0, }; in modifiers() local
169 if (mod.field) { \ in modifiers()
173 mod.field = true; \ in modifiers()
184 mod.precise++; in modifiers()
195 if (mod.precise > 3) { in modifiers()
218 yylval->mod = mod; in modifiers()
Ddebuginfo.h15 Dwfl_Module *mod; member
/tools/testing/selftests/livepatch/test_modules/
Dtest_klp_callbacks_demo2.c23 if (obj->mod) in callback_info()
24 pr_info("%s: %s -> %s\n", callback, obj->mod->name, in callback_info()
25 module_state[obj->mod->state]); in callback_info()
73 .mod = THIS_MODULE,
Dtest_klp_callbacks_demo.c23 if (obj->mod) in callback_info()
24 pr_info("%s: %s -> %s\n", callback, obj->mod->name, in callback_info()
25 module_state[obj->mod->state]); in callback_info()
103 .mod = THIS_MODULE,
Dtest_klp_state.c25 if (obj->mod) in callback_info()
26 pr_info("%s: %s -> %s\n", callback, obj->mod->name, in callback_info()
27 module_state[obj->mod->state]); in callback_info()
142 .mod = THIS_MODULE,
Dtest_klp_state2.c25 if (obj->mod) in callback_info()
26 pr_info("%s: %s -> %s\n", callback, obj->mod->name, in callback_info()
27 module_state[obj->mod->state]); in callback_info()
171 .mod = THIS_MODULE,
Dtest_klp_livepatch.c33 .mod = THIS_MODULE,
Dtest_klp_atomic_replace.c37 .mod = THIS_MODULE,
/tools/testing/selftests/bpf/progs/
Dbpf_mod_race.c84 int BPF_PROG(fexit_init_module, struct module *mod, int ret) in BPF_PROG() argument
94 int BPF_PROG(fexit_module_get, const struct btf *btf, struct module *mod) in BPF_PROG() argument
96 res_try_get_module = !!mod; in BPF_PROG()
/tools/testing/selftests/bpf/bpf_testmod/
D.gitignore1 *.mod
2 *.mod.c
/tools/power/cpupower/debug/kernel/
DMakefile15 - rm -rf *.o *.ko .*.cmd .*.mod.* *.mod.c
/tools/arch/x86/lib/
Dinsn.c363 insn_byte_t pfx_id, mod; in insn_get_modrm() local
374 mod = get_next(insn_byte_t, insn); in insn_get_modrm()
375 insn_field_set(modrm, mod, 1); in insn_get_modrm()
378 insn->attr = inat_get_group_attribute(mod, pfx_id, in insn_get_modrm()
478 insn_byte_t mod, rm, base; in insn_get_displacement() local
506 mod = X86_MODRM_MOD(insn->modrm.value); in insn_get_displacement()
509 if (mod == 3) in insn_get_displacement()
511 if (mod == 1) { in insn_get_displacement()
515 if ((mod == 0 && rm == 6) || mod == 2) { in insn_get_displacement()
520 if ((mod == 0 && rm == 5) || mod == 2 || in insn_get_displacement()
[all …]
/tools/virtio/
DMakefile2 all: test mod
23 mod: target
51 .PHONY: all test mod clean vhost oot oot-clean oot-build
/tools/testing/selftests/bpf/prog_tests/
Dverify_pkcs7_sig.c187 void *mod; in populate_data_item_mod() local
224 mod = mmap(NULL, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0); in populate_data_item_mod()
228 if (mod == MAP_FAILED) in populate_data_item_mod()
231 if (strncmp(mod + modlen - marker_len, MODULE_SIG_STRING, marker_len)) { in populate_data_item_mod()
238 memcpy(&ms, mod + (modlen - sizeof(ms)), sizeof(ms)); in populate_data_item_mod()
248 memcpy(data_item->data, mod, modlen); in populate_data_item_mod()
256 memcpy(data_item->sig, mod + modlen, sig_len); in populate_data_item_mod()
260 munmap(mod, st.st_size); in populate_data_item_mod()
/tools/perf/scripts/python/Perf-Trace-Util/
DContext.c224 PyObject *mod; in PyInit_perf_trace_context() local
226 mod = PyModule_Create(&moduledef); in PyInit_perf_trace_context()
228 PyObject_SetAttrString(mod, "perf_script_context", Py_None); in PyInit_perf_trace_context()
230 return mod; in PyInit_perf_trace_context()
/tools/iio/
Diio_event_monitor.c146 enum iio_modifier mod = IIO_EVENT_CODE_EXTRACT_MODIFIER(event->id); in event_is_known() local
193 switch (mod) { in event_is_known()
275 enum iio_modifier mod = IIO_EVENT_CODE_EXTRACT_MODIFIER(event->id); in print_event() local
292 if (mod != IIO_NO_MOD) in print_event()
293 printf("(%s)", iio_modifier_names[mod]); in print_event()
/tools/testing/selftests/net/
Dreuseport_bpf.c92 static void attach_ebpf(int fd, uint16_t mod) in attach_ebpf() argument
104 { BPF_ALU64 | BPF_MOD | BPF_K, BPF_REG_0, 0, 0, mod }, in attach_ebpf()
131 static void attach_cbpf(int fd, uint16_t mod) in attach_cbpf() argument
137 { BPF_ALU | BPF_MOD, 0, 0, mod }, in attach_cbpf()
150 static void build_recv_group(const struct test_params p, int fd[], uint16_t mod, in build_recv_group() argument
168 attach_bpf(fd[i], mod); in build_recv_group()
211 static void test_recv_order(const struct test_params p, int fd[], int mod) in test_recv_order() argument
265 expected = (sport % mod); in test_recv_order()
Dtest_ingress_egress_chaining.sh16 for mod in $needed_mods; do
17 modinfo $mod &>/dev/null || { echo "SKIP: Need act_mirred module"; exit $ksft_skip; }
/tools/arch/x86/tools/
Dgen-insn-attr-x86.awk244 function convert_operands(count,opnd, i,j,imm,mod)
247 mod = null
260 mod = "INAT_MODRM"
262 return add_flags(imm, mod)

12