Lines Matching defs:sysctl

30 /* sysctl settables */
35 struct oprof_sysctl sysctl;
166 if (likely(note_pos < (sysctl.note_size - OP_PRE_NOTE_WATERMARK(sysctl.note_size)) && !is_ready()))
172 if (unlikely(note_pos == sysctl.note_size)) {
179 sysctl.nr_note_buffer_overflow++;
180 note_pos = sysctl.note_size - 1;
212 max = sizeof(struct op_note) * sysctl.note_size;
318 max = sizeof(struct op_buffer_head) + sizeof(struct op_sample) * sysctl.buf_size;
437 sysctl.nr_note_buffer_overflow = 0;
438 notebufsize = sizeof(struct op_note) * sysctl.note_size;
456 buf_size = (sizeof(struct op_sample) * sysctl.buf_size);
470 data->buf_size = sysctl.buf_size;
482 if ((err = check_range(sysctl.buf_size, OP_MIN_BUF_SIZE, OP_MAX_BUF_SIZE,
483 "sysctl.buf_size value %d not in range (%d %d)\n")))
485 if ((err = check_range(sysctl.note_size, OP_MIN_NOTE_TABLE_SIZE, OP_MAX_NOTE_TABLE_SIZE,
486 "sysctl.note_size value %d not in range (%d %d)\n")))
505 /* save the sysctl settable things to protect against change through
507 sysctl_parms.cpu_type = sysctl.cpu_type;
508 sysctl = sysctl_parms;
648 sysctl.nr_interrupts = 0;
651 sysctl.nr_interrupts += oprof_data[cpu].nr_irq;
672 sysctl.nr_buffer_overflow += oprof_data[cpu].nr_buffer_overflow;
755 { 1, "nr_interrupts", &sysctl.nr_interrupts, sizeof(int), 0444, NULL, &get_nr_interrupts, NULL, },
757 { 1, "cpu_type", &sysctl.cpu_type, sizeof(int), 0444, NULL, &lproc_dointvec, NULL, },
758 { 1, "note_buffer_overflow", &sysctl.nr_note_buffer_overflow, sizeof(int), 0444, NULL, &lproc_dointvec, NULL, },
759 { 1, "buffer_overflow", &sysctl.nr_buffer_overflow, sizeof(int), 0444, NULL, &get_nr_buffer_overflow, NULL, },
776 /* NOTE: we do *not* support sysctl() syscall */
783 /* these sysctl parms need sensible value */
820 if (sysctl.cpu_type != CPU_RTC) {
828 sysctl.cpu_type = CPU_RTC;