gettimeofday not initialized?

Josh Stone jistone@redhat.com
Thu Mar 24 16:54:00 GMT 2011


On 03/23/2011 11:54 PM, Zhiwei Ying wrote:
> ERROR: gettimeofday not initialized near identifier 'gettimeofday_ns'
> at /ddtv/tracedrv/ubuntu10.4/systemtap-1.4-bin/share/systemtap/tapset/timestamp_gtod.stp:2

We can't help much if you only give us the error message.  At the
minimum, we need to know what script you were using, and what options
you used with stap.  But even more information is better:
  http://sourceware.org/systemtap/wiki/HowToReportBugs

> traceauto: systemtap: 1.4/0.149, base: e0fcd000, memory:
> 761data/441text/17ctx/13net/163alloc kb, probes: 1681
> BUG: using smp_processor_id() in preemptible [00000000] code: stapio/1890
> caller is _stp_cleanup_and_exit+0x359/0x3c0 [traceauto]
> Pid: 1890, comm: stapio Tainted: G        W   2.6.35 #8
> Call Trace:
>  [<c11d3a42>] ? debug_smp_processor_id+0xc2/0xe0
>  [<e103a299>] ? _stp_cleanup_and_exit+0x359/0x3c0 [traceauto]
>  [<e103a340>] ? _stp_ctl_write_cmd+0x0/0x12ce [traceauto]
>  [<e103a463>] ? _stp_ctl_write_cmd+0x123/0x12ce [traceauto]
>  [<c1435905>] ? add_preempt_count+0xa5/0xd0
>  [<c143268a>] ? _raw_spin_lock_irqsave+0x1a/0x40
>  [<c1028a08>] ? get_parent_ip+0x8/0x20
>  [<c143582f>] ? sub_preempt_count+0x6f/0xa0
>  [<c1028a08>] ? get_parent_ip+0x8/0x20
>  [<c1435905>] ? add_preempt_count+0xa5/0xd0
>  [<c143268a>] ? _raw_spin_lock_irqsave+0x1a/0x40
>  [<c1028a08>] ? get_parent_ip+0x8/0x20
>  [<c143582f>] ? sub_preempt_count+0x6f/0xa0
>  [<c14323ce>] ? _raw_spin_unlock_irqrestore+0xe/0x30
>  [<e0fd2472>] ? _stp_ctl_read_cmd+0x122/0x190 [traceauto]
>  [<c121a27b>] ? tty_write+0x1cb/0x230
>  [<e103a340>] ? _stp_ctl_write_cmd+0x0/0x12ce [traceauto]
>  [<c10a26a8>] ? vfs_write+0xa8/0x170
>  [<c10a3039>] ? fget_light+0x99/0xc0
>  [<c10a2832>] ? sys_write+0x42/0x70
>  [<c1002c50>] ? sysenter_do_call+0x12/0x26



More information about the Systemtap mailing list