Home
last modified time | relevance | path

Searched refs:entry_number (Results 1 – 24 of 24) sorted by relevance

/external/strace/
Dldt.c49 unsigned *entry_number = get_tcb_priv_data(tcp); in print_user_desc() local
53 if (umove_or_printaddr(tcp, addr, &desc.entry_number)) in print_user_desc()
62 if (entry_number) in print_user_desc()
78 PRINT_FIELD_ID("{", desc, entry_number); in print_user_desc()
85 entry_number = xmalloc(sizeof(*entry_number)); in print_user_desc()
87 *entry_number = desc.entry_number; in print_user_desc()
88 set_tcb_priv_data(tcp, entry_number, free); in print_user_desc()
98 if (entry_number) { in print_user_desc()
99 if (*entry_number != desc.entry_number) { in print_user_desc()
100 if ((int) desc.entry_number == -1) in print_user_desc()
[all …]
DChangeLog9428 Since there is possibility now that strace read only entry_number field
9437 Allow separate printing of struct user_desc.entry_number.
9438 Kernel reads only entry_number field in the beginning of the
9445 * ldt.c (print_user_desc): Add filter argument. Print entry_number on
9447 entry_number field in order to print the updated value in the impossible
9448 case of changed entry_number value.
/external/strace/tests-mx32/
Dxet_thread_area_x86.c87 printf(" (entry_number=%u)", ptr->entry_number); in set_thread_area()
124 assert(ptr->entry_number == expected_ptr->entry_number); in get_thread_area()
144 (int) ptr->entry_number == -1 ? "-1" : NULL); in get_thread_area()
183 ta1->entry_number = -1; in main()
203 ta2->entry_number = 3141592653U; in main()
207 ta2->entry_number = -1; in main()
211 ta2->entry_number = ta1->entry_number; in main()
212 assert(set_rc == 0 || (int) ta2->entry_number == -1); in main()
Dprint_user_desc.c50 printf("{entry_number=%u", us->entry_number); in print_user_desc()
Dmodify_ldt.c118 us->entry_number = -1; in main()
/external/strace/tests-m32/
Dxet_thread_area_x86.c87 printf(" (entry_number=%u)", ptr->entry_number); in set_thread_area()
124 assert(ptr->entry_number == expected_ptr->entry_number); in get_thread_area()
144 (int) ptr->entry_number == -1 ? "-1" : NULL); in get_thread_area()
183 ta1->entry_number = -1; in main()
203 ta2->entry_number = 3141592653U; in main()
207 ta2->entry_number = -1; in main()
211 ta2->entry_number = ta1->entry_number; in main()
212 assert(set_rc == 0 || (int) ta2->entry_number == -1); in main()
Dprint_user_desc.c50 printf("{entry_number=%u", us->entry_number); in print_user_desc()
Dmodify_ldt.c118 us->entry_number = -1; in main()
/external/strace/tests/
Dxet_thread_area_x86.c87 printf(" (entry_number=%u)", ptr->entry_number); in set_thread_area()
124 assert(ptr->entry_number == expected_ptr->entry_number); in get_thread_area()
144 (int) ptr->entry_number == -1 ? "-1" : NULL); in get_thread_area()
183 ta1->entry_number = -1; in main()
203 ta2->entry_number = 3141592653U; in main()
207 ta2->entry_number = -1; in main()
211 ta2->entry_number = ta1->entry_number; in main()
212 assert(set_rc == 0 || (int) ta2->entry_number == -1); in main()
Dprint_user_desc.c50 printf("{entry_number=%u", us->entry_number); in print_user_desc()
Dmodify_ldt.c118 us->entry_number = -1; in main()
/external/linux-kselftest/tools/testing/selftests/x86/
Dsigreturn.c170 *var = LDT3(desc->entry_number); in add_ldt()
187 .entry_number = LDT_OFFSET + 0, in setup_ldt()
200 .entry_number = LDT_OFFSET + 1, in setup_ldt()
213 .entry_number = LDT_OFFSET + 3, in setup_ldt()
226 .entry_number = LDT_OFFSET + 4, in setup_ldt()
239 .entry_number = -1, in setup_ldt()
257 gdt_data16_desc.entry_number); in setup_ldt()
258 gdt_data16_idx = gdt_data16_desc.entry_number; in setup_ldt()
264 .entry_number = -1, in setup_ldt()
280 gdt_npdata32_desc.entry_number); in setup_ldt()
[all …]
Dldt_gdt.c152 desc.entry_number = gdt_entry_num; in install_valid_mode()
172 check_valid_segment(desc.entry_number, ldt, ar, limit, true); in install_valid_mode()
209 check_invalid_segment(desc->entry_number, 1); in install_invalid()
247 .entry_number = 0, in do_simple_tests()
265 desc.entry_number = 2; in do_simple_tests()
335 check_valid_segment(desc.entry_number, 1, in do_simple_tests()
358 desc.entry_number = i; in do_simple_tests()
376 desc.entry_number = 8192; in do_simple_tests()
573 .entry_number = 0, in do_multicpu_tests()
642 .entry_number = 0, in do_exec_test()
[all …]
Dfsgsbase.c260 .entry_number = 0, in load_gs()
283 low_desc->entry_number = set_thread_area_entry_number; in load_gs()
297 printf("\tusing GDT slot %d\n", desc.entry_number); in load_gs()
298 set_thread_area_entry_number = desc.entry_number; in load_gs()
300 unsigned short gs = (unsigned short)((desc.entry_number << 3) | 0x3); in load_gs()
/external/python/cpython2/Modules/
Dreadline.c409 int entry_number; in py_remove_history() local
412 if (!PyArg_ParseTuple(args, "i:remove_history_item", &entry_number)) in py_remove_history()
414 if (entry_number < 0) { in py_remove_history()
419 entry = remove_history(entry_number); in py_remove_history()
423 entry_number); in py_remove_history()
438 int entry_number; in py_replace_history() local
442 if (!PyArg_ParseTuple(args, "is:replace_history_item", &entry_number, in py_replace_history()
446 if (entry_number < 0) { in py_replace_history()
451 old_entry = replace_history_entry(entry_number, line, (void *)NULL); in py_replace_history()
455 entry_number); in py_replace_history()
/external/python/cpython3/Modules/
Dreadline.c521 int entry_number; in py_remove_history() local
524 if (!PyArg_ParseTuple(args, "i:remove_history_item", &entry_number)) in py_remove_history()
526 if (entry_number < 0) { in py_remove_history()
531 entry = remove_history(entry_number); in py_remove_history()
535 entry_number); in py_remove_history()
550 int entry_number; in py_replace_history() local
555 if (!PyArg_ParseTuple(args, "iU:replace_history_item", &entry_number, in py_replace_history()
559 if (entry_number < 0) { in py_replace_history()
568 old_entry = replace_history_entry(entry_number, PyBytes_AS_STRING(encoded), (void *)NULL); in py_replace_history()
573 entry_number); in py_replace_history()
/external/ltp/testcases/kernel/syscalls/fork/
Dfork05.c120 unsigned int entry_number; member
146 ldt0.entry_number = 0; in main()
/external/ltp/testcases/kernel/syscalls/set_thread_area/
Dset_thread_area01.c52 static struct user_desc u_info1 = {.entry_number = -1 };
53 static struct user_desc u_info2 = {.entry_number = -2 };
Dset_thread_area.h19 unsigned int entry_number; member
/external/ltp/testcases/kernel/syscalls/modify_ldt/
Dmodify_ldt02.c71 unsigned int entry_number; member
172 entry.entry_number = 0; in create_segment()
Dmodify_ldt01.c75 unsigned int entry_number; member
222 entry.entry_number = 0; in create_segment()
/external/kernel-headers/original/uapi/asm-x86/asm/
Dldt.h22 unsigned int entry_number; member
/external/ltp/testcases/cve/
Dcve-2017-17053.c108 struct user_desc desc = { .entry_number = 8191 }; in run_test()
Dcve-2015-3290.c186 .entry_number = 0, in set_ldt()