Home
last modified time | relevance | path

Searched refs:action (Results 1 – 25 of 64) sorted by relevance

123

/art/runtime/
Druntime_linux.cc54 struct sigaction action; in HandleUnexpectedSignalLinux() local
55 memset(&action, 0, sizeof(action)); in HandleUnexpectedSignalLinux()
56 sigemptyset(&action.sa_mask); in HandleUnexpectedSignalLinux()
57 action.sa_handler = SIG_DFL; in HandleUnexpectedSignalLinux()
58 sigaction(signal_number, &action, nullptr); in HandleUnexpectedSignalLinux()
Druntime_common.cc524 struct sigaction action; in InitPlatformSignalHandlersCommon() local
525 memset(&action, 0, sizeof(action)); in InitPlatformSignalHandlersCommon()
526 sigemptyset(&action.sa_mask); in InitPlatformSignalHandlersCommon()
527 action.sa_sigaction = newact; in InitPlatformSignalHandlersCommon()
529 action.sa_flags |= SA_SIGINFO; in InitPlatformSignalHandlersCommon()
531 action.sa_flags |= SA_ONSTACK; in InitPlatformSignalHandlersCommon()
534 rc += sigaction(SIGABRT, &action, oldact); in InitPlatformSignalHandlersCommon()
535 rc += sigaction(SIGBUS, &action, oldact); in InitPlatformSignalHandlersCommon()
536 rc += sigaction(SIGFPE, &action, oldact); in InitPlatformSignalHandlersCommon()
537 rc += sigaction(SIGILL, &action, oldact); in InitPlatformSignalHandlersCommon()
[all …]
/art/sigchainlib/
Dsigchain_test.cc65 art::AddSpecialSignalHandlerFn(SIGSEGV, &action); in SetUp()
69 art::RemoveSpecialSignalHandlerFn(SIGSEGV, action.sc_sigaction); in TearDown()
72 art::SigchainAction action = { member in SigchainTest
231 struct sigaction action = {}; in TEST_F() local
232 action.sa_flags = SA_SIGINFO; in TEST_F()
233 action.sa_sigaction = [](int, siginfo_t*, void*) { called = 1; }; in TEST_F()
235 ASSERT_EQ(0, libc_sigaction(SIGSEGV, &action, nullptr)); in TEST_F()
260 struct sigaction action = {}; in fault_address_tag_impl() local
261 action.sa_flags = SA_SIGINFO; in fault_address_tag_impl()
262 action.sa_sigaction = [](int, siginfo_t* siginfo, void*) { in fault_address_tag_impl()
[all …]
/art/test/004-SignalTest/
Dsignaltest.cc123 struct sigaction action; in Java_Main_initSignalTest() local
124 action.sa_sigaction = signalhandler; in Java_Main_initSignalTest()
125 sigfillset(&action.sa_mask); in Java_Main_initSignalTest()
126 sigdelset(&action.sa_mask, UNBLOCKED_SIGNAL); in Java_Main_initSignalTest()
127 action.sa_flags = SA_SIGINFO | SA_ONSTACK; in Java_Main_initSignalTest()
129 action.sa_restorer = nullptr; in Java_Main_initSignalTest()
132 sigaction(SIGSEGV, &action, &oldaction); in Java_Main_initSignalTest()
135 if (!compare_sigaction(&check, &action)) { in Java_Main_initSignalTest()
138 *reinterpret_cast<void**>(&action.sa_mask), in Java_Main_initSignalTest()
141 action.sa_sigaction, check.sa_sigaction); in Java_Main_initSignalTest()
[all …]
/art/test/
Ddefault_run.py33 argp.add_argument("--64", dest="is64", action="store_true")
34 argp.add_argument("--O", action="store_true")
35 argp.add_argument("--Xcompiler-option", default=[], action="append")
36 argp.add_argument("--add-libdir-argument", action="store_true")
41 argp.add_argument("--android-runtime-option", default=[], action="append")
43 argp.add_argument("--app-image", default=True, action=opt_bool)
44 argp.add_argument("--baseline", action="store_true")
45 argp.add_argument("--bionic", action="store_true")
48 argp.add_argument("--compiler-only-option", default=[], action="append")
49 argp.add_argument("--create-runner", action="store_true")
[all …]
/art/
Dtest.py35 parser.add_argument('--run-test', '-r', action='store_true', dest='run_test', help='execute run tes…
36 parser.add_argument('--gtest', '-g', action='store_true', dest='gtest', help='execute gtest tests')
37 parser.add_argument('--target', action='store_true', dest='target', help='test on target system')
38 parser.add_argument('--host', action='store_true', dest='host', help='test on build host system')
39 parser.add_argument('--help-runner', action='store_true', dest='help_runner', help='show help for o…
/art/test/1930-monitor-info/src/art/
DMonitors.java124 private final AtomicStampedReference<Action> action; field in Monitors.LockController
137 this.action = new AtomicStampedReference(Action.HOLD, 0); in LockController()
157 int stamp = action.getStamp(); in setAction()
159 while (!action.compareAndSet(Action.HOLD, a, stamp, stamp + 1)) { in setAction()
160 stamp = action.getStamp(); in setAction()
196 cur_action = action.get(stamp_h); in DoLock()
220 throw new Error("Unknown action " + action); in DoLock()
224 action.compareAndSet(cur_action, Action.HOLD, stamp, stamp+1); in DoLock()
307 while (action.getReference() != Action.HOLD) { checkException(); } in waitForActionToFinish()
322 action.set(Action.HOLD, 0); in DoUnlock()
[all …]
/art/test/1934-jvmti-signal-thread/src/art/
DMonitors.java124 private final AtomicStampedReference<Action> action; field in Monitors.LockController
137 this.action = new AtomicStampedReference(Action.HOLD, 0); in LockController()
157 int stamp = action.getStamp(); in setAction()
159 while (!action.compareAndSet(Action.HOLD, a, stamp, stamp + 1)) { in setAction()
160 stamp = action.getStamp(); in setAction()
196 cur_action = action.get(stamp_h); in DoLock()
220 throw new Error("Unknown action " + action); in DoLock()
224 action.compareAndSet(cur_action, Action.HOLD, stamp, stamp+1); in DoLock()
307 while (action.getReference() != Action.HOLD) { checkException(); } in waitForActionToFinish()
322 action.set(Action.HOLD, 0); in DoUnlock()
[all …]
/art/test/1931-monitor-events/src/art/
DMonitors.java124 private final AtomicStampedReference<Action> action; field in Monitors.LockController
137 this.action = new AtomicStampedReference(Action.HOLD, 0); in LockController()
157 int stamp = action.getStamp(); in setAction()
159 while (!action.compareAndSet(Action.HOLD, a, stamp, stamp + 1)) { in setAction()
160 stamp = action.getStamp(); in setAction()
196 cur_action = action.get(stamp_h); in DoLock()
220 throw new Error("Unknown action " + action); in DoLock()
224 action.compareAndSet(cur_action, Action.HOLD, stamp, stamp+1); in DoLock()
307 while (action.getReference() != Action.HOLD) { checkException(); } in waitForActionToFinish()
322 action.set(Action.HOLD, 0); in DoUnlock()
[all …]
/art/test/jvmti-common/
DMonitors.java124 private final AtomicStampedReference<Action> action; field in Monitors.LockController
137 this.action = new AtomicStampedReference(Action.HOLD, 0); in LockController()
157 int stamp = action.getStamp(); in setAction()
159 while (!action.compareAndSet(Action.HOLD, a, stamp, stamp + 1)) { in setAction()
160 stamp = action.getStamp(); in setAction()
196 cur_action = action.get(stamp_h); in DoLock()
220 throw new Error("Unknown action " + action); in DoLock()
224 action.compareAndSet(cur_action, Action.HOLD, stamp, stamp+1); in DoLock()
307 while (action.getReference() != Action.HOLD) { checkException(); } in waitForActionToFinish()
322 action.set(Action.HOLD, 0); in DoUnlock()
[all …]
/art/test/1933-monitor-current-contended/src/art/
DMonitors.java124 private final AtomicStampedReference<Action> action; field in Monitors.LockController
137 this.action = new AtomicStampedReference(Action.HOLD, 0); in LockController()
157 int stamp = action.getStamp(); in setAction()
159 while (!action.compareAndSet(Action.HOLD, a, stamp, stamp + 1)) { in setAction()
160 stamp = action.getStamp(); in setAction()
196 cur_action = action.get(stamp_h); in DoLock()
220 throw new Error("Unknown action " + action); in DoLock()
224 action.compareAndSet(cur_action, Action.HOLD, stamp, stamp+1); in DoLock()
307 while (action.getReference() != Action.HOLD) { checkException(); } in waitForActionToFinish()
322 action.set(Action.HOLD, 0); in DoUnlock()
[all …]
/art/test/1932-monitor-events-misc/src/art/
DMonitors.java124 private final AtomicStampedReference<Action> action; field in Monitors.LockController
137 this.action = new AtomicStampedReference(Action.HOLD, 0); in LockController()
157 int stamp = action.getStamp(); in setAction()
159 while (!action.compareAndSet(Action.HOLD, a, stamp, stamp + 1)) { in setAction()
160 stamp = action.getStamp(); in setAction()
196 cur_action = action.get(stamp_h); in DoLock()
220 throw new Error("Unknown action " + action); in DoLock()
224 action.compareAndSet(cur_action, Action.HOLD, stamp, stamp+1); in DoLock()
307 while (action.getReference() != Action.HOLD) { checkException(); } in waitForActionToFinish()
322 action.set(Action.HOLD, 0); in DoUnlock()
[all …]
/art/tools/
Dcompile-jar.py38 action="store",
43 action="store_true",
49 action="store",
54 action="store_true",
61 action="store",
66 action="append",
72 action="append",
80 action="store",
86 action="store",
91 action="store",
Dbuildbot-vm.sh30 action="$1"
40 if [[ $action = create ]]; then
75 elif [[ $action = geniso ]]; then
102 elif [[ $action = boot ]]; then
165 elif [[ $action = setup-ssh ]]; then
170 elif [[ $action = install-keys ]]; then
217 elif [[ $action = connect ]]; then
220 elif [[ $action = quit ]]; then
Dwrap-logcat.py28 action='store',
31 action='store',
37 action='store',
Drun-libcore-tests.py33 parser.add_argument('--debug', action='store_true',
35 parser.add_argument('--dry-run', action='store_true',
37 parser.add_argument('--no-getrandom', action='store_false', dest='getrandom',
39 parser.add_argument('--no-jit', action='store_false', dest='jit',
41 parser.add_argument('--gcstress', action='store_true',
45 parser.add_argument('--verbose', action='store_true', help='Print verbose output from vogar.')
/art/odrefresh/
Dodr_common.cc75 void SystemPropertyForeach(std::function<void(const char* name, const char* value)> action) { in SystemPropertyForeach() argument
81 auto action = in SystemPropertyForeach() local
84 (*action)(name, value); in SystemPropertyForeach()
88 &action); in SystemPropertyForeach()
Dodrefresh_main.cc283 std::string_view action(argv[0]); in main() local
285 if (action == "--check") { in main()
293 } else if (action == "--compile") { in main()
318 } else if (action == "--force-compile") { in main()
325 } else if (action == "--help") { in main()
328 ArgumentError("Unknown argument: %s", action.data()); in main()
/art/tools/checker/
Dchecker.py35 parser.add_argument("--list-passes", dest="list_passes", action="store_true",
41 parser.add_argument("--debuggable", action="store_true",
43 parser.add_argument("--print-cfg", action="store_true", default="True", dest="print_cfg",
45 parser.add_argument("--no-print-cfg", action="store_false", default="True", dest="print_cfg",
47 parser.add_argument("-q", "--quiet", action="store_true",
/art/tools/runtime_memusage/
Dsymbol_trace_info.py141 parser.add_argument("-d", action="store",
144 parser.add_argument("--dex-file", action="store",
148 parser.add_argument("--offsets", action="store", nargs=2,
156 parser.add_argument("--times", action="store", nargs=2,
164 parser.add_argument("sanitizer_trace", action="store",
168 parser.add_argument("symbol_trace", action="store",
172 parser.add_argument("dex_starts", action="store",
175 parser.add_argument("categories", action="store", nargs="*",
Dprune_sanitizer_output.py105 parser.add_argument("-d", action="store",
108 parser.add_argument("-e", action="store_true",
112 parser.add_argument("-m", action="store",
115 parser.add_argument("trace_file", action="store",
/art/test/719-varhandle-concurrency/src/
DMain.java209 private final Consumer<Integer> action; field in Main.TestTask
211 TestTask(Integer ord, Consumer<Integer> action) { in TestTask() argument
213 this.action = action; in TestTask()
217 action.accept(ord); in exec()
/art/tools/jvmti-agents/ti-alloc-sample/
Dmkflame.py192 parser.add_argument("--use_size", help="Count by allocation size", action="store_true",
194 parser.add_argument("--ignore_type", help="Ignore type of allocation", action="store_true",
196 parser.add_argument("--reverse_stack", help="Reverse root and top of stacks", action="store_true",
198 parser.add_argument("--type_only", help="Only consider allocation type", action="store_true",
200 parser.add_argument("--thread_only", help="Only consider allocation thread", action="store_true",
/art/test/testrunner/
Dtestrunner.py1079 parser.add_argument('tests', action='extend', nargs="*", help='name(s) of the test(s)')
1080 parser.add_argument('-t', '--test', action='append', dest='tests', help='name(s) of the test(s)'
1087 global_group.add_argument('--verbose', '-v', action='store_true', dest='verbose')
1088 global_group.add_argument('--dry-run', action='store_true', dest='dry_run')
1089 global_group.add_argument("--skip", action='append', dest="skips", default=[],
1091 global_group.add_argument("--no-skips", dest="ignore_skips", action='store_true', default=False,
1095 action='store_false', dest='build',
1099 action='store_true', dest='build',
1103 action='store_true', dest='dist',
1108 global_group.add_argument('--gdb', action='store_true', dest='gdb')
[all …]
/art/test/640-checker-boolean-simd/src/
DMain.java123 private static void expectEquals(boolean expected, boolean result, String action) { in expectEquals() argument
125 throw new Error("Expected: " + expected + ", found: " + result + " for " + action); in expectEquals()

123