summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | | | | | | | | PR6429: testsuite update for inexact backtrace toleranceFrank Ch. Eigler2008-06-032-18/+22
| | | | | | | | | | | |
* | | | | | | | | | | | PR6429: remove stapio STP_UNWIND support and associated elfutils dependencyFrank Ch. Eigler2008-06-039-52/+30
| | | | | | | | | | | |
* | | | | | | | | | | | Support for new clone flags before linux-2.6.25.Zhaolei2008-06-032-0/+13
| | | | | | | | | | | |
* | | | | | | | | | | | PR6534: add a comment blurb explaining sufficiency UTS_RELEASE compile-time ↵Frank Ch. Eigler2008-06-021-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | check
* | | | | | | | | | | | PR6534: make do without uts_sem (about to be unexported from 2.6.26-mm)Frank Ch. Eigler2008-06-022-20/+15
| | | | | | | | | | | |
* | | | | | | | | | | | Use the -r option of avahi-browse to obtain the ip addressDave Brolley2008-06-022-28/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and port of the server.
* | | | | | | | | | | | Fix compile error caused by PATH_MAX in F9.Zhaolei2008-06-021-0/+1
| | | | | | | | | | | |
* | | | | | | | | | | | Fix the problem that kernel module compile failure when runtimeZhaolei2008-06-022-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | directory is set to relative path(stap -R).
* | | | | | | | | | | | Merge branch 'master' of ssh://sources.redhat.com/git/systemtapDave Brolley2008-05-304-42/+30
|\ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | make "make cscope" tolerate a read-only or separate source treeFrank Ch. Eigler2008-05-304-42/+30
| | | | | | | | | | | | |
* | | | | | | | | | | | | New systemptap compile client and server scripts.Dave Brolley2008-05-302-0/+1024
|/ / / / / / / / / / / /
* | | | | | | | | | | | PR 6562, Modify SYSTEMTAP_DEBUGINFO_PATH behaviour.Srikar Dronamraju2008-05-305-7/+18
| | | | | | | | | | | |
* | | | | | | | | | | | Add debuginfo path for self-built kernel in systemtap.base/debugpath.expWenji Huang2008-05-302-1/+5
| | | | | | | | | | | |
* | | | | | | | | | | | Fix PR 6582: verify CONTEXT->regs in [u_]register()Jim Keniston2008-05-296-7/+40
| | | | | | | | | | | |
* | | | | | | | | | | | Add a cscope target to the MakefileJosh Stone2008-05-295-208/+47
| | | | | | | | | | | |
* | | | | | | | | | | | SW5106 Remove old map and histogram formatting codeStan Cox2008-05-29110-7133/+19
| | | | | | | | | | | |
* | | | | | | | | | | | Fix powerpc dwarfless argument accessAnanth N Mavinakayanahalli2008-05-293-66/+48
| | | | | | | | | | | |
* | | | | | | | | | | | Make sure that return statements don't override existing errors.Josh Stone2008-05-282-0/+10
| | | | | | | | | | | |
* | | | | | | | | | | | Check that errors in nested functions are not lost on returnJosh Stone2008-05-283-0/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently this test fails, as noted in bugzilla 6529.
* | | | | | | | | | | | Correct redirect of stderr in testsuite. Make installcheck not depend on clean.Mark Wielaard2008-05-283-4/+9
| | | | | | | | | | | |
* | | | | | | | | | | | Removed debug print.David Smith2008-05-282-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-05-28 David Smith <dsmith@redhat.com> * tapsets.cxx (utrace_derived_probe_group::emit_module_decls): Removed debug print.
* | | | | | | | | | | | Handle bug #6500 fallout.David Smith2008-05-284-66/+152
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-05-28 David Smith <dsmith@redhat.com> * tapsets.cxx (utrace_derived_probe_group::emit_probe_decl): Instead of adding clone handlers, just call the probes directly. (utrace_derived_probe_group::emit_module_decls): For syscall probes, on exec detach the parent's utrace engine from the child. 2008-05-28 David Smith <dsmith@redhat.com> * task_finder.c (__stp_utrace_attach_match_filename): Added register_p parameter, which is passed on to the callback. Only adds death notification if register_p is 1. If register_p is 0, removes death notification. (__stp_utrace_attach_match_tsk): Moved code from __stp_utrace_task_finder_report_clone that handles the details of grabbing a task's path. (__stp_utrace_task_finder_report_clone): Calls new __stp_utrace_attach_match_tsk(). (__stp_utrace_task_finder_report_exec): Notifies upper layer that it might need to detach from newly exec'ed process.`
* | | | | | | | | | | | Minor improvement to multi-threaded support.David Smith2008-05-284-10/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-05-21 David Smith <dsmith@redhat.com> * tapsets.cxx (utrace_derived_probe_group::emit_module_decls): Added new 'event_flag' parameter to task_finder callback. Only calls probe handlers if we received the correct event. 2008-05-21 David Smith <dsmith@redhat.com> * task_finder.c (__stp_utrace_attach_match_filename): Added event_flag parameter of event to pass to callback. (__stp_utrace_task_finder_target_death): Ditto. (__stp_utrace_task_finder_report_clone): Calls __stp_utrace_attach_match_filename() with new argument. (__stp_utrace_task_finder_report_exec): Ditto. (stap_start_task_finder): Calls callback with an invalid event_flag since this callback call isn't related to an event.
* | | | | | | | | | | | Merge branch 'master' of ssh://sources.redhat.com/git/systemtapFrank Ch. Eigler2008-05-2810-44/+136
|\ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 'master' of ssh://sources.redhat.com/git/systemtap: Create user based cache dir in testsuite. Refresh cscope.files. Add prototypes for using the 2.6.26 probe_kernel_* functions.
| * | | | | | | | | | | | Create user based cache dir in testsuite.Mark Wielaard2008-05-284-5/+16
| | | | | | | | | | | | |
| * | | | | | | | | | | | Refresh cscope.files.Josh Stone2008-05-271-1/+1
| | | | | | | | | | | | |
| * | | | | | | | | | | | Add prototypes for using the 2.6.26 probe_kernel_* functions.Josh Stone2008-05-275-38/+120
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For now, the autoconf for the new code is disabled, because it shows poorer performance than our existing dereferencing functions. This is probably because ours get inlined and optimized. The code is being committed so that we may re-evaluate its usefulness in the future. This addresses bugzilla 6432.
* | | | | | | | | | | | | Revert "testsuite: use catch{close}catch{wait} to ensure child process ↵Frank Ch. Eigler2008-05-2846-70/+82
|/ / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | pipe/zombie cleanup" This reverts commit 7938bd829dfd82c40b35d536b5913e666c1454d2.
* | | | | | | | | | | | normalize test case PASS messageFrank Ch. Eigler2008-05-271-1/+1
| | | | | | | | | | | |
* | | | | | | | | | | | testsuite: use catch{close}catch{wait} to ensure child process pipe/zombie ↵Frank Ch. Eigler2008-05-2746-82/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cleanup
* | | | | | | | | | | | Fix regparm() on i686 & x86_64.Josh Stone2008-05-272-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It doesn't seem that regparm() is actually used, but I saw compilation errors when I compiled with -u.
* | | | | | | | | | | | stmtvars.exp regexp tweakFrank Ch. Eigler2008-05-262-6/+9
| | | | | | | | | | | |
* | | | | | | | | | | | Only include fdtable.h for kernel versions > 2.6.25.Mark Wielaard2008-05-262-0/+5
| | | | | | | | | | | |
* | | | | | | | | | | | Include fdtable.h in task.stp for 2.6.26 and format signal.stpwenji2008-05-263-6/+11
| | | | | | | | | | | |
* | | | | | | | | | | | Correct signal.stp for 2.6.26wenji2008-05-262-5/+22
| | | | | | | | | | | |
* | | | | | | | | | | | Merge branch 'master' of ssh://wenji@sources.redhat.com/git/systemtapwenji2008-05-260-0/+0
|\ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | PR6550: add comment justifying "execrc"Frank Ch. Eigler2008-05-242-0/+4
| | | | | | | | | | | | |
| * | | | | | | | | | | | PR6550: also EXTRA_DIST the little "execrc" helper script fileFrank Ch. Eigler2008-05-242-2/+2
| | | | | | | | | | | | |
| * | | | | | | | | | | | PR6550: --enable-dejazilla: optional automatic test result reportingFrank Ch. Eigler2008-05-248-24/+94
| | | | | | | | | | | | |
| * | | | | | | | | | | | Fixed arg #3 type in nd_syscall.accept.Jim Keniston2008-05-231-1/+1
| | | | | | | | | | | | |
| * | | | | | | | | | | | Address powerpc dwarfless test failures.Jim Keniston2008-05-232-9/+57
| | | | | | | | | | | | |
| * | | | | | | | | | | | tapset cleanup: nfs kernel?,module? -> kernel!,moduleFrank Ch. Eigler2008-05-233-80/+89
| | | | | | | | | | | | |
| * | | | | | | | | | | | testsuite cleanup: kfailing some FOO-all-probes testsFrank Ch. Eigler2008-05-234-2/+13
| | | | | | | | | | | | |
| * | | | | | | | | | | | rpc tapset cleanupFrank Ch. Eigler2008-05-232-81/+91
| | | | | | | | | | | | |
| * | | | | | | | | | | | Srinivasa DS <srinivasa@in.ibm.com>,PR6429 Inerim fix to avoid compilation ↵Srikar Dronamraju2008-05-232-0/+25
| | |_|_|_|_|_|_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | error of systemtap module
* | | | | | | | | | | | PR6550: add comment justifying "execrc"Frank Ch. Eigler2008-05-252-0/+4
| | | | | | | | | | | |
* | | | | | | | | | | | PR6550: also EXTRA_DIST the little "execrc" helper script fileFrank Ch. Eigler2008-05-252-2/+2
| | | | | | | | | | | |
* | | | | | | | | | | | PR6550: --enable-dejazilla: optional automatic test result reportingFrank Ch. Eigler2008-05-258-24/+94
| | | | | | | | | | | |
* | | | | | | | | | | | Fixed arg #3 type in nd_syscall.accept.Jim Keniston2008-05-251-1/+1
| | | | | | | | | | | |
* | | | | | | | | | | | Address powerpc dwarfless test failures.Jim Keniston2008-05-252-9/+57
| | | | | | | | | | | |
WriteIP(&bp->bp_giaddr, 0); memcpy (bp->bp_chaddr, NetOurEther, 6); copy_filename (bp->bp_file, BootFile, sizeof(bp->bp_file)); /* Request additional information from the BOOTP/DHCP server */ #if defined(CONFIG_CMD_DHCP) ext_len = DhcpExtended((u8 *)bp->bp_vend, DHCP_DISCOVER, 0, 0); #else ext_len = BootpExtended((u8 *)bp->bp_vend); #endif /* * Bootp ID is the lower 4 bytes of our ethernet address * plus the current time in ms. */ BootpID = ((ulong)NetOurEther[2] << 24) | ((ulong)NetOurEther[3] << 16) | ((ulong)NetOurEther[4] << 8) | (ulong)NetOurEther[5]; BootpID += get_timer(0); BootpID = htonl(BootpID); NetCopyLong(&bp->bp_id, &BootpID); /* * Calculate proper packet lengths taking into account the * variable size of the options field */ pktlen = ((int)(pkt-NetTxPacket)) + BOOTP_HDR_SIZE - sizeof(bp->bp_vend) + ext_len; iplen = BOOTP_HDR_SIZE - sizeof(bp->bp_vend) + ext_len; NetSetIP(iphdr, 0xFFFFFFFFL, PORT_BOOTPS, PORT_BOOTPC, iplen); NetSetTimeout(SELECT_TIMEOUT, BootpTimeout); #if defined(CONFIG_CMD_DHCP) dhcp_state = SELECTING; NetSetHandler(DhcpHandler); #else NetSetHandler(BootpHandler); #endif NetSendPacket(NetTxPacket, pktlen); } #if defined(CONFIG_CMD_DHCP) static void DhcpOptionsProcess (uchar * popt, Bootp_t *bp) { uchar *end = popt + BOOTP_HDR_SIZE; int oplen, size; #if defined(CONFIG_CMD_SNTP) && defined(CONFIG_BOOTP_TIMEOFFSET) int *to_ptr; #endif while (popt < end && *popt != 0xff) { oplen = *(popt + 1); switch (*popt) { case 1: NetCopyIP (&NetOurSubnetMask, (popt + 2)); break; #if defined(CONFIG_CMD_SNTP) && defined(CONFIG_BOOTP_TIMEOFFSET) case 2: /* Time offset */ to_ptr = &NetTimeOffset; NetCopyLong ((ulong *)to_ptr, (ulong *)(popt + 2)); NetTimeOffset = ntohl (NetTimeOffset); break; #endif case 3: NetCopyIP (&NetOurGatewayIP, (popt + 2)); break; case 6: NetCopyIP (&NetOurDNSIP, (popt + 2)); #if defined(CONFIG_BOOTP_DNS2) if (*(popt + 1) > 4) { NetCopyIP (&NetOurDNS2IP, (popt + 2 + 4)); } #endif break; case 12: size = truncate_sz ("Host Name", sizeof (NetOurHostName), oplen); memcpy (&NetOurHostName, popt + 2, size); NetOurHostName[size] = 0; break; case 15: /* Ignore Domain Name Option */ break; case 17: size = truncate_sz ("Root Path", sizeof (NetOurRootPath), oplen); memcpy (&NetOurRootPath, popt + 2, size); NetOurRootPath[size] = 0; break; #if defined(CONFIG_CMD_SNTP) && defined(CONFIG_BOOTP_NTPSERVER) case 42: /* NTP server IP */ NetCopyIP (&NetNtpServerIP, (popt + 2)); break; #endif case 51: NetCopyLong (&dhcp_leasetime, (ulong *) (popt + 2)); break; case 53: /* Ignore Message Type Option */ break; case 54: NetCopyIP (&NetDHCPServerIP, (popt + 2)); break; case 58: /* Ignore Renewal Time Option */ break; case 59: /* Ignore Rebinding Time Option */ break; case 66: /* Ignore TFTP server name */ break; case 67: /* vendor opt bootfile */ /* * I can't use dhcp_vendorex_proc here because I need * to write into the bootp packet - even then I had to * pass the bootp packet pointer into here as the * second arg */ size = truncate_sz ("Opt Boot File", sizeof(bp->bp_file), oplen); if (bp->bp_file[0] == '\0' && size > 0) { /* * only use vendor boot file if we didn't * receive a boot file in the main non-vendor * part of the packet - god only knows why * some vendors chose not to use this perfectly * good spot to store the boot file (join on * Tru64 Unix) it seems mind bogglingly crazy * to me */ printf("*** WARNING: using vendor " "optional boot file\n"); memcpy(bp->bp_file, popt + 2, size); bp->bp_file[size] = '\0'; } break; default: #if defined(CONFIG_BOOTP_VENDOREX) if (dhcp_vendorex_proc (popt)) break; #endif printf ("*** Unhandled DHCP Option in OFFER/ACK: %d\n", *popt); break; } popt += oplen + 2; /* Process next option */ } } static int DhcpMessageType(unsigned char *popt) { if (NetReadLong((ulong*)popt) != htonl(BOOTP_VENDOR_MAGIC)) return -1; popt += 4; while ( *popt != 0xff ) { if ( *popt == 53 ) /* DHCP Message Type */ return *(popt + 2); popt += *(popt + 1) + 2; /* Scan through all options */ } return -1; } static void DhcpSendRequestPkt(Bootp_t *bp_offer) { volatile uchar *pkt, *iphdr; Bootp_t *bp; int pktlen, iplen, extlen; IPaddr_t OfferedIP; debug("DhcpSendRequestPkt: Sending DHCPREQUEST\n"); pkt = NetTxPacket; memset ((void*)pkt, 0, PKTSIZE); pkt += NetSetEther(pkt, NetBcastAddr, PROT_IP); iphdr = pkt; /* We'll need this later to set proper pkt size */ pkt += IP_HDR_SIZE; bp = (Bootp_t *)pkt; bp->bp_op = OP_BOOTREQUEST; bp->bp_htype = HWT_ETHER; bp->bp_hlen = HWL_ETHER; bp->bp_hops = 0; bp->bp_secs = htons(get_timer(0) / 1000); /* Do not set the client IP, your IP, or server IP yet, since it hasn't been ACK'ed by * the server yet */ /* * RFC3046 requires Relay Agents to discard packets with * nonzero and offered giaddr */ NetWriteIP(&bp->bp_giaddr, 0); memcpy (bp->bp_chaddr, NetOurEther, 6); /* * ID is the id of the OFFER packet */ NetCopyLong(&bp->bp_id, &bp_offer->bp_id); /* * Copy options from OFFER packet if present */ /* Copy offered IP into the parameters request list */ NetCopyIP(&OfferedIP, &bp_offer->bp_yiaddr); extlen = DhcpExtended((u8 *)bp->bp_vend, DHCP_REQUEST, NetDHCPServerIP, OfferedIP); pktlen = ((int)(pkt-NetTxPacket)) + BOOTP_HDR_SIZE - sizeof(bp->bp_vend) + extlen; iplen = BOOTP_HDR_SIZE - sizeof(bp->bp_vend) + extlen; NetSetIP(iphdr, 0xFFFFFFFFL, PORT_BOOTPS, PORT_BOOTPC, iplen); debug("Transmitting DHCPREQUEST packet: len = %d\n", pktlen); #ifdef CONFIG_BOOTP_DHCP_REQUEST_DELAY udelay(CONFIG_BOOTP_DHCP_REQUEST_DELAY); #endif /* CONFIG_BOOTP_DHCP_REQUEST_DELAY */ NetSendPacket(NetTxPacket, pktlen); } /* * Handle DHCP received packets. */ static void DhcpHandler(uchar * pkt, unsigned dest, unsigned src, unsigned len) { Bootp_t *bp = (Bootp_t *)pkt; debug("DHCPHandler: got packet: (src=%d, dst=%d, len=%d) state: %d\n", src, dest, len, dhcp_state); if (BootpCheckPkt(pkt, dest, src, len)) /* Filter out pkts we don't want */ return; debug("DHCPHandler: got DHCP packet: (src=%d, dst=%d, len=%d) state: %d\n", src, dest, len, dhcp_state); switch (dhcp_state) { case SELECTING: /* * Wait an appropriate time for any potential DHCPOFFER packets * to arrive. Then select one, and generate DHCPREQUEST response. * If filename is in format we recognize, assume it is a valid * OFFER from a server we want. */ debug("DHCP: state=SELECTING bp_file: \"%s\"\n", bp->bp_file); #ifdef CONFIG_SYS_BOOTFILE_PREFIX if (strncmp(bp->bp_file, CONFIG_SYS_BOOTFILE_PREFIX, strlen(CONFIG_SYS_BOOTFILE_PREFIX)) == 0 ) { #endif /* CONFIG_SYS_BOOTFILE_PREFIX */ debug("TRANSITIONING TO REQUESTING STATE\n"); dhcp_state = REQUESTING; if (NetReadLong((ulong*)&bp->bp_vend[0]) == htonl(BOOTP_VENDOR_MAGIC)) DhcpOptionsProcess((u8 *)&bp->bp_vend[4], bp); NetSetTimeout(TIMEOUT, BootpTimeout); DhcpSendRequestPkt(bp); #ifdef CONFIG_SYS_BOOTFILE_PREFIX } #endif /* CONFIG_SYS_BOOTFILE_PREFIX */ return; break; case REQUESTING: debug("DHCP State: REQUESTING\n"); if ( DhcpMessageType((u8 *)bp->bp_vend) == DHCP_ACK ) { char *s; if (NetReadLong((ulong*)&bp->bp_vend[0]) == htonl(BOOTP_VENDOR_MAGIC)) DhcpOptionsProcess((u8 *)&bp->bp_vend[4], bp); BootpCopyNetParams(bp); /* Store net params from reply */ dhcp_state = BOUND; printf ("DHCP client bound to address %pI4\n", &NetOurIP); /* Obey the 'autoload' setting */ if ((s = getenv("autoload")) != NULL) { if (*s == 'n') { /* * Just use BOOTP to configure system; * Do not use TFTP to load the bootfile. */ NetState = NETLOOP_SUCCESS; return; #if defined(CONFIG_CMD_NFS) } else if (strcmp(s, "NFS") == 0) { /* * Use NFS to load the bootfile. */ NfsStart(); return; #endif } } TftpStart(); return; } break; case BOUND: /* DHCP client bound to address */ break; default: puts ("DHCP: INVALID STATE\n"); break; } } void DhcpRequest(void) { BootpRequest(); } #endif /* CONFIG_CMD_DHCP */