From: Sebastian Smolorz Subject: Re: [Adeos-main] [PATCH] I-pipe tracer for ARM Date: Tue, 5 Dec 2006 17:39:43 +0100 References: <457584DD.90600@domain.hid> <4575888D.8090904@domain.hid> In-Reply-To: <4575888D.8090904@domain.hid> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: List-Id: General discussion about Adeos List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gilles Chanteperdrix Cc: adeos-main@gna.org Gilles Chanteperdrix wrote: > Jan Kiszka wrote: > > Gilles Chanteperdrix wrote: > >>Jan Kiszka wrote: > >>>Sebastian Smolorz wrote: > >>>>Jan Kiszka wrote: > >>>>>Are you tracing into vmalloc'ed memory? > >>>> > >>>>Yes, without CONFIG_IPIPE_TRACE_VMALLOC the system does not boot. > >>> > >>>Hmm, makes me wonder of some laziness of the page mapping or a missing > >>>lock-against-swapping causes this. Could you have a closer look at the > >>>tracer code if we are lacking some magic for the vmalloc trace buffer > >>>(compare to the xnheap code, e.g.)? > >> > >>This is a known issue, the ARM architecture lacks the set_pgdir > >>function, needed in mm/vmalloc.c to workaround the lazy page mapping of > >>vmalloced areas. > > > > Would vmalloc+memset help to be safe for the remaining system runtime? > > Probably not, the vmalloced area is added only to the page table of the > process that calls vmalloc, it is added to other processes table page > only once they use it. Are there any alternatives? Or do we have to live with this restriction? -- Sebastian