public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] arch/unicore32/include/asm/ptrace.h: add generic definition for profile_pc()
@ 2014-03-24 12:54 Chen Gang
  2014-03-25  6:53 ` 回复: " 管雪涛
  0 siblings, 1 reply; 3+ messages in thread
From: Chen Gang @ 2014-03-24 12:54 UTC (permalink / raw)
  To: gxt, linux-kernel@vger.kernel.org

Add generic definition just like another architectures have done, or
can not pass compiling with allmodconfig, the related error:

    CC      kernel/profile.o
  kernel/profile.c: In function ‘profile_tick’:
  kernel/profile.c:419: error: implicit declaration of function ‘profile_pc’
  make[1]: *** [kernel/profile.o] Error 1
  make: *** [kernel] Error 2


Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
---
 arch/unicore32/include/asm/ptrace.h |    1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/unicore32/include/asm/ptrace.h b/arch/unicore32/include/asm/ptrace.h
index 9df53d9..02bf5a4 100644
--- a/arch/unicore32/include/asm/ptrace.h
+++ b/arch/unicore32/include/asm/ptrace.h
@@ -55,6 +55,7 @@ static inline int valid_user_regs(struct pt_regs *regs)
 
 #define instruction_pointer(regs)	((regs)->UCreg_pc)
 #define user_stack_pointer(regs)	((regs)->UCreg_sp)
+#define profile_pc(regs)		instruction_pointer(regs)
 
 #endif /* __ASSEMBLY__ */
 #endif
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* 回复: [PATCH] arch/unicore32/include/asm/ptrace.h: add generic definition for profile_pc()
  2014-03-24 12:54 [PATCH] arch/unicore32/include/asm/ptrace.h: add generic definition for profile_pc() Chen Gang
@ 2014-03-25  6:53 ` 管雪涛
  2014-03-25  7:12   ` Chen Gang
  0 siblings, 1 reply; 3+ messages in thread
From: 管雪涛 @ 2014-03-25  6:53 UTC (permalink / raw)
  To: Chen Gang; +Cc: gxt, linux-kernel

Thanks

Acked-by: Xuetao Guan <gxt@mprc.pku.edu.cn>

----- Chen Gang <gang.chen.5i5j@gmail.com> 写道:
> Add generic definition just like another architectures have done, or
> can not pass compiling with allmodconfig, the related error:
> 
>     CC      kernel/profile.o
>   kernel/profile.c: In function ‘profile_tick’:
>   kernel/profile.c:419: error: implicit declaration of function ‘profile_pc’
>   make[1]: *** [kernel/profile.o] Error 1
>   make: *** [kernel] Error 2
> 
> 
> Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
> ---
>  arch/unicore32/include/asm/ptrace.h |    1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/arch/unicore32/include/asm/ptrace.h b/arch/unicore32/include/asm/ptrace.h
> index 9df53d9..02bf5a4 100644
> --- a/arch/unicore32/include/asm/ptrace.h
> +++ b/arch/unicore32/include/asm/ptrace.h
> @@ -55,6 +55,7 @@ static inline int valid_user_regs(struct pt_regs *regs)
>  
>  #define instruction_pointer(regs)	((regs)->UCreg_pc)
>  #define user_stack_pointer(regs)	((regs)->UCreg_sp)
> +#define profile_pc(regs)		instruction_pointer(regs)
>  
>  #endif /* __ASSEMBLY__ */
>  #endif
> -- 
> 1.7.9.5


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: 回复: [PATCH] arch/unicore32/include/asm/ptrace.h: add generic definition for profile_pc()
  2014-03-25  6:53 ` 回复: " 管雪涛
@ 2014-03-25  7:12   ` Chen Gang
  0 siblings, 0 replies; 3+ messages in thread
From: Chen Gang @ 2014-03-25  7:12 UTC (permalink / raw)
  To: 管雪涛; +Cc: gxt, linux-kernel

On 03/25/2014 02:53 PM, 管雪涛 wrote:
> Thanks
> 
> Acked-by: Xuetao Guan <gxt@mprc.pku.edu.cn>
> 

Thank you too.

> ----- Chen Gang <gang.chen.5i5j@gmail.com> 写道:
>> Add generic definition just like another architectures have done, or
>> can not pass compiling with allmodconfig, the related error:
>>
>>     CC      kernel/profile.o
>>   kernel/profile.c: In function ‘profile_tick’:
>>   kernel/profile.c:419: error: implicit declaration of function ‘profile_pc’
>>   make[1]: *** [kernel/profile.o] Error 1
>>   make: *** [kernel] Error 2
>>
>>
>> Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
>> ---
>>  arch/unicore32/include/asm/ptrace.h |    1 +
>>  1 file changed, 1 insertion(+)
>>
>> diff --git a/arch/unicore32/include/asm/ptrace.h b/arch/unicore32/include/asm/ptrace.h
>> index 9df53d9..02bf5a4 100644
>> --- a/arch/unicore32/include/asm/ptrace.h
>> +++ b/arch/unicore32/include/asm/ptrace.h
>> @@ -55,6 +55,7 @@ static inline int valid_user_regs(struct pt_regs *regs)
>>  
>>  #define instruction_pointer(regs)	((regs)->UCreg_pc)
>>  #define user_stack_pointer(regs)	((regs)->UCreg_sp)
>> +#define profile_pc(regs)		instruction_pointer(regs)
>>  
>>  #endif /* __ASSEMBLY__ */
>>  #endif
>> -- 
>> 1.7.9.5
> 

-- 
Chen Gang

Open, share, and attitude like air, water, and life which God blessed

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-03-25  7:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-24 12:54 [PATCH] arch/unicore32/include/asm/ptrace.h: add generic definition for profile_pc() Chen Gang
2014-03-25  6:53 ` 回复: " 管雪涛
2014-03-25  7:12   ` Chen Gang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox