/external/valgrind/main/coregrind/m_syswrap/ |
D | syswrap-xen.c | 390 PRE(sysctl) { in PRE() argument 391 struct vki_xen_sysctl *sysctl = (struct vki_xen_sysctl *)ARG1; in PRE() local 393 PRINT("__HYPERVISOR_sysctl ( %d )", sysctl->cmd); in PRE() 403 if (!sysctl) in PRE() 406 switch (sysctl->interface_version) in PRE() 414 sysctl->interface_version); in PRE() 430 (Addr)&sysctl->u._union._field, \ in PRE() 431 sizeof(sysctl->u._union._field)) in PRE() 435 switch (sysctl->cmd) { in PRE() 444 if (sysctl->u.readconsole.incremental) in PRE() [all …]
|
/external/oprofile/module/ |
D | oprofile.c | 35 struct oprof_sysctl sysctl; variable 166 if (likely(note_pos < (sysctl.note_size - OP_PRE_NOTE_WATERMARK(sysctl.note_size)) && !is_ready())) in up_and_check_note() 172 if (unlikely(note_pos == sysctl.note_size)) { in up_and_check_note() 179 sysctl.nr_note_buffer_overflow++; in up_and_check_note() 180 note_pos = sysctl.note_size - 1; in up_and_check_note() 212 max = sizeof(struct op_note) * sysctl.note_size; in oprof_note_read() 318 max = sizeof(struct op_buffer_head) + sizeof(struct op_sample) * sysctl.buf_size; in oprof_read() 437 sysctl.nr_note_buffer_overflow = 0; in oprof_init_data() 438 notebufsize = sizeof(struct op_note) * sysctl.note_size; in oprof_init_data() 456 buf_size = (sizeof(struct op_sample) * sysctl.buf_size); in oprof_init_data() [all …]
|
/external/oprofile/module/x86/ |
D | op_model_athlon.c | 68 if (sysctl.ctr[i].enabled) { in athlon_setup_ctrs() 70 CTR_WRITE(sysctl.ctr[i].count, msrs, i); in athlon_setup_ctrs() 75 CTRL_SET_USR(low, sysctl.ctr[i].user); in athlon_setup_ctrs() 76 CTRL_SET_KERN(low, sysctl.ctr[i].kernel); in athlon_setup_ctrs() 77 CTRL_SET_UM(low, sysctl.ctr[i].unit_mask); in athlon_setup_ctrs() 78 CTRL_SET_EVENT(low, sysctl.ctr[i].event); in athlon_setup_ctrs() 92 if (sysctl.ctr[i].enabled) { in athlon_check_ctrs() 108 if (sysctl.ctr[i].enabled) { in athlon_start() 122 if (sysctl.ctr[i].enabled) { in athlon_stop()
|
D | op_apic.c | 194 if (sysctl.cpu_type != CPU_PPRO && in check_cpu_ok() 195 sysctl.cpu_type != CPU_PII && in check_cpu_ok() 196 sysctl.cpu_type != CPU_PIII && in check_cpu_ok() 197 sysctl.cpu_type != CPU_ATHLON && in check_cpu_ok() 198 sysctl.cpu_type != CPU_HAMMER && in check_cpu_ok() 199 sysctl.cpu_type != CPU_P4 && in check_cpu_ok() 200 sysctl.cpu_type != CPU_P4_HT2) in check_cpu_ok()
|
D | op_model_p4.c | 499 if (sysctl.ctr[ctr].event <= 0 || sysctl.ctr[ctr].event > NUM_EVENTS) { in pmc_setup_one_p4_counter() 502 sysctl.ctr[ctr].event); in pmc_setup_one_p4_counter() 506 ev = &(p4_events[sysctl.ctr[ctr].event - 1]); in pmc_setup_one_p4_counter() 515 ESCR_SET_USR_0(escr, sysctl.ctr[ctr].user); in pmc_setup_one_p4_counter() 516 ESCR_SET_OS_0(escr, sysctl.ctr[ctr].kernel); in pmc_setup_one_p4_counter() 518 ESCR_SET_USR_1(escr, sysctl.ctr[ctr].user); in pmc_setup_one_p4_counter() 519 ESCR_SET_OS_1(escr, sysctl.ctr[ctr].kernel); in pmc_setup_one_p4_counter() 522 ESCR_SET_EVENT_MASK(escr, sysctl.ctr[ctr].unit_mask); in pmc_setup_one_p4_counter() 542 sysctl.ctr[ctr].event, ctr); in pmc_setup_one_p4_counter() 615 if (sysctl.ctr[i].event) { in p4_setup_ctrs() [all …]
|
D | op_model_ppro.c | 64 if (sysctl.ctr[i].enabled) { in ppro_setup_ctrs() 66 CTR_WRITE(sysctl.ctr[i].count, msrs, i); in ppro_setup_ctrs() 71 CTRL_SET_USR(low, sysctl.ctr[i].user); in ppro_setup_ctrs() 72 CTRL_SET_KERN(low, sysctl.ctr[i].kernel); in ppro_setup_ctrs() 73 CTRL_SET_UM(low, sysctl.ctr[i].unit_mask); in ppro_setup_ctrs() 74 CTRL_SET_EVENT(low, sysctl.ctr[i].event); in ppro_setup_ctrs()
|
D | op_rtc.c | 37 if ((sysctl.ctr[0].kernel && usermode) in do_rtc_interrupt() 38 || (sysctl.ctr[0].user && !usermode)) in do_rtc_interrupt() 75 target = sysctl.ctr[0].count; in rtc_setup() 87 sysctl_parms.ctr[0].count = sysctl.ctr[0].count = 1 << exp; in rtc_setup() 139 int target = sysctl.ctr[0].count; in rtc_check_params()
|
D | op_nmi.c | 25 switch (sysctl.cpu_type) { in get_model() 123 if (sysctl.ctr[i].enabled) in pmc_start_all() 124 data->ctr_count[i] = sysctl.ctr[i].count; in pmc_start_all() 150 if (!sysctl.ctr[i].enabled) in pmc_check_params() 155 if (!sysctl.ctr[i].user && !sysctl.ctr[i].kernel) { in pmc_check_params() 161 if (check_range(sysctl.ctr[i].count, 1, OP_MAX_PERF_COUNT, in pmc_check_params()
|
/external/chromium_org/base/process/ |
D | process_metrics_openbsd.cc | 23 if (sysctl(mib, arraysize(mib), NULL, &length, NULL, 0) < 0) in GetPagefileUsage() 28 if (sysctl(mib, arraysize(mib), &info, &length, NULL, 0) < 0) in GetPagefileUsage() 44 if (sysctl(mib, arraysize(mib), NULL, &length, NULL, 0) < 0) in GetWorkingSetSize() 49 if (sysctl(mib, arraysize(mib), &info, &length, NULL, 0) < 0) in GetWorkingSetSize() 97 if (sysctl(mib, arraysize(mib), NULL, &length, NULL, 0) < 0) in GetProcessCPU() 102 if (sysctl(mib, arraysize(mib), &info, &length, NULL, 0) < 0) in GetProcessCPU() 149 if (sysctl(mib, arraysize(mib), &vmtotal, &len, NULL, 0) < 0) in GetSystemCommitCharge()
|
D | process_handle_openbsd.cc | 19 if (sysctl(mib, arraysize(mib), NULL, &length, NULL, 0) < 0) in GetParentProcessId() 24 if (sysctl(mib, arraysize(mib), &info, &length, NULL, 0) < 0) in GetParentProcessId() 36 if (sysctl(mib, arraysize(mib), NULL, &len, NULL, 0) == -1) in GetProcessExecutablePath() 39 if (sysctl(mib, arraysize(mib), &kp, &len, NULL, 0) < 0) in GetProcessExecutablePath()
|
D | process_metrics_freebsd.cc | 32 if (sysctl(mib, arraysize(mib), &info, &length, NULL, 0) < 0) in GetPagefileUsage() 47 if (sysctl(mib, arraysize(mib), &info, &length, NULL, 0) < 0) in GetWorkingSetSize() 89 if (sysctl(mib, arraysize(mib), &info, &length, NULL, 0) < 0) in GetCPUUsage() 104 if (sysctl(mib, arraysize(mib), &mem_total, &length, NULL, 0) < 0) in GetSystemCommitCharge()
|
D | process_iterator_openbsd.cc | 28 if (sysctl(mib, arraysize(mib), NULL, &len, NULL, 0) < 0) { in ProcessIterator() 39 if (sysctl(mib, arraysize(mib), &kinfo_procs_[0], &len, NULL, 0) < 0) { in ProcessIterator() 78 if (sysctl(mib, arraysize(mib), NULL, &data_len, NULL, 0) < 0) { in CheckForNextProcess() 84 if (sysctl(mib, arraysize(mib), &data[0], &data_len, NULL, 0) < 0) { in CheckForNextProcess()
|
D | process_iterator_freebsd.cc | 28 if (sysctl(mib, arraysize(mib), NULL, &len, NULL, 0) < 0) { in ProcessIterator() 39 if (sysctl(mib, arraysize(mib), &kinfo_procs_[0], &len, NULL, 0) <0) { in ProcessIterator() 77 if (sysctl(mib, arraysize(mib), NULL, &length, NULL, 0) < 0) { in CheckForNextProcess() 84 if (sysctl(mib, arraysize(mib), &data[0], &length, NULL, 0) < 0) { in CheckForNextProcess()
|
D | process_iterator_mac.cc | 34 if (sysctl(mib, arraysize(mib), NULL, &len, NULL, 0) < 0) { in ProcessIterator() 46 if (sysctl(mib, arraysize(mib), &kinfo_procs_[0], &len, NULL, 0) < 0) { in ProcessIterator() 85 if (sysctl(mib, arraysize(mib), NULL, &data_len, NULL, 0) < 0) { in CheckForNextProcess() 91 if (sysctl(mib, arraysize(mib), &data[0], &data_len, NULL, 0) < 0) { in CheckForNextProcess()
|
D | process_info_mac.cc | 21 if (sysctl(mib, arraysize(mib), NULL, &len, NULL, 0) < 0) in CreationTime() 26 if (sysctl(mib, arraysize(mib), proc.get(), &len, NULL, 0) < 0) in CreationTime()
|
D | process_handle_freebsd.cc | 19 if (sysctl(mib, arraysize(mib), &info, &length, NULL, 0) < 0) in GetParentProcessId() 32 if (sysctl(mib, arraysize(mib), pathname, &length, NULL, 0) < 0 || in GetProcessExecutablePath()
|
/external/oprofile/module/ia64/ |
D | op_pmu.c | 191 if (sysctl.ctr[ii].enabled) { in pmu_setup() 194 set_pmd_neg(sysctl.ctr[ii].count, ii); in pmu_setup() 195 pmc_fill_in(&pmc_val, sysctl.ctr[ii].kernel, in pmu_setup() 196 sysctl.ctr[ii].user, sysctl.ctr[ii].event, in pmu_setup() 197 sysctl.ctr[ii].unit_mask); in pmu_setup() 417 if (sysctl.ctr[i].enabled) { in pmu_start_all() 418 data->ctr_count[i] = sysctl.ctr[i].count; in pmu_start_all() 449 if (!sysctl.ctr[i].enabled) in pmu_check_params() 454 if (!sysctl.ctr[i].user && !sysctl.ctr[i].kernel) { in pmu_check_params() 460 if (check_range(sysctl.ctr[i].count, 1, OP_MAX_PERF_COUNT, in pmu_check_params()
|
/external/libunwind/src/ |
D | os-freebsd.c | 66 error = sysctl(mib, 3, NULL, &len, NULL, 0); in get_pid_by_tid() 74 error = sysctl(mib, 3, buf, &len, NULL, 0); in get_pid_by_tid() 107 error = sysctl(mib, 4, NULL, &len, NULL, 0); in map_create_list() 113 error = sysctl(mib, 4, NULL, &len, NULL, 0); in map_create_list() 125 error = sysctl(mib, 4, buf, &len, NULL, 0); in map_create_list()
|
/external/chromium_org/base/ |
D | sys_info_openbsd.cc | 34 if (sysctl(mib, arraysize(mib), &ncpu, &size, NULL, 0) < 0) { in NumberOfProcessors() 56 if (sysctl(mib, arraysize(mib), &limit, &size, NULL, 0) < 0) { in MaxSharedMemorySize() 68 if (sysctl(mib, arraysize(mib), name, &len, NULL, 0) < 0) { in CPUModelName()
|
/external/dhcpcd/ |
D | platform-bsd.c | 50 if (sysctl(mib, sizeof(mib) / sizeof(mib[0]), in hardware_platform() 65 if (sysctl(mib, sizeof(mib)/sizeof(mib[0]), &val, &size, NULL, 0) == -1) in inet6_sysctl()
|
/external/lldb/source/Host/freebsd/ |
D | Host.cpp | 161 if (::sysctl (mib, 2, cstr, &cstr_len, NULL, 0) == 0) in GetOSBuildString() 176 if (::sysctl (mib, 2, cstr, &cstr_len, NULL, 0) == 0) in GetOSKernelDescription() 194 if (::sysctl (mib, 4, arg_data, &arg_data_size , NULL, 0) == 0) in GetFreeBSDProcessArgs() 258 if (::sysctl (mib, 4, &proc_kinfo, &proc_kinfo_size, NULL, 0) == 0) in GetFreeBSDProcessUserAndGroup() 308 if (::sysctl(mib, 2, &ps_strings_addr, &ps_strings_size, NULL, 0) == 0) { in GetAuxvData()
|
/external/wpa_supplicant_8/wpa_supplicant/examples/ |
D | p2p-action-udhcp.sh | 58 sysctl net.ipv4.ip_forward=1 65 sysctl net.ipv4.ip_forward=0
|
/external/chromium_org/base/debug/ |
D | debugger_posix.cc | 95 if (sysctl(mib, arraysize(mib), NULL, &info_size, NULL, 0) < 0) in BeingDebugged() 101 int sysctl_result = sysctl(mib, arraysize(mib), &info, &info_size, NULL, 0); in BeingDebugged()
|
/external/libunwind/tests/ |
D | crasher.c | 62 error = sysctl(mib, 4, NULL, &len, NULL, 0); in write_maps() 69 error = sysctl(mib, 4, buf, &len, NULL, 0); in write_maps()
|
/external/chromium_org/v8/src/base/ |
D | sys-info.cc | 36 if (sysctl(mib, arraysize(mib), &ncpu, &len, NULL, 0) != 0) { in NumberOfProcessors() 62 if (sysctl(mib, arraysize(mib), &memsize, &len, NULL, 0) != 0) { in AmountOfPhysicalMemory()
|