On Mon, Jan 19, 2015 at 2:55 PM, Minchan Kim minc...@kernel.org wrote:
Hello,
On Sun, Jan 18, 2015 at 04:32:59PM +0800, Hui Zhu wrote:
From: Hui Zhu zhu...@xiaomi.com
The original of this patch [1] is part of Joonsoo's CMA patch series.
I made a patch [2] to fix the issue of this patch
From: Hui Zhu zhu...@xiaomi.com
The original of this patch [1] is part of Joonsoo's CMA patch series.
I made a patch [2] to fix the issue of this patch. Joonsoo reminded me
that this issue affect current kernel too. So made a new one for upstream.
Current code treat free cma pages as non-free
From: Hui Zhu zhu...@xiaomi.com
To test the patch [1], I use KGTP and a script [2] to show NR_FREE_CMA_PAGES
and gross of cma_nr_free. The values are always not same.
I check the code of pages alloc and free and found that race conditions
on getting migratetype in buffered_rmqueue.
Then I add
On Wed, Jan 7, 2015 at 4:45 PM, Vlastimil Babka wrote:
> On 12/30/2014 11:17 AM, Hui Zhu wrote:
>> The original of this patch [1] is used to fix the issue in Joonsoo's CMA
>> patch
>> "CMA: always treat free cma pages as non-free on watermark checking"
On Wed, Jan 7, 2015 at 4:45 PM, Vlastimil Babka vba...@suse.cz wrote:
On 12/30/2014 11:17 AM, Hui Zhu wrote:
The original of this patch [1] is used to fix the issue in Joonsoo's CMA
patch
CMA: always treat free cma pages as non-free on watermark checking [2].
Joonsoo reminded me
data_breakpoint.ko can insert successful but cannot catch any change of
the data in my part because kallsyms_lookup_name rerurn 0 each time.
So add code to check the return value of kallsyms_lookup_name.
Signed-off-by: Hui Zhu
---
samples/hw_breakpoint/data_breakpoint.c | 17
data_breakpoint.ko can insert successful but cannot catch any change of
the data in my part because kallsyms_lookup_name rerurn 0 each time.
So add code to check the return value of kallsyms_lookup_name.
Signed-off-by: Hui Zhu zhu...@xiaomi.com
---
samples/hw_breakpoint/data_breakpoint.c | 17
ed twice. This bug will make
__zone_watermark_ok return more false.
This patch add cma_free_area to struct free_area that just record the number
of CMA pages. And add it back in the order loop to handle the substruct
twice issue.
[1] https://lkml.org/lkml/2014/12/25/43
[2] https://lkml.org/lkml/2014
On Tue, Dec 30, 2014 at 12:48 PM, Joonsoo Kim wrote:
> On Thu, Dec 25, 2014 at 05:43:26PM +0800, Hui Zhu wrote:
>> In Joonsoo's CMA patch "CMA: always treat free cma pages as non-free on
>> watermark checking" [1], it changes __zone_watermark_ok to substruct CMA
>&g
On Tue, Dec 30, 2014 at 12:48 PM, Joonsoo Kim iamjoonsoo@lge.com wrote:
On Thu, Dec 25, 2014 at 05:43:26PM +0800, Hui Zhu wrote:
In Joonsoo's CMA patch CMA: always treat free cma pages as non-free on
watermark checking [1], it changes __zone_watermark_ok to substruct CMA
pages number from
__zone_watermark_ok return more false.
This patch add cma_free_area to struct free_area that just record the number
of CMA pages. And add it back in the order loop to handle the substruct
twice issue.
[1] https://lkml.org/lkml/2014/12/25/43
[2] https://lkml.org/lkml/2014/5/28/110
Signed-off-by: Hui Zhu zhu
to
handle the issues.
And I merged cma_alloc_counter from [2] to cma_alloc work better.
This patchset is based on aa39477b5692611b91ac9455ae588738852b3f60 and [1].
[1] https://lkml.org/lkml/2014/5/28/64
[2] https://lkml.org/lkml/2014/10/15/623
Hui Zhu (3):
CMA: Fix the bug that CMA's page number
__rmqueue doesn't call __rmqueue_cma when
cma_alloc works.
[1] https://lkml.org/lkml/2014/10/24/26
Signed-off-by: Hui Zhu
---
include/linux/cma.h | 2 ++
mm/cma.c| 6 ++
mm/page_alloc.c | 8 +++-
3 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/include/linux
t
twice issue.
[1] https://lkml.org/lkml/2014/5/28/110
Signed-off-by: Hui Zhu
Signed-off-by: Weixing Liu
---
include/linux/mmzone.h | 3 +++
mm/page_alloc.c| 29 -
2 files changed, 31 insertions(+), 1 deletion(-)
diff --git a/include/linux/mmzone.h b/include/l
thers. This device allocated a lot of
MIGRATE_UNMOVABLE memory affect the behavior of this zone memory allocation.
This patch change __rmqueue to let nr_try_movable record all the memory
allocation of normal memory.
[1] https://lkml.org/lkml/2014/5/28/64
Signed-off-by: Hui Zhu
Signed-off-by: W
allocated a lot of
MIGRATE_UNMOVABLE memory affect the behavior of this zone memory allocation.
This patch change __rmqueue to let nr_try_movable record all the memory
allocation of normal memory.
[1] https://lkml.org/lkml/2014/5/28/64
Signed-off-by: Hui Zhu zhu...@xiaomi.com
Signed-off-by: Weixing Liu
/28/110
Signed-off-by: Hui Zhu zhu...@xiaomi.com
Signed-off-by: Weixing Liu liuweix...@xiaomi.com
---
include/linux/mmzone.h | 3 +++
mm/page_alloc.c| 29 -
2 files changed, 31 insertions(+), 1 deletion(-)
diff --git a/include/linux/mmzone.h b/include/linux
__rmqueue doesn't call __rmqueue_cma when
cma_alloc works.
[1] https://lkml.org/lkml/2014/10/24/26
Signed-off-by: Hui Zhu zhu...@xiaomi.com
---
include/linux/cma.h | 2 ++
mm/cma.c| 6 ++
mm/page_alloc.c | 8 +++-
3 files changed, 15 insertions(+), 1 deletion(-)
diff --git
to
handle the issues.
And I merged cma_alloc_counter from [2] to cma_alloc work better.
This patchset is based on aa39477b5692611b91ac9455ae588738852b3f60 and [1].
[1] https://lkml.org/lkml/2014/5/28/64
[2] https://lkml.org/lkml/2014/10/15/623
Hui Zhu (3):
CMA: Fix the bug that CMA's page number
On Fri, Oct 24, 2014 at 1:28 PM, Joonsoo Kim wrote:
> On Thu, Oct 16, 2014 at 11:35:51AM +0800, Hui Zhu wrote:
>> If page alloc function __rmqueue try to get pages from MIGRATE_MOVABLE and
>> conditions (cma_alloc_counter, cma_aggressive_free_min, cma_alloc_counter)
>&g
On Fri, Oct 24, 2014 at 1:28 PM, Joonsoo Kim iamjoonsoo@lge.com wrote:
On Thu, Oct 16, 2014 at 11:35:51AM +0800, Hui Zhu wrote:
If page alloc function __rmqueue try to get pages from MIGRATE_MOVABLE and
conditions (cma_alloc_counter, cma_aggressive_free_min, cma_alloc_counter)
allow
On Tue, Nov 4, 2014 at 3:53 PM, Minchan Kim wrote:
> Hello,
>
> On Wed, Oct 29, 2014 at 03:43:33PM +0100, Vlastimil Babka wrote:
>> On 10/16/2014 10:55 AM, Laura Abbott wrote:
>> >On 10/15/2014 8:35 PM, Hui Zhu wrote:
>> >
>> >It's good to see another pr
On Tue, Nov 4, 2014 at 3:53 PM, Minchan Kim minc...@kernel.org wrote:
Hello,
On Wed, Oct 29, 2014 at 03:43:33PM +0100, Vlastimil Babka wrote:
On 10/16/2014 10:55 AM, Laura Abbott wrote:
On 10/15/2014 8:35 PM, Hui Zhu wrote:
It's good to see another proposal to fix CMA utilization. Do you
On Wed, Oct 29, 2014 at 10:43 PM, Vlastimil Babka wrote:
> On 10/16/2014 10:55 AM, Laura Abbott wrote:
>>
>> On 10/15/2014 8:35 PM, Hui Zhu wrote:
>>
>> It's good to see another proposal to fix CMA utilization. Do you have
>> any data about the success rate o
ge list manipulates
>> */
>> list_del(>lru);
>> mt = get_freepage_migratetype(page);
>> + if (unlikely(has_isolate_pageblock(zone))) {
>
>
> How about adding an additional check for 'mt == MIGRAT
the
isolation is in progress. I am not sure this is the case on memory
offlining. How do you think?
I think the reason is that this mt may be not the right value of this page.
It is set without zone-lock.
Thanks,
Hui
+ mt = get_pageblock_migratetype(page
On Wed, Oct 29, 2014 at 10:43 PM, Vlastimil Babka vba...@suse.cz wrote:
On 10/16/2014 10:55 AM, Laura Abbott wrote:
On 10/15/2014 8:35 PM, Hui Zhu wrote:
It's good to see another proposal to fix CMA utilization. Do you have
any data about the success rate of CMA contiguous allocation after
On Fri, Oct 24, 2014 at 1:25 PM, Joonsoo Kim wrote:
> On Thu, Oct 16, 2014 at 11:35:47AM +0800, Hui Zhu wrote:
>> In fallbacks of page_alloc.c, MIGRATE_CMA is the fallback of
>> MIGRATE_MOVABLE.
>> MIGRATE_MOVABLE will use MIGRATE_CMA when it doesn't have a page in
>> o
On Fri, Oct 24, 2014 at 1:25 PM, Joonsoo Kim iamjoonsoo@lge.com wrote:
On Thu, Oct 16, 2014 at 11:35:47AM +0800, Hui Zhu wrote:
In fallbacks of page_alloc.c, MIGRATE_CMA is the fallback of
MIGRATE_MOVABLE.
MIGRATE_MOVABLE will use MIGRATE_CMA when it doesn't have a page in
order
too many
> pages are reclaimed, I guess.
Could you send more information about this part? I want to do some
test around it.
I use this way in my patch.
Thanks,
Hui
>
> So, I implement #2 approach.
> One thing I should note is that we should not change allocation target
> (mo
in that order and kswapd reclaim them in same order.
These memory doesn't help watermark checking from kwapd, so too many
pages are reclaimed, I guess.
Could you send more information about this part? I want to do some
test around it.
I use this way in my patch.
Thanks,
Hui
So, I implement #2
guous area, increase the value of
cma_alloc_counter. CMA_AGGRESSIVE will not work in page alloc code.
After reserve custom contiguous area function return, decreases the value of
cma_alloc_counter.
Signed-off-by: Hui Zhu
---
include/linux/cma.h | 7 +++
kernel/sysctl.c | 27 +++
Update this patch according to the comments from Rafael.
Function shrink_all_memory_for_cma try to free `nr_to_reclaim' of memory.
CMA aggressive shrink function will call this functon to free `nr_to_reclaim' of
memory.
Signed-off-by: Hui Zhu
---
mm/vmscan.c | 58
Update this patch according to the comments from Rafael.
Function shrink_all_memory_for_cma try to free `nr_to_reclaim' of memory.
CMA aggressive shrink function will call this functon to free `nr_to_reclaim' of
memory.
Signed-off-by: Hui Zhu zhu...@xiaomi.com
---
mm/vmscan.c | 58
. CMA_AGGRESSIVE will not work in page alloc code.
After reserve custom contiguous area function return, decreases the value of
cma_alloc_counter.
Signed-off-by: Hui Zhu zhu...@xiaomi.com
---
include/linux/cma.h | 7 +++
kernel/sysctl.c | 27 +++
mm/cma.c
In fallbacks of page_alloc.c, MIGRATE_CMA is the fallback of
MIGRATE_MOVABLE.
MIGRATE_MOVABLE will use MIGRATE_CMA when it doesn't have a page in
order that Linux kernel want.
If a system that has a lot of user space program is running, for
instance, an Android board, most of memory is in
is hibernate_preallocate_memory.
if not, the caller is CMA alloc function.
Signed-off-by: Hui Zhu
---
include/linux/swap.h| 3 ++-
kernel/power/snapshot.c | 2 +-
mm/vmscan.c | 19 +--
3 files changed, 16 insertions(+), 8 deletions(-)
diff --git a/include/linux/swap.h b/include
If page alloc function __rmqueue try to get pages from MIGRATE_MOVABLE and
conditions (cma_alloc_counter, cma_aggressive_free_min, cma_alloc_counter)
allow, MIGRATE_CMA will be allocated as MIGRATE_MOVABLE first.
Signed-off-by: Hui Zhu
---
mm/page_alloc.c | 42
work in page alloc code.
After reserve custom contiguous area function return, decreases the value of
cma_alloc_counter.
Signed-off-by: Hui Zhu
---
include/linux/cma.h | 7 +++
kernel/sysctl.c | 27 +++
mm/cma.c| 54
switch (sysctl vm.cma-aggressive-switch)
will be opened.
When system boot, this value will set to sysctl "vm.cma-aggressive-free-min".
If this value is true, sysctl "vm.cma-aggressive-shrink-switch" will be set to
true when Linux boot.
Signed-off-by: Hui Zhu
reserve custom contiguous area function return, decreases the value of
cma_alloc_counter.
Signed-off-by: Hui Zhu zhu...@xiaomi.com
---
include/linux/cma.h | 7 +++
kernel/sysctl.c | 27 +++
mm/cma.c| 54
switch (sysctl vm.cma-aggressive-switch)
will be opened.
When system boot, this value will set to sysctl vm.cma-aggressive-free-min.
If this value is true, sysctl vm.cma-aggressive-shrink-switch will be set to
true when Linux boot.
Signed-off-by: Hui Zhu zhu...@xiaomi.com
---
mm/Kconfig | 43
is hibernate_preallocate_memory.
if not, the caller is CMA alloc function.
Signed-off-by: Hui Zhu zhu...@xiaomi.com
---
include/linux/swap.h| 3 ++-
kernel/power/snapshot.c | 2 +-
mm/vmscan.c | 19 +--
3 files changed, 16 insertions(+), 8 deletions(-)
diff --git a/include/linux
If page alloc function __rmqueue try to get pages from MIGRATE_MOVABLE and
conditions (cma_alloc_counter, cma_aggressive_free_min, cma_alloc_counter)
allow, MIGRATE_CMA will be allocated as MIGRATE_MOVABLE first.
Signed-off-by: Hui Zhu zhu...@xiaomi.com
---
mm/page_alloc.c | 42
In fallbacks of page_alloc.c, MIGRATE_CMA is the fallback of
MIGRATE_MOVABLE.
MIGRATE_MOVABLE will use MIGRATE_CMA when it doesn't have a page in
order that Linux kernel want.
If a system that has a lot of user space program is running, for
instance, an Android board, most of memory is in
-off-by: Hui Zhu
---
drivers/staging/android/lowmemorykiller.c | 4
1 file changed, 4 insertions(+)
diff --git a/drivers/staging/android/lowmemorykiller.c
b/drivers/staging/android/lowmemorykiller.c
index b545d3d..ca1ffac 100644
--- a/drivers/staging/android/lowmemorykiller.c
+++ b/drivers
-off-by: Hui Zhu zhu...@xiaomi.com
---
drivers/staging/android/lowmemorykiller.c | 4
1 file changed, 4 insertions(+)
diff --git a/drivers/staging/android/lowmemorykiller.c
b/drivers/staging/android/lowmemorykiller.c
index b545d3d..ca1ffac 100644
--- a/drivers/staging/android/lowmemorykiller.c
This patch have been tested by Lisa and me and it's success.
We created 4 VM guests and reboot them every 10 minutes for 12 hours around,
and this issue is gone with the patch.
Please add Lisa and me to the "tested by:" list.
Tested-by: Mitchell, Lisa
Tested-by: Zhao, Hui Zhi
This patch have been tested by Lisa and me and it's success.
We created 4 VM guests and reboot them every 10 minutes for 12 hours around,
and this issue is gone with the patch.
Please add Lisa and me to the "tested by:" list.
Tested-by: Mitchell, Lisa
Tested-by: Zhao, Hui Zhi
This patch have been tested by Lisa and me and it's success.
We created 4 VM guests and reboot them every 10 minutes for 12 hours around,
and this issue is gone with the patch.
Please add Lisa and me to the tested by: list.
Tested-by: Mitchell, Lisa lisa.mitch...@hp.com
Tested-by: Zhao, Hui
This patch have been tested by Lisa and me and it's success.
We created 4 VM guests and reboot them every 10 minutes for 12 hours around,
and this issue is gone with the patch.
Please add Lisa and me to the tested by: list.
Tested-by: Mitchell, Lisa lisa.mitch...@hp.com
Tested-by: Zhao, Hui
On 07/03/2014 05:05 PM, Jan Kiszka wrote:
On 2014-07-03 10:59, Hui Wang wrote:
On 07/03/2014 03:04 PM, Jan Kiszka wrote:
On 2014-07-01 11:26, Hui Wang wrote:
On 07/01/2014 03:38 PM, Jan Kiszka wrote:
On 2014-07-01 04:15, Hui Wang wrote:
On 06/30/2014 02:45 PM, Jan Kiszka wrote:
On 2014-06
On 07/03/2014 03:04 PM, Jan Kiszka wrote:
On 2014-07-01 11:26, Hui Wang wrote:
On 07/01/2014 03:38 PM, Jan Kiszka wrote:
On 2014-07-01 04:15, Hui Wang wrote:
On 06/30/2014 02:45 PM, Jan Kiszka wrote:
On 2014-06-30 04:04, Hui Wang wrote:
On 06/29/2014 07:33 PM, Jan Kiszka wrote:
On 2013-11
On 07/03/2014 03:04 PM, Jan Kiszka wrote:
On 2014-07-01 11:26, Hui Wang wrote:
On 07/01/2014 03:38 PM, Jan Kiszka wrote:
On 2014-07-01 04:15, Hui Wang wrote:
On 06/30/2014 02:45 PM, Jan Kiszka wrote:
On 2014-06-30 04:04, Hui Wang wrote:
On 06/29/2014 07:33 PM, Jan Kiszka wrote:
On 2013-11
On 07/03/2014 05:05 PM, Jan Kiszka wrote:
On 2014-07-03 10:59, Hui Wang wrote:
On 07/03/2014 03:04 PM, Jan Kiszka wrote:
On 2014-07-01 11:26, Hui Wang wrote:
On 07/01/2014 03:38 PM, Jan Kiszka wrote:
On 2014-07-01 04:15, Hui Wang wrote:
On 06/30/2014 02:45 PM, Jan Kiszka wrote:
On 2014-06
On 07/01/2014 03:38 PM, Jan Kiszka wrote:
On 2014-07-01 04:15, Hui Wang wrote:
On 06/30/2014 02:45 PM, Jan Kiszka wrote:
On 2014-06-30 04:04, Hui Wang wrote:
On 06/29/2014 07:33 PM, Jan Kiszka wrote:
On 2013-11-27 07:47, Hui Wang wrote:
Most Thinkpad Edge series laptops use conexant codec
On 07/01/2014 03:38 PM, Jan Kiszka wrote:
On 2014-07-01 04:15, Hui Wang wrote:
On 06/30/2014 02:45 PM, Jan Kiszka wrote:
On 2014-06-30 04:04, Hui Wang wrote:
On 06/29/2014 07:33 PM, Jan Kiszka wrote:
On 2013-11-27 07:47, Hui Wang wrote:
Most Thinkpad Edge series laptops use conexant codec
On 06/30/2014 02:45 PM, Jan Kiszka wrote:
On 2014-06-30 04:04, Hui Wang wrote:
On 06/29/2014 07:33 PM, Jan Kiszka wrote:
On 2013-11-27 07:47, Hui Wang wrote:
Most Thinkpad Edge series laptops use conexant codec, so far although
the codecs have different minor Vendor Id and minor Subsystem Id
My name is Kong Hui from Hong Kong, I want you to be my partner in a
business project.
If Interested Contact me back via my email address.
Thank you,
Mr. Kong Hui.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message
My name is Kong Hui from Hong Kong, I want you to be my partner in a
business project.
If Interested Contact me back via my email address.
Thank you,
Mr. Kong Hui.
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
On 06/30/2014 02:45 PM, Jan Kiszka wrote:
On 2014-06-30 04:04, Hui Wang wrote:
On 06/29/2014 07:33 PM, Jan Kiszka wrote:
On 2013-11-27 07:47, Hui Wang wrote:
Most Thinkpad Edge series laptops use conexant codec, so far although
the codecs have different minor Vendor Id and minor Subsystem Id
On 06/29/2014 07:33 PM, Jan Kiszka wrote:
On 2013-11-27 07:47, Hui Wang wrote:
Most Thinkpad Edge series laptops use conexant codec, so far although
the codecs have different minor Vendor Id and minor Subsystem Id,
they all belong to the cxt5066 family, this change can make the
mute/mic-mute
On 06/29/2014 07:33 PM, Jan Kiszka wrote:
On 2013-11-27 07:47, Hui Wang wrote:
Most Thinkpad Edge series laptops use conexant codec, so far although
the codecs have different minor Vendor Id and minor Subsystem Id,
they all belong to the cxt5066 family, this change can make the
mute/mic-mute
My name is Kong Hui from Hong Kong, I want you to be my partner in a
business project.
If Interested Contact me back via my email address.
Thank you,
Mr. Kong Hui.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message
My name is Kong Hui from Hong Kong, I want you to be my partner in a
business project.
If Interested Contact me back via my email address.
Thank you,
Mr. Kong Hui.
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
Currently, we have more filesystems supporting fallocate, e.g
ext4/btrfs. Remove the outdated comment for madvise_remove.
Signed-off-by: Wang Sheng-Hui
---
mm/madvise.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/mm/madvise.c b/mm/madvise.c
index a402f8f..0938b30 100644
--- a/mm
Currently, we have more filesystems supporting fallocate, e.g
ext4/btrfs. Remove the outdated comment for madvise_remove.
Signed-off-by: Wang Sheng-Hui shh...@gmail.com
---
mm/madvise.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/mm/madvise.c b/mm/madvise.c
index a402f8f..0938b30
Ping.
Thanks,
Hui
On Mon, May 5, 2014 at 8:00 PM, Hui Zhu wrote:
> cat gdb.base/interrupt.c
> #include
> #include
> #include
> #include
>
> #ifdef SIGNALS
> #include
>
> static void
> sigint_handler (int signo)
> {
> }
> #endif
>
> int
&g
Ping.
Thanks,
Hui
On Mon, May 5, 2014 at 8:00 PM, Hui Zhu h...@codesourcery.com wrote:
cat gdb.base/interrupt.c
#include errno.h
#include stdio.h
#include unistd.h
#include stdlib.h
#ifdef SIGNALS
#include signal.h
static void
sigint_handler (int signo)
{
}
#endif
int
main
I am a bank director from Hong Kong, I want you to be my partner in a
business project of mutual benefit. Get back to me if interested.
Thank you,
Kong Hui.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kerne
I am a bank director from Hong Kong, I want you to be my partner in a
business project of mutual benefit. Get back to me if interested.
Thank you,
Kong Hui.
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More
to the comments of Christoph, Geoff and Andi. I make KGTP
function lite patch for Linux kernel upstream. Please goto
http://lkml.org/lkml/2013/11/21/7 to got it.
Thanks,
Hui
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kerne
to the comments of Christoph, Geoff and Andi. I make KGTP
function lite patch for Linux kernel upstream. Please goto
http://lkml.org/lkml/2013/11/21/7 to got it.
Thanks,
Hui
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More
On 05/01/14 00:28, Hui Zhu wrote:
On Wed, Apr 30, 2014 at 9:35 PM, Mark Kettenis wrote:
>>> Date: Tue, 29 Apr 2014 22:10:15 -0700
>>> From: "H. Peter Anvin"
>>>
>>> On 04/29/2014 10:08 PM, Andrew Pinski wrote:
>>>>
>>>
xtension in arch/x86/asm/syscall.h:syscall_get_error(),
> we could work around to problem in GDB by checking "orig_ax" to see if
> we're continuing an interrupted system call and sign extend the error
> code in the real "eax" register if we are.
I will update patch in
http
register if we are.
I will update patch in
https://sourceware.org/ml/gdb-patches/2014-04/msg00429.html
according to this comments.
Thanks,
Hui
Signed-off-by: Hui Zhu h...@codesourcery.com
---
--- a/arch/x86/kernel/ptrace.c
+++ b/arch/x86/kernel/ptrace.c
@@ -452,6 +452,23 @@ static int putreg
On 05/01/14 00:28, Hui Zhu wrote:
On Wed, Apr 30, 2014 at 9:35 PM, Mark Kettenis mark.kette...@xs4all.nl wrote:
Date: Tue, 29 Apr 2014 22:10:15 -0700
From: H. Peter Anvin h...@zytor.com
On 04/29/2014 10:08 PM, Andrew Pinski wrote:
restoring the values is hard since even the ptrace
On Tue, Apr 22, 2014 at 12:33 AM, H. Peter Anvin wrote:
> On 04/21/2014 09:19 AM, Hui Zhu wrote:
>> }
>> Now ax is in 32 bits now, need sign-extend to 64 bits. But
>> current_thread_info()->status TS_COMPAT is cleared when GDB call "call
>> func1()".
>
On Tue, Apr 22, 2014 at 12:33 AM, H. Peter Anvin h...@zytor.com wrote:
On 04/21/2014 09:19 AM, Hui Zhu wrote:
}
Now ax is in 32 bits now, need sign-extend to 64 bits. But
current_thread_info()-status TS_COMPAT is cleared when GDB call call
func1().
Linux kernel don't know this is a 32 bits
*
Call for Topics and Sponsors
Workshop on Open Source Development Tools 2014 (i.e. HelloGCC Workshop)
Beijing, China
Sep. 13rd, 2014 (TBD)
HelloGCC Work Group (www.hellogcc.org)
*
Call for Topics and Sponsors
Workshop on Open Source Development Tools 2014 (i.e. HelloGCC Workshop)
Beijing, China
Sep. 13rd, 2014 (TBD)
HelloGCC Work Group (www.hellogcc.org)
a errno in ERESTARTSYS.
To fix this issue, I tried to add a local variable to "do_signal" but
it is not works. The stack is cleared before GDB "continue".
so I make a patch that add "test_thread_flag (TIF_IA32)" to syscall_get_error.
Signed-off-by: H
but
it is not works. The stack is cleared before GDB continue.
so I make a patch that add test_thread_flag (TIF_IA32) to syscall_get_error.
Signed-off-by: Hui Zhu h...@codesourcery.com
---
--- a/arch/x86/include/asm/syscall.h
+++ b/arch/x86/include/asm/syscall.h
@@ -48,7 +48,8 @@ static inline long
--
Hello my dear friend,
I am sorry for intruding, my name is John Hui and i have an urgent
financial transaction that i could use your support in concluding for
a sizeable profit/reward.My contact with you is based on my
understanding that with trust,commitment and mutual respect we
--
Hello my dear friend,
I am sorry for intruding, my name is John Hui and i have an urgent
financial transaction that i could use your support in concluding for
a sizeable profit/reward.My contact with you is based on my
understanding that with trust,commitment and mutual respect we
t the data of module list, this script is
slower than getmod.
Signed-off-by: Hui Zhu
---
--- /dev/null
+++ b/scripts/getmod.py
@@ -0,0 +1,151 @@
+#!/usr/bin/python
+
+# This script is used by GDB to load the symbols from Linux kernel modules
+# Copyright(C) KGTP team (https://kgtp.googlecode.com),
tory.
-hDisplay this information.
Signed-off-by: Hui Zhu
---
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -16,6 +16,7 @@ help:
@echo ' vm - misc vm tools'
@echo ' x86_energy_perf_policy - Intel energy policy tool'
@echo ' tmon - thermal monitoring and t
Display this information.
Signed-off-by: Hui Zhu teawa...@gmail.com
---
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -16,6 +16,7 @@ help:
@echo ' vm - misc vm tools'
@echo ' x86_energy_perf_policy - Intel energy policy tool'
@echo ' tmon - thermal monitoring
list, this script is
slower than getmod.
Signed-off-by: Hui Zhu teawa...@gmail.com
---
--- /dev/null
+++ b/scripts/getmod.py
@@ -0,0 +1,151 @@
+#!/usr/bin/python
+
+# This script is used by GDB to load the symbols from Linux kernel modules
+# Copyright(C) KGTP team (https://kgtp.googlecode.com
it.
And I also post it with this mail.
Signed-off-by: Hui Zhu
---
--- a/arch/arc/kernel/kgdb.c
+++ b/arch/arc/kernel/kgdb.c
@@ -61,6 +61,7 @@ void pt_regs_to_gdb_regs(unsigned long *
to_gdb_regs(gdb_regs, kernel_regs, (struct callee_regs *)
current->thread.callee_
it.
And I also post it with this mail.
Signed-off-by: Hui Zhu teawa...@gmail.com
---
--- a/arch/arc/kernel/kgdb.c
+++ b/arch/arc/kernel/kgdb.c
@@ -61,6 +61,7 @@ void pt_regs_to_gdb_regs(unsigned long *
to_gdb_regs(gdb_regs, kernel_regs, (struct callee_regs *)
current
> -Original Message-
> From: Kalle Valo [mailto:kv...@qca.qualcomm.com]
> Sent: Tuesday, November 26, 2013 6:40 PM
> To: Liu Hui-R64343
> Cc: linux-arm-ker...@lists.infradead.org; linvi...@tuxdriver.com; linux-
> wirel...@vger.kernel.org; net...@vger.kernel
-Original Message-
From: Kalle Valo [mailto:kv...@qca.qualcomm.com]
Sent: Tuesday, November 26, 2013 6:40 PM
To: Liu Hui-R64343
Cc: linux-arm-ker...@lists.infradead.org; linvi...@tuxdriver.com; linux-
wirel...@vger.kernel.org; net...@vger.kernel.org; linux-
ker...@vger.kernel.org
On Mon, Sep 16, 2013 at 12:50 AM, Andi Kleen wrote:
> On Sun, Sep 15, 2013 at 03:58:44PM +0800, Hui Zhu wrote:
>> Hi guys,
>>
>> KGTP (http://code.google.com/p/kgtp/) is a flexible, lightweight and
>> realtime Linux debugger and tracer.
>> To use it, you don'
On Mon, Sep 16, 2013 at 12:50 AM, Andi Kleen a...@firstfloor.org wrote:
On Sun, Sep 15, 2013 at 03:58:44PM +0800, Hui Zhu wrote:
Hi guys,
KGTP (http://code.google.com/p/kgtp/) is a flexible, lightweight and
realtime Linux debugger and tracer.
To use it, you don't need patch or rebuild
space program that base
on Uprobes. The most of code work was done. Please goto
https://github.com/teawater/kgtp/tree/uprobes-dev try it if you are
interesting with this function.
Thanks,
Hui
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of
space program that base
on Uprobes. The most of code work was done. Please goto
https://github.com/teawater/kgtp/tree/uprobes-dev try it if you are
interesting with this function.
Thanks,
Hui
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message
Should check the return value of kzalloc first to avoid the null pointer.
Then can dereference the non-null pointer to access the fields of struct
resource.
Signed-off-by: Wang Sheng-Hui
---
arch/tile/kernel/setup.c |4
1 file changed, 4 insertions(+)
diff --git a/arch/tile/kernel
>From f41f64e7f668b86e47059a030cbdcf406c70682c Mon Sep 17 00:00:00 2001
From: Jeffrey Chu
Date: Wed, 21 Aug 2013 09:41:19 -0400
Subject: [PATCH] Add bcm2079x-i2c to drivers/misc
bcm2079x-i2c is the transport driver that supports bcm2079x Controller.
this driver provides basic read(), write(),
From f41f64e7f668b86e47059a030cbdcf406c70682c Mon Sep 17 00:00:00 2001
From: Jeffrey Chu jeff...@broadcom.com
Date: Wed, 21 Aug 2013 09:41:19 -0400
Subject: [PATCH] Add bcm2079x-i2c to drivers/misc
bcm2079x-i2c is the transport driver that supports bcm2079x Controller.
this driver provides basic
501 - 600 of 907 matches
Mail list logo