taskqueue_drain_all

2013-10-09 Thread Andriy Gapon
while (TAILQ_FIRST(&queue->tq_active) != NULL) + TQ_SLEEP(queue, &queue->tq_active, + &queue->tq_mutex, PWAIT, "-", 0); + TQ_UNLOCK(queue); +} + +void taskqueue_drain_timeout(struct tas

Re: what's going on after upgrade to svn-latest 9.

2013-10-01 Thread Andriy Gapon
;= transient_map_retries) { g_io_deliver(bp, EDEADLK/* XXXKIB */); You could try to experiment with kern.geom.transient_map_retries -- Andriy Gapon ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"

Re: Fatal trap 12 going from 8.2 to 8.4 with ZFS

2013-08-30 Thread Andriy Gapon
uring part 1 of the upgrade. I don't have an exact recollection of what is installed by freebsd-update - are *.symbols files installed? -- Andriy Gapon ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hack

Re: Fatal trap 12 going from 8.2 to 8.4 with ZFS

2013-08-29 Thread Andriy Gapon
g if anyone can suggest what I should try to get this working? > I used freebsd-update to upgrade, and this was after the first > "freebsd-update install" where it installs the kernel. -- Andriy Gapon ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"

Re: [kde-freebsd] virtualbox file dialog problem

2013-08-28 Thread Andriy Gapon
on 28/08/2013 15:09 Andriy Gapon said the following: > Now a description of the problem. > > 1. VirtualBox executable is installed setuid root. Apparently, when it is run > it does some privileged things and then drops all of the uids and gids (real, > effective and saved) ba

Re: [kde-freebsd] virtualbox file dialog problem

2013-08-28 Thread Andriy Gapon
on 18/07/2013 10:06 Andriy Gapon said the following: > on 18/07/2013 03:25 Greg Rivers said the following: >> On Wed, 17 Jul 2013, Andriy Gapon wrote: >> >>> I run virtualbox in KDE environment. A while ago (can't say exactly when) I >>> started to have a

Re: DTrace copyin with struct doesn't work?

2013-07-24 Thread Andriy Gapon
ready copied in. Unlike some fields within select_args. > arg1 in DTrace script should correspond to uap argument of sys_select, and > dereferencing should always produce an int. -- Andriy Gapon ___ freebsd-hackers@freebsd.org mailing list http:

Re: cpufreq not working as module on i386/amd64

2013-07-05 Thread Andriy Gapon
d some ways to feed CPU loading info > directly in kernel to cpufreq for finer & quicker control of > frequencies. -- Andriy Gapon ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"

Re: hwpmc with opteron 6128

2013-05-30 Thread Andriy Gapon
on 30/05/2013 18:21 Andriy Gapon said the following: > > I am trying to do a very basic thing with hwpmc on this CPU: > > CPU: AMD Opteron(tm) Processor 6128 (1999.05-MHz K8-class CPU) > hwpmc: SOFT/16/64/0x67 TSC/1/64/0x20 > K8/4/48/0x1ff I didn't realize that the sys

hwpmc with opteron 6128

2013-05-30 Thread Andriy Gapon
K_OVERFLOW FR_RETIRED_X86_INSTRUCTIONS FR_RETIRED_UOPS FR_RETIRED_BRANCHES FR_RETIRED_BRANCHES_MISPREDICTED FR_RETIRED_TAKEN_BRANCHES FR_RETIRED_TAKEN_BRANCHES_MISPREDICTED -- Andriy Gapon ___ freebsd-hackers@f

Re: preemptive kernel

2013-05-27 Thread Andriy Gapon
ce between them. Is one of the above or > ithread given to bus_setup_intr preferable on the other? The differences are described in taskqueue(9) "Predefined Task Queues" section. -- Andriy Gapon ___ freebsd-hackers@freebsd.org mailin

Re: preemptive kernel

2013-05-27 Thread Andriy Gapon
described earlier. > -Original Message- > From: Andriy Gapon [mailto:a...@freebsd.org] > Sent: Monday, May 27, 2013 10:11 AM > To: Konstantin Belousov > Cc: Orit Moskovich; freebsd-hackers@freebsd.org > Subject: Re: preemptive kernel > > on 27/05/2013 09:34 Konstant

Re: preemptive kernel

2013-05-27 Thread Andriy Gapon
ffloads actual work to non-interrupt context via a e.g. taskqueue. But, hmm, this functionality is probably locked under INTR_FILTER option. -- Andriy Gapon ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-

Re: Rebooting from loader causes a "fault" in VMware Workstation

2013-04-23 Thread Andriy Gapon
on 24/04/2013 02:03 Dimitry Andric said the following: > Indeed, the DS segment was incorrect, the GDT should be loaded from the > CS segment instead. Very good catch! Indeed the segments at this point were set up for "user" data while the "supervisor" data is need

Re: Rebooting from loader causes a "fault" in VMware Workstation

2013-04-23 Thread Andriy Gapon
on 23/04/2013 19:31 John Baldwin said the following: > On Tuesday, April 23, 2013 12:09:28 pm Andriy Gapon wrote: >> on 23/04/2013 17:36 Dimitry Andric said the following: >>> I have tried to ascertain it actually arrives at this code when >>> rebooting from the load

Re: Rebooting from loader causes a "fault" in VMware Workstation

2013-04-23 Thread Andriy Gapon
on 23/04/2013 19:09 Andriy Gapon said the following: > > IN: > 0x90d2: cli > 0x90d3: mov$0x1800,%esp > 0x90d8: mov%cr0,%eax > 0x90db: and$0x7fff,%eax > 0x90

Re: Rebooting from loader causes a "fault" in VMware Workstation

2013-04-23 Thread Andriy Gapon
GDT= ff85c789 IDT= 5e00 0197 CR0=0011 CR2= CR3= CR4= DR0= DR1= DR2= DR3= DR6=0ff0 DR7=0400 CCS=0001 CCD= CCO=LOGICL EFER=0000

sdt panic

2013-04-19 Thread Andriy Gapon
) at /usr/src/sys/amd64/amd64/exception.S:387 My understanding is that this happens if sdt.ko is loaded later than some other dtrace module(s)/providers and there are any (non-sdt) probes active at the time of loading. It seems to be caused by sdt_provider_entry() being called on a sdt-based provider t

Re: call suspend_cpus() under smp_ipi_mtx

2013-04-06 Thread Andriy Gapon
on 04/04/2013 20:34 Andriy Gapon said the following: > This seems to work without problems or any warnings with WITNESS && > !WITNESS_SKIPSPIN, but it is very possible that I am not exercising all the > relevant code paths. > > P.S. Looking through history it seems that in

Re: close(2) while accept(2) is blocked

2013-04-04 Thread Andriy Gapon
omain sockets, accept(2) and shutdown(2). Turns out that the problematic application does both shutdown(RDWR) and close(2), but that doesn't help on FreeBSD. BTW, this is the application: http://thread.gmane.org/gmane.os.freebsd.devel.office/1754 The patch does help. Author: Andriy Gapon

Re: call suspend_cpus() under smp_ipi_mtx

2013-04-04 Thread Andriy Gapon
umber of sources, then get the lock and try the allocation again. -- Andriy Gapon ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"

Re: close(2) while accept(2) is blocked

2013-04-04 Thread Andriy Gapon
vides more information / capabilities is preferable over the behavior that does not. E.g. your example above does not apply to a utility that has only two threads. The "three threads" problem can also be solved if all the threads cooperate. But as I've said. -- Andriy Gapon

clang: -mno-omit-leaf-frame-pointer

2013-03-30 Thread Andriy Gapon
t-frame-pointer -mno-omit-leaf-frame-pointer .endif .if ${MACHINE_CPUARCH} == powerpc -- Andriy Gapon ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "free

close(2) while accept(2) is blocked

2013-03-28 Thread Andriy Gapon
without resorting to signals). -- Andriy Gapon ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"

big change to devfs rules path matching

2013-03-28 Thread Andriy Gapon
on 25/03/2013 22:44 Andriy Gapon said the following: > > Would like to ask for opinions on this topic... > Please read this PR for context: > http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/122838 > Especially Jaakko's insightful description of the problem. So I woul

Fwd: kern/122838: [devfs] devfs doesn't handle complex paths (like zvol/pool/vms) good

2013-03-25 Thread Andriy Gapon
25 Mar 2013 22:37:44 +0200 From: Andriy Gapon Subject: Re: kern/122838: [devfs] devfs doesn't handle complex paths (like zvol/pool/vms) good Can't believe that we are still where we were more than two years ago... I think that we have to make this change even if it _might_ break s

Re: Debugging kernel cores without a stack

2013-03-25 Thread Andriy Gapon
on 25/03/2013 02:19 Joshua Isom said the following: > I thought the debugger would have worked regardless. No, kgdb and libkvm have to be in sync with kernel. Unfortunately. -- Andriy Gapon ___ freebsd-hackers@freebsd.org mailing list h

Re: call suspend_cpus() under smp_ipi_mtx

2013-03-23 Thread Andriy Gapon
AcpiLeaveSleepStatePrep does not need to be with interrupts disabled and can be moved to AcpiLeaveSleepState. This is after the _BFS and _GTS support was removed. What do you think? Thank you. -- Andriy Gapon ___ freebsd-hackers@freebsd.org mailing list http

mountroot event

2013-03-20 Thread Andriy Gapon
e proposed change won't break anything there. Thank you. commit 9dc8eaa50afa6ac88c44fbaad82509721e106f1a Author: Andriy Gapon Date: Wed Mar 6 08:57:35 2013 +0200 post mountroot event after a real/final root is mounted not every time an intermediate root (including the first de

SI_SUB_DTRACE_PROVIDER

2013-03-19 Thread Andriy Gapon
(SI_SUB_DTRACE_PROVIDER). Especially this is concerning because return values from SYSUNINIT functions are ignored. Unlike MOD_UNLOAD. -- Andriy Gapon ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To

Re: dtrace: operands have incompatible types: "dmu_buf_t **" = "dmu_buf_t **"

2013-03-14 Thread Andriy Gapon
First, this link http://docs.oracle.com/cd/E37670_01/E38608/html/dt_typcondef_dlang.html has a rather good description in section 2.13.4 of how types are managed in DTrace and of the special "C" and "D" namespaces/modules. on 12/03/2013 16:14 Andriy Gapon said the foll

dtrace: operands have incompatible types: "dmu_buf_t **" = "dmu_buf_t **"

2013-03-12 Thread Andriy Gapon
ng on, but I am still making sure that that's true. -- Andriy Gapon ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"

dtrace -c patch

2013-03-07 Thread Andriy Gapon
resolved: $ readelf -a -W /usr/bin/touch | fgrep main $ So, it seems that "postinit" is where we can reliable catch a process. What do you think? -- Andriy Gapon ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/lis

Re: clang generated code sometimes confuses fbt

2013-03-05 Thread Andriy Gapon
attached diff was a nop change :-) BTW, so changing clang to match gcc is not an option? I do not insist, just curious. -- Andriy Gapon ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe,

Re: clang generated code sometimes confuses fbt

2013-03-04 Thread Andriy Gapon
on 04/03/2013 09:57 Matt Burke said the following: > On 03/02/13 17:35, Andriy Gapon wrote: > >> To summarize: I would be glad of either clang generated code was >> "fbt-friendly" or if ctf information was generated for >> bpobj_iterate_impl. Either is perfect f

Re: clang generated code sometimes confuses fbt

2013-03-03 Thread Andriy Gapon
clang log is so different from a log that I get here with that I believe that something is wrong in your test. -- Andriy Gapon ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe,

Re: clang generated code sometimes confuses fbt

2013-03-03 Thread Andriy Gapon
on 02/03/2013 22:23 Dimitry Andric said the following: > > Have you verified that ctfconvert does the right thing, if you modify > the FILE symbol to have just the filename? No, I haven't. How can I test that? However my reading of the code makes me believe that that would hel

Re: clang generated code sometimes confuses fbt

2013-03-02 Thread Andriy Gapon
on 02/03/2013 19:35 Andriy Gapon said the following: > Now, I am not quite sure why ctfconvert skips bpobj_iterate_impl in the > clang-generated code. Seems like some sort of a bug in ctfconvert. It seems that gcc and clang put different names for symbol of type FILE: clang: readelf -a -

clang generated code sometimes confuses fbt

2013-03-02 Thread Andriy Gapon
-generated code. Seems like some sort of a bug in ctfconvert. -- Andriy Gapon ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"

Re: memory allocation in spinlock context

2013-03-01 Thread Andriy Gapon
on 01/03/2013 16:22 Matthew Jacob said the following: > On 3/1/2013 5:50 AM, Andriy Gapon wrote: >> I am trying to understand if it is possible to allow memory allocations >> (M_NOWAIT, >> of course) in a spinlock context. >> > There are mechanisms to do just this- e

memory allocation in spinlock context

2013-03-01 Thread Andriy Gapon
similar are completely oblivious of the fact. -- Andriy Gapon ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"

Re: kgdb modules

2013-02-13 Thread Andriy Gapon
d-kld will be useful however. I think that this approach is superior to what I suggested. BTW, thank you for 'nosharedlibrary' - I learned a new thing about gdb :-) -- Andriy Gapon ___ freebsd-hackers@freebsd.org mailing list http://lists.freeb

Re: Reviewing a FAQ change about LORs

2013-02-09 Thread Andriy Gapon
LORs there are duplicates (e.g. a LOR between devfs and any during unmount is replicated for many values of ). There also seem to be some fixed LORs, etc. It probably would make sense to reference some static page with a list of some well known LORs. But that page doesn't seem to be ve

Re: dynamically calculating NKPT [was: Re: huge ktr buffer]

2013-02-06 Thread Andriy Gapon
#x27;t have to > + * build in too much slop in our estimate. > + */ > + nkpt_init(*firstaddr); > + nkpdpe = NKPDPE(nkpt); > + > + KPTphys = allocpages(firstaddr, nkpt); > + KPDphys = allocpages(firstaddr, nkpdpe); > + > /* Fill in the underlying page t

Re: [clang] NMI while trying to read acpi timer register

2013-02-04 Thread Andriy Gapon
other weird corner issues people will see with clang compiling their > drivers? OK, I'll ask the user to open a PR. I'll just note that the problem seems to be too strange... There is a huge distance from compiler to nmi. -- Andriy Gapon _

Re: [clang] NMI while trying to read acpi timer register

2013-02-04 Thread Andriy Gapon
on 04/02/2013 21:11 Adrian Chadd said the following: > On 30 January 2013 13:03, Andriy Gapon wrote: >> on 28/01/2013 16:30 Andriy Gapon said the following: >>> is there any reasonable explanation for getting an NMI while trying to read >>> acpi >>> timer r

Re: kgdb modules

2013-02-04 Thread Andriy Gapon
the direction of set sysroot, solib-absolute-prefix, solib-search-path. I would not be surprised if the ancient gdb version on which kgdb is based does not support some of these settings. -- Andriy Gapon ___ freebsd-hackers@freebsd.org mailing list http

detect mwait capabilities and extensions

2013-02-03 Thread Andriy Gapon
efinecpu_setstack(td, ap)((td)->td_frame->tf_rsp = (ap)) #definecpu_spinwait() ia32_pause() -- Andriy Gapon ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"

Re: scheduler->swapper, SI_SUB_RUN_SCHEDULER->SI_SUB_LAST

2013-02-03 Thread Andriy Gapon
on 02/02/2013 16:50 Konstantin Belousov said the following: > On Sat, Feb 02, 2013 at 01:50:40PM +0200, Andriy Gapon wrote: >> >> I would like to propose the following mostly cosmetic change: >> http://people.freebsd.org/~avg/scheduler-swapper.diff >> >> This is

scheduler->swapper, SI_SUB_RUN_SCHEDULER->SI_SUB_LAST

2013-02-02 Thread Andriy Gapon
SI_SUB_RUN_SCHEDULER:SI_ORDER_LAST is a "hidden gem". -- Andriy Gapon ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"

Re: some questions on kern_linker and pre-loaded modules

2013-02-02 Thread Andriy Gapon
I plan to write a larger response to your complete followup. Thank you. -- Andriy Gapon ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"

Re: base gcc and _GLIBCXX_USE_C99

2013-02-01 Thread Andriy Gapon
on 01/02/2013 15:08 Dimitry Andric said the following: > On 2013-02-01 14:01, Andriy Gapon wrote: >> on 28/01/2013 17:11 Andriy Gapon said the following: >>> I wonder why the following is the case for the base gcc. >>> /usr/include/c++/4.2/bits/c++config.h: >>&g

Re: base gcc and _GLIBCXX_USE_C99

2013-02-01 Thread Andriy Gapon
[ping] on 28/01/2013 17:11 Andriy Gapon said the following: > > Guys, > > I wonder why the following is the case for the base gcc. > /usr/include/c++/4.2/bits/c++config.h: > > /* Define if C99 functions or macros from , , , >, and can be used or exposed. */ >

[clang] NMI while trying to read acpi timer register

2013-01-30 Thread Andriy Gapon
on 28/01/2013 16:30 Andriy Gapon said the following: > is there any reasonable explanation for getting an NMI while trying to read > acpi > timer register? > Note: this happens only after ACPI suspend/resume. An update. This happens only with clang compiled kernel, gcc compiled

NMI while trying to read acpi timer register

2013-01-28 Thread Andriy Gapon
Guys, is there any reasonable explanation for getting an NMI while trying to read acpi timer register? Note: this happens only after ACPI suspend/resume. -- Andriy Gapon ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman

dtrace vs module unloading

2013-01-27 Thread Andriy Gapon
). -- Andriy Gapon ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"

some questions on kern_linker and pre-loaded modules

2013-01-26 Thread Andriy Gapon
this issue. I've just tried a plug the ZFS hole for now. commit ed8b18f2d6c4d1be915bff94cdec0c51a479529f Author: Andriy Gapon Date: Wed Dec 19 23:29:23 2012 +0200 [bugfix] zfs: add MODULE_VERSION for zfsctrl This should allow the kernel linker to easily detect a situation whe

Re: [GIANT-LOCKED] even without D_NEEDGIANT

2013-01-18 Thread Andriy Gapon
ttps://github.com/olgeni/freebsd-dektec/blob/master/dektec.c > > Can anybody offer a clue about what could be triggering the GIANT > requirement? Could I be doing something that has this, and possibly > other, unintended side effects? > See INTR_MPSAFE in bus_setup_intr(9). -- Andr

Re: uart: add resume method

2012-12-23 Thread Andriy Gapon
on 23/12/2012 23:53 Garrett Cooper said the following: > On Sun, Dec 23, 2012 at 5:36 AM, Andriy Gapon wrote: >> >> Guys, >> >> do you think that the following change is useful/needed? >> >> I needed it with UART emulated in qemu, but I have no experience wi

uart: add resume method

2012-12-23 Thread Andriy Gapon
Guys, do you think that the following change is useful/needed? I needed it with UART emulated in qemu, but I have no experience with real hardware. commit ff1cc9b33c34fec4f3d1d3cb675ec3f8cfbc96de Author: Andriy Gapon Date: Wed Dec 19 23:31:49 2012 +0200 uart: add resume method and

huge ktr buffer

2012-12-06 Thread Andriy Gapon
could be a cause. But I would like to understand the details, if possible. Also, perhaps ktr could be a little bit more sophisticated with its buffer than just using a static array. -- Andriy Gapon ___ freebsd-hackers@freebsd.org mailing list http://lists.f

Re: sleepq problem

2012-12-05 Thread Andriy Gapon
understand what goes wrong. Sleepq chain lock is owned by > the other thread: > db> show lock 0x81101af8 > class: spin mutex > name: sleepq chain > flags: {SPIN, RECURSE} > state: {OWNED} > owner: 0xfe0008377000 (tid 100019, pid 12, "swi4: clock"

Re: lib for working with graphs

2012-11-29 Thread Andriy Gapon
on 28/11/2012 17:09 Dan Nelson said the following: > In the last episode (Nov 28), Andriy Gapon said: >> on 28/11/2012 16:31 David Wolfskill said the following: >>> On Wed, Nov 28, 2012 at 04:20:28PM +0200, Andriy Gapon wrote: >>>> >>>> Does anyone know

Re: lib for working with graphs

2012-11-29 Thread Andriy Gapon
on 28/11/2012 18:36 Mehmet Erol Sanliturk said the following: > > > On Wed, Nov 28, 2012 at 6:37 AM, Andriy Gapon <mailto:a...@freebsd.org>> wrote: > > on 28/11/2012 16:31 David Wolfskill said the following: > > On Wed, Nov 28, 2012 at 04:20:

Re: lib for working with graphs

2012-11-29 Thread Andriy Gapon
on 28/11/2012 17:02 Jonathan Anderson said the following: > On Wednesday, 28 November 2012 at 14:37, Andriy Gapon wrote: >> Graphs as in vertices, edges, etc :) And things like graph basics: BFS, DFS, >> connected components, topological sort, etc >> > > I've

Re: LK_SHARED/LK_DOWNGRADE adjustments to lock.9 manual page

2012-11-29 Thread Andriy Gapon
on 16/11/2012 16:42 Andriy Gapon said the following: > on 15/11/2012 23:44 Attilio Rao said the following: >> Do you think you can test this patch?: >> http://www.freebsd.org/~attilio/lockmgr_forcerec.patch > > I will use this patch in my tree, but I think that it is effecti

Re: lib for working with graphs

2012-11-28 Thread Andriy Gapon
on 28/11/2012 16:31 David Wolfskill said the following: > On Wed, Nov 28, 2012 at 04:20:28PM +0200, Andriy Gapon wrote: >> >> Does anyone know a light-weight BSD-licensed (or analogous) library / piece >> of >> code for doing useful things with graphs? >> Thank y

lib for working with graphs

2012-11-28 Thread Andriy Gapon
Does anyone know a light-weight BSD-licensed (or analogous) library / piece of code for doing useful things with graphs? Thank you. -- Andriy Gapon ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers

Re: stop_cpus_hard when multiple CPUs are panicking from an NMI

2012-11-25 Thread Andriy Gapon
does not make sense. So I am not sure what's the point of being that verbose in the naming. -- Andriy Gapon ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to &

Re: stop_cpus_hard when multiple CPUs are panicking from an NMI

2012-11-25 Thread Andriy Gapon
on 25/11/2012 16:01 Attilio Rao said the following: > On Sun, Nov 25, 2012 at 12:55 PM, Andriy Gapon wrote: >> on 25/11/2012 14:29 Attilio Rao said the following: >>> I think the patch you propose makes such effects even worse, because >>> it disables interrupts in gene

Re: stop_cpus_hard when multiple CPUs are panicking from an NMI

2012-11-25 Thread Andriy Gapon
be done easily enough. I think that you either misunderstood my patch or I misunderstand your suggestion, because my patch does exactly what you wrote above. -- Andriy Gapon ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mai

Re: FreeBSD needs Git to ensure repo integrity [was: 2012 incident]

2012-11-19 Thread Andriy Gapon
on 19/11/2012 15:08 Chris Rees said the following: > > On 19 Nov 2012 13:05, "Andriy Gapon" <mailto:a...@freebsd.org>> > wrote: >> >> on 18/11/2012 16:17 Chris Rees said the following: >> > On 18 November 2012 14:04, Adrian Chadd <mailto:adr.

Re: FreeBSD needs Git to ensure repo integrity [was: 2012 incident]

2012-11-19 Thread Andriy Gapon
result of a security > problem is also an action totally disproportionate with the issue that should > not be made in a panic. Having more [cryptographic] verifiability in the > release > process is a good thing; it is not strictly related to the choice of version > cont

Re: FreeBSD needs Git to ensure repo integrity [was: 2012 incident]

2012-11-19 Thread Andriy Gapon
on 18/11/2012 16:17 Chris Rees said the following: > On 18 November 2012 14:04, Adrian Chadd wrote: >> On 18 November 2012 02:48, Andriy Gapon wrote: >> >>> What you describe is not a workflow issue, but a local development >>> environment(s) setup issue. >>

Re: FreeBSD needs Git to ensure repo integrity [was: 2012 incident]

2012-11-18 Thread Andriy Gapon
on 18/11/2012 16:04 Adrian Chadd said the following: > On 18 November 2012 02:48, Andriy Gapon wrote: > >> What you describe is not a workflow issue, but a local development >> environment(s) setup issue. > > Which is a workflow issue. Well, this is what I understand a

Re: FreeBSD needs Git to ensure repo integrity [was: 2012 incident]

2012-11-18 Thread Andriy Gapon
use cases. What you describe is not a workflow issue, but a local development environment(s) setup issue. -- Andriy Gapon ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"

Re: LK_SHARED/LK_DOWNGRADE adjustments to lock.9 manual page

2012-11-16 Thread Andriy Gapon
on 15/11/2012 23:44 Attilio Rao said the following: > Do you think you can test this patch?: > http://www.freebsd.org/~attilio/lockmgr_forcerec.patch I will use this patch in my tree, but I think that it is effectively already quite well tested by using INVARIANTS+WITNESS. -- Andriy

Re: stop_cpus_hard when multiple CPUs are panicking from an NMI

2012-11-16 Thread Andriy Gapon
on 16/11/2012 16:41 Attilio Rao said the following: > On Fri, Nov 16, 2012 at 1:18 PM, Andriy Gapon wrote: >> on 16/11/2012 14:30 Attilio Rao said the following: >>> On Fri, Nov 16, 2012 at 7:54 AM, Andriy Gapon wrote: >>>> on 16/11/2012 00:58 Ryan Stone said the fo

Re: stop_cpus_hard when multiple CPUs are panicking from an NMI

2012-11-16 Thread Andriy Gapon
on 16/11/2012 14:30 Attilio Rao said the following: > On Fri, Nov 16, 2012 at 7:54 AM, Andriy Gapon wrote: >> on 16/11/2012 00:58 Ryan Stone said the following: >>> At work we have some custom watchdog hardware that sends an NMI upon >>> expiry. We've modi

Re: stop_cpus_hard when multiple CPUs are panicking from an NMI

2012-11-15 Thread Andriy Gapon
} > + atomic_clear_int(&stopped_cpus, PCPU_GET(cpumask)); > + } > > if (stop_scheduler_on_panic) { > if (panicstr == NULL && !kdb_active) > > > But I'm hoping that somebody has some ideas on a better way

Re: [RFQ] make witness panic an option

2012-11-15 Thread Andriy Gapon
ere? E.g. Solaris seems to have knob to ignore all asserts (just to print a message, but not panic). -- Andriy Gapon ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail

Re: [RFQ] make witness panic an option

2012-11-15 Thread Andriy Gapon
on 16/11/2012 01:38 Attilio Rao said the following: > On Thu, Nov 15, 2012 at 8:51 PM, Andriy Gapon wrote: >> on 15/11/2012 22:00 Adrian Chadd said the following: >>> But I think my change is invaluable for development, where you want to >>> improve and debug the locki

Re: [RFQ] make witness panic an option

2012-11-15 Thread Andriy Gapon
l mess further on. but apparently you've got a different practical experience :-) What would indeed be invaluable to _me_ - if the LOR messages also produced the stack(s) where a supposedly correct lock order was learned. -- Andriy Gapon ___ free

Re: LK_SHARED/LK_DOWNGRADE adjustments to lock.9 manual page

2012-11-15 Thread Andriy Gapon
on 15/11/2012 20:46 Attilio Rao said the following: > On 11/15/12, Andriy Gapon wrote: >> >> To people knowing the code, >> >> do the following documentation changes look correct? > > The latter chunk is not correct. > It will panic only if assertions are

Re: [RFQ] make witness panic an option

2012-11-15 Thread Andriy Gapon
on 15/11/2012 19:56 Warner Losh said the following: > It sounds like he's more worried about introducing LoRs into his wireless > code. "Mere" LORs do not result in panic, by default. Only more serious lock-related issues lead to pani

LK_SHARED/LK_DOWNGRADE adjustments to lock.9 manual page

2012-11-15 Thread Andriy Gapon
this call fails, the shared lock is lost. -- Andriy Gapon ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"

dtrace anonymous tracing

2012-11-14 Thread Andriy Gapon
Do we have support for DTrace anonymous tracing (boot-time tracing) on FreeBSD? -- Andriy Gapon ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-ha

Re: _mtx_lock_spin: obsolete historic handling of kdb_active and panicstr?

2012-10-17 Thread Andriy Gapon
on 17/10/2012 15:07 m...@freebsd.org said the following: > On Wed, Oct 17, 2012 at 4:20 AM, Andriy Gapon wrote: >> >> _mtx_lock_spin has the following check in its retry loop: >> if (i < 6000 || kdb_active || panicstr != NULL) >> DELAY(1); >> els

_mtx_lock_spin: obsolete historic handling of kdb_active and panicstr?

2012-10-17 Thread Andriy Gapon
hem and immediately induce a (possibly secondary) panic if we ever get to that wait loop and kdb_active || panicstr != NULL. What do you think? -- Andriy Gapon ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/free

Re: curcpu false positive?

2012-10-11 Thread Andriy Gapon
dereference. Looking at the latest > commit message there, I'm sure the code is correct, but I'm unsure why the > null pointer is OK. I'd appreciate an explanation :-) Read about __typeof [1]. It's evaluated at compile time, so actual value of an expression does not mat

machine/cpu.h in userland

2012-10-07 Thread Andriy Gapon
uot;@(#)w.c 8.4 (Berkeley) 4/16/94"; #include #include -#include #include #include #include -- Andriy Gapon ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, sen

kvm_getprocs: gracefully handle errors in kvm_deadprocs

2012-10-03 Thread Andriy Gapon
t should now be possible to enable realloc code, which previously contained a bug and was called even after kvm_deadprocs error. commit 6ddf602409119eded40321e5bb349b464f24e81a Author: Andriy Gapon Date: Sun Sep 23 22:52:28 2012 +0300 kvm_proc: gracefully handle errors in kvm_deadprocs

kvm_proclist: gnore processes in PRS_NEW

2012-10-03 Thread Andriy Gapon
I believe that the following patch does the right thing that is repeated in a few other places. I would like to ask for a review just in case. commit cf0f573a1dcbc09cb8fce612530afeeb7f1b1c62 Author: Andriy Gapon Date: Sun Sep 23 22:49:26 2012 +0300 kvm_proc: ignore processes in larvae

Re: ule+smp: small optimization for turnstile priority lending

2012-10-03 Thread Andriy Gapon
on 20/09/2012 16:14 Attilio Rao said the following: > On 9/20/12, Andriy Gapon wrote: [snip] >> The patch works well as far as I can tell. Thank you! >> There is one warning with full witness enables but it appears to be harmless >> (so >> far): > > Andriy, &g

Re: monitor+mwait and volatile-ish

2012-09-26 Thread Andriy Gapon
on 26/09/2012 12:10 Konstantin Belousov said the following: > On Wed, Sep 26, 2012 at 11:14:41AM +0300, Andriy Gapon wrote: [snip] >> So what's my point. - using volatile variable with cpu_monitor requires >> DEVOLATILE to silence compiler warning about discarding volatile; th

monitor+mwait and volatile-ish

2012-09-26 Thread Andriy Gapon
would also be a hint that variable should be volatile - add some magic dust to cpu_monitor that would tell compiler to not cache the variable; right now I can only think of the "memory" constraint, but it seems to be too big of a hummer What do you think about this? -- A

Re: cpu_spinwait in cngetc

2012-09-22 Thread Andriy Gapon
on 18/09/2012 16:25 Andriy Gapon said the following: > > (Why[*]) Would anyone object to a change like this? > > diff --git a/sys/kern/kern_cons.c b/sys/kern/kern_cons.c > index 5346bc3..d17846a 100644 > --- a/sys/kern/kern_cons.c > +++ b/sys/kern/kern_cons.c > @@ -384

kern_exec: check p_tracecred instead of p_cred

2012-09-22 Thread Andriy Gapon
Author: Andriy Gapon Date: Sat Sep 22 18:17:46 2012 +0300 kern_exec: check p_tracecred instead of p_cred ... when deciding whether to continue tracing across suid/sgid exec diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c index 90f7311..8d62c1e 100644 --- a/sys/kern/kern_exec.c

Re: serial console "detection" during boot

2012-09-22 Thread Andriy Gapon
is lightly tested. As I am not an expert in the assembly code and also because boot2 is quite size-sensitive I would like to ask for a special attention to the last change. Thank you!! -- Andriy Gapon ___ freebsd-hackers@freebsd.org mailing list http

Re: serial console "detection" during boot

2012-09-22 Thread Andriy Gapon
on 22/09/2012 11:40 Olivier Cochard-Labbé said the following: > On Mon, Sep 17, 2012 at 10:23 PM, Andriy Gapon wrote: >> >> Guys, >> >> With this patch I am able to boot with >> boot_multicons="YES" >> console="vidconsole,comconsole" &g

  1   2   3   4   5   6   7   >