Stoyan Gaydarov wrote:
> I was wondering if someone could clear something up for me.
> Is this desired or is it an unneeded change:
>
> from:
>
> if(someCondition)
> BUG();
>
> to:
>
> BUG_ON(sameCondition);
>
> if it is desired then would anyone care if I took a crack at it?
>
>
> Stoyan Gay
I am researching real-time computing through different projects at
school. Is anyone else working on real-time research with the Linux kernel?
I am focusing on using power measurement, in one project, with an
embedded system and creating a real time architecture that will minimize
the performance
I was wondering if someone could clear something up for me.
Is this desired or is it an unneeded change:
from:
if(someCondition)
BUG();
to:
BUG_ON(sameCondition);
if it is desired then would anyone care if I took a crack at it?
Stoyan Gaydarov
--
To unsubscribe from this list: send an
The likely/unlikely macros are defined in include/linux/compiler.h
See kerneltrap.org/node/4705
[ ]s
Viliam
On Thu, Jul 3, 2008 at 12:08 AM, Bradley Hanna <[EMAIL PROTECTED]> wrote:
> I have been working in the scheduler where I see a subroutine called
> 'unlikely'. I would like to know where
I have been working in the scheduler where I see a subroutine called
'unlikely'. I would like to know where 'unlikely' is defined source
tree. Specifically what file.
example of usage:
if (unlikely(reacquire_kernel_lock(current) < 0))
goto need_resched_nonpreemptible;
thanks for y
Hi,
I want to do the following from a kernel module or kernel code :
Read a byte from any page in physical memory. It doesn't matter if
that page is being used by a process or not.
>From an earlier post someone recommended I use ioremap() to map the
pages (build page tables) into the kernel and
Hello Mulyadi!
Nice to read you... :-)
# zcat /proc/config.gz | grep PREEMPT
# CONFIG_PREEMPT_NONE is not set
# CONFIG_PREEMPT_VOLUNTARY is not set
CONFIG_PREEMPT=y
CONFIG_PREEMPT_BKL=y
i see, and your HZ setting is? 250 I guess?
Right!
Oh, I think you've understood my measuring method i
On Wed, Jul 02, 2008 at 09:21:15AM -0400, William Case wrote:
> Are there tutorials, programs or git techniques that assist me in doing
> those kind of traces?
LXR was already mentioned. Also, have a look at 'make cscope' and your
$EDITORs capabilities with cscope-output. (Warning: cscope files ar
Hello Johannes,
The problem is not reproducible. I realise that the problem probably
has been fixed in more recent kernels, but I'd still like to know what
the fix was so that I can patch the kernel without upgrading.
On Tue, Jul 1, 2008 at 9:19 AM, Johannes Weiner <[EMAIL PROTECTED]> wrote:
> Hi
El Wed, Jul 02, 2008 at 06:38:52PM +0530 Rajat Jain ha dit:
>Although kmalloc() gives you 24 bytes per call that you can use,
>but internally it allocates in pages, and hence 1 page (=4K bytes in each
>iteration)
though kmalloc() usually wastes some memory in allocations it doesn't
wa
Hi!
On Wed, Jul 2, 2008 at 2:27 AM, Lukas Razik <[EMAIL PROTECTED]> wrote:
> I use the following preemption (krenel v.2.6.22):
> # zcat /proc/config.gz | grep PREEMPT
> # CONFIG_PREEMPT_NONE is not set
> # CONFIG_PREEMPT_VOLUNTARY is not set
> CONFIG_PREEMPT=y
> CONFIG_PREEMPT_BKL=y
i see, and yo
Hi...
On Wed, Jul 2, 2008 at 2:28 PM, gagan grover <[EMAIL PROTECTED]> wrote:
> Hi
> I have a requirement of creating 1M buffers of 24 bytes.
> So, my driver is calling kmalloc in loop but it is giving following panic
> after some iterations.
> System have 4 GB RAM and I was continuosly checking t
I am not sure if this is what you are looking for but I use LXR
http://lxr.linux.no/linux
You can search for the symbol and who uses it.
Regards,
-- Mark
On Jul 2, 2008, at 9:21 AM, William Case wrote:
Hi; I am a kernel newbie who is about to embark on "Kernel Hackers'
Guide to git". Up to
Could you send us the code snippet where you are allocating these
buffers?
-- Mark
On Jul 2, 2008, at 3:28 AM, gagan grover wrote:
Hi
I have a requirement of creating 1M buffers of 24 bytes.
So, my driver is calling kmalloc in loop but it is giving following
panic after some iterations.
Sy
Hi; I am a kernel newbie who is about to embark on "Kernel Hackers'
Guide to git". Up to now I have been tentatively using google:code to
check up on any kernel mysteries I might have had.
I am asking for pointers, not full descriptions; please excuse my kernel
terminology. As I say, I am a newb
Hi!
On Tue, Jul 1, 2008 at 11:56 PM, Peter Teoh <[EMAIL PROTECTED]> wrote:
> so effectively, the propagation of the interrupt processing is via
> kill_pgrp(). Correct? Which somehow...should flow back to
> userspace program's exception handler --> correct? (as decided and
> controlled by glib
Hi,
Although kmalloc() gives you 24 bytes per call that you can use, but
internally it allocates in pages, and hence 1 page (=4K bytes in each
iteration)
HTH,
Rajat
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of gagan grover
On Wed, Jul 02, 2008 at 11:18:09AM +0530, Shyamal Shukla wrote:
>I am trying to compile Linux kernel version 2.4.35. However, the computer
> hangs abruptly after some amount of code has been compiled. The same happens
> when i try hands on Linux 2.6.17.
>
> There is no fixed file at which the
Hi
I have a requirement of creating 1M buffers of 24 bytes.
So, my driver is calling kmalloc in loop but it is giving following panic
after some iterations.
System have 4 GB RAM and I was continuosly checking top, it had sufficient
memory to allocate.
--- [cut here ] - [please bite
19 matches
Mail list logo