On 17.11.2015 4:58, yalin wang wrote:
>
>> On Nov 17, 2015, at 10:43, Steven Rostedt wrote:
>>
>> On Tue, 17 Nov 2015 10:21:47 +0800
>> yalin wang wrote:
>>
>>
>>
>> Because the print_fmt has nothing to do with the fields. You can have
>> as your print_fmt as:
>>
>> TP_printk("Message = %s"
> On Nov 17, 2015, at 10:43, Steven Rostedt wrote:
>
> On Tue, 17 Nov 2015 10:21:47 +0800
> yalin wang wrote:
>
>
>> i have not tried ,
>> just a question,
>> if you print a %s , but don’t call trace_define_field() do define this
>> string in
>> __entry , how does user space perf tool to ge
On Tue, 17 Nov 2015 10:21:47 +0800
yalin wang wrote:
> i have not tried ,
> just a question,
> if you print a %s , but don’t call trace_define_field() do define this string
> in
> __entry , how does user space perf tool to get this string info and print it
> ?
> i am curious ..
> i can try
> On Nov 16, 2015, at 22:25, Steven Rostedt wrote:
>
> On Mon, 16 Nov 2015 11:16:22 +0100
> Vlastimil Babka wrote:
>>
-- Steve
>>> it is not easy to print for perf tools in userspace ,
>>> if you use this format ,
>>> for user space perf tool, it print the entry by look up the member in
On Mon, 16 Nov 2015 11:16:22 +0100
Vlastimil Babka wrote:
>
> >> -- Steve
> > it is not easy to print for perf tools in userspace ,
> > if you use this format ,
> > for user space perf tool, it print the entry by look up the member in entry
> > struct by offset ,
> > you print a dynamic string
On Mon, 16 Nov 2015 09:35:53 +0800
yalin wang wrote:
> > On Nov 13, 2015, at 22:01, Steven Rostedt wrote:
> >
> > On Fri, 13 Nov 2015 19:54:11 +0800
> > yalin wang wrote:
> >
> > TP_fast_assign(
> > __entry->mm = mm;
> > - __entry->pfn = pfn
On 11/16/2015 02:35 AM, yalin wang wrote:
On Nov 13, 2015, at 22:01, Steven Rostedt wrote:
On Fri, 13 Nov 2015 19:54:11 +0800
yalin wang wrote:
TP_fast_assign(
__entry->mm = mm;
- __entry->pfn = pfn;
+ __entry->pfn = page_to_pfn(page);
> On Nov 13, 2015, at 22:01, Steven Rostedt wrote:
>
> On Fri, 13 Nov 2015 19:54:11 +0800
> yalin wang wrote:
>
> TP_fast_assign(
> __entry->mm = mm;
> - __entry->pfn = pfn;
> + __entry->pfn = page_to_pfn(page);
Instead of the condition,
On Fri, 13 Nov 2015 19:54:11 +0800
yalin wang wrote:
> >>> TP_fast_assign(
> >>> __entry->mm = mm;
> >>> - __entry->pfn = pfn;
> >>> + __entry->pfn = page_to_pfn(page);
> >>
> >> Instead of the condition, we could have:
> >>
> >>__entry->pfn = page ? page_to_pf
> On Nov 13, 2015, at 18:47, Vlastimil Babka wrote:
>
> On 11/12/2015 03:29 PM, Steven Rostedt wrote:
>> On Thu, 12 Nov 2015 16:21:02 +0800
>> yalin wang wrote:
>>
>>> This crash is caused by NULL pointer deference, in page_to_pfn() marco,
>>> when page == NULL :
>>>
>>> [ 182.639154 ] Unabl
On 11/12/2015 03:29 PM, Steven Rostedt wrote:
On Thu, 12 Nov 2015 16:21:02 +0800
yalin wang wrote:
This crash is caused by NULL pointer deference, in page_to_pfn() marco,
when page == NULL :
[ 182.639154 ] Unable to handle kernel NULL pointer dereference at virtual
address
add
> On Nov 13, 2015, at 16:41, Hillf Danton wrote:
>
>>
>> Instead of the condition, we could have:
>>
>> __entry->pfn = page ? page_to_pfn(page) : -1;
>>
>>
>> But if there's no reason to do the tracepoint if page is NULL, then
>> this patch is fine. I'm just throwing out this idea.
>>
>
> Instead of the condition, we could have:
>
> __entry->pfn = page ? page_to_pfn(page) : -1;
>
>
> But if there's no reason to do the tracepoint if page is NULL, then
> this patch is fine. I'm just throwing out this idea.
>
we trace only if page is valid
--- linux-next/mm/huge_memory.
On Thu, 12 Nov 2015 16:21:02 +0800
yalin wang wrote:
> This crash is caused by NULL pointer deference, in page_to_pfn() marco,
> when page == NULL :
>
> [ 182.639154 ] Unable to handle kernel NULL pointer dereference at virtual
> address
> add the trace point with TP_CONDITION(page)
This crash is caused by NULL pointer deference, in page_to_pfn() marco,
when page == NULL :
[ 182.639154 ] Unable to handle kernel NULL pointer dereference at virtual
address
[ 182.639491 ] pgd = ffc00077a000
[ 182.639761 ] [] *pgd=b9422003, *pud=b9422003,
15 matches
Mail list logo