Programming :: Way To Find The Task Switches From Gdb Coredump?

Mar 15, 2011

I have a coredump file which gives stacktrace. But I dont know which thread executed or any task switches happened before a crash happened from a given thread. is there anyway to find out.

View 3 Replies


ADVERTISEMENT

Programming :: Counting Context Switches On Thread?

Jun 10, 2010

I have done some searching around the internet and this site, but I haven't found a good way to count the context switches on a thread in a c++ program I am running. I need to know if it get swapped off of a CPU for correct timing.

View 4 Replies View Related

Programming :: RedHat 8.0 - Monitoring Context Switches

Apr 22, 2011

As a part of a school project I am working on monitoring context switches. I'm working on redhat 8.0, kernel version 2.4.18-14 and for some reason I keep getting unclassified reasons which causing context switches from a process to itself. I am trying to determine each context switch, what was the reason that causes it, whether time slice ended, or yielded, or went for waiting or returned from waiting or parameters changed or task ended to task forked or any possible reason.

But all the time I find that the only switches that I cannot determine the reason happens from a process to itself, all this unrecognized switches from process to itself happens only on interactive processes, and sometimes the need_resched flag is on and sometimes is off. What could possibly cause a context switch from a process to itself? Can a returning of a process with a lower (higher by number) priority from waiting cause a context switch?

View 2 Replies View Related

Programming :: How Switches Controlling Code Compilation

Aug 28, 2009

I had been working on a CPP code for sometime now, without being aware that some parts of its code, especially security related were not being compiled. Problem was like my product did not work for SSL mode. On analysis, I found that some part of CPP codes inside a switch(ENABLE_SSL_LIBRARY)were not getting compiled at all. And also that this gets set when we do newgrp crypto command on the box. This left me without lots of doubts. I wanted to understand how these switches work and if this switch was propreitary to my code or something related to Linux.

My questions now are:
1. Switches like the one mentioned above, are they user defined, for my particular code or are they related to Linux/GCC or makefiles?
2.If a user can define such switches to control code compilation, then need to know the concepts/procedures behind it. How is it done ?

Kindly excuse if these are very very basic. But since I could not get proper stuffs on google, I thought I should ask some experts here who could either explain me or point me to appropriate resources (links of articles / tutorials)

View 1 Replies View Related

Programming :: Using Switches - Allow Program To Run In Debug Mode

Nov 23, 2010

I want to allow my program to be able to run in DEBUG mode. i.e., I want to be able to run ./program, and I want to be able to run ./program -v to show all the debug output. How do I go about setting up something like that?

View 3 Replies View Related

General :: Find What Task Is Running On A Particular Cpu Core?

Sep 17, 2010

I am using Kernel 2.6.35.4 on an Intel Core2Duo based system.

1) I have to find on which core a particular task is running on .
OR
2) I have to just log whenever my task is scheduled on any of the cores with the cpu core number & timestamp info. I am ready to modify the kernel to do printk or some logging . I guess there used to be 2 fields called 'processor' and 'last_processor' in task_struct in older kernels which probably had this information .

So what do I do to find out on which core a particular task is running on ?

Or ,

Are there any utilities that are simple-to-use and can display the tasks that are running on each of the cores , including the cpu core info ? top , mpstat etc do not tell you on which cpu core a task is running on .

View 2 Replies View Related

CentOS 5 :: Solution For Eclipse Coredump ?

Jul 4, 2011

I have been using Eclipse(Helios) in centos5. my eclipse is getting core dumped frequently.is there any solution to solve this coredump.

###################################################
# vi /etc/security/limits.conf
Make sure the following config directive exists:[code]..........

View 10 Replies View Related

Fedora :: Can Not Find Option To Make Task-bar Transparent

Jan 10, 2010

i am sorry, but i can not find the option to make the taskbar transparant.i have kde 4.3.4

View 8 Replies View Related

Software :: Inittab Application Can't Generate Coredump

Mar 24, 2010

We have to run our applications under /etc/inittab, we can get coredump with os solaris. After we move our platform to LINUX, we just find our application reset itself for a couple of times without any coredump generate.

View 1 Replies View Related

Programming :: Using Stdout For More Than One Task?

Jun 30, 2009

I want to parse my mail log file and reuse the results but I'm having a hard time structuring the syntax. Something like:

Code:

grep hostname /var/log/mail.log |
grep NOQUEUE: |
sed -e 's/hostname postfix/smtpd/[[0-9]*]: //g'

at this point I want to redirect what I have in hand to a file but also ... fork? or split? whatever the term, to continue onward so that I can pipe the results further into wc -l or sort or programX. without having to re-loop through that huge log file.

View 2 Replies View Related

OpenSUSE :: Tasks Overlap In Task Bar (system Tray / Task Manager)?

Jun 26, 2011

Anybody knows how to fix overlapping tasks in KDE system taskbar?Here System Monitor overlaps with digiKamWorkaround to rearrange icons - start any new task.Sorry for taking real photo of the screen. When I do PrintScreen KSnapShot task appears in the list and makes all task to rearrange. The resulting screenshot contains already fixed view.

View 5 Replies View Related

Ubuntu Installation :: Task Manager Or Task Bar, Keeps Changing Length?

May 29, 2011

After upgrading from 10.10 to 11.04 all of a sudden, the task manager or task bar, keeps changing length. The individual window "buttons" themselves keep changing size - flashing even, and the space between them also changes. It is driving me nuts! The little system tray(?) icons no longer appear in the system tray, but all stacked on top of each other in the top left corner.

View 1 Replies View Related

General :: Launching A Task From Cli And Divorcing It From Terminal Task?

Feb 10, 2011

How do you launch a task from a terminal command line interface and it not be kill'ed if you close the terminal window. Like if I run jedit I type jedit & which launches jedit as a backgorund task. But, if I close terminal window, jedit dies to. How do I laucnch jedit and completely divorce it from the terminal task?

View 6 Replies View Related

Debian Programming :: ANT Script Task Failing

Mar 8, 2010

Using ant with

Code: Select all<script language="jython" manager="auto">

is failing

BUILD FAILED
/root/dawndusk/times_build.xml:25: Unable to create javax script engine for jython
at org.apache.tools.ant.util.optional.JavaxScriptRunner.evaluateScript(JavaxScriptRunner.java:86)
at org.apache.tools.ant.util.optional.JavaxScriptRunner.executeScript(JavaxScriptRunner.java:69)

I have ant-optional installed. Do I need to register specific languages?

Apache Ant version 1.8.0 compiled on February 20 2010

Detected Java version: 1.6 in: /usr/lib/jvm/java-6-openjdk/jre

View 1 Replies View Related

Programming :: Continue Execution Of A Python Program While A Background Task Is Going On?

Aug 28, 2010

I'm trying to figure out how to continue execution of a Python program while a background task is going on.

In bash, it is adding "&" to the end as in:

Code:
#! /bin/bash
find / -iname "*.py" > /tmp/all_pys &
echo "looking for all python scripts and putting them in /tmp/all_pys"
(yes, I know I could just put the echo BEFORE the find but I just use it for example)

Say I do that in python (not necessarily running the shell, but perhaps using scriptutil.ffind or something similar), but want to allow the user to be doing something else while running that search in the background, how would I thread, fork, subprocess (not to be confused with the module and Popen) [or whatever I should call it] that?

View 14 Replies View Related

General :: Evolution Task List Reminder (sync With Phone And Online Task List)

May 19, 2011

I have my task list in evolution (mainly so it can sync with my phone and online task list) but I always forget to look at the task list. Is there an application or plugin which periodically displays the contents of the tasklist or even better, it briefly displays the most urgent/important tasks when I login? Or anything else which automatically displays the most important tasks. Currently I have to open the task list and look at them (which I usually forget). I do not mean some kind of alarm when the task is due but more a daily reminder of what to do.

View 3 Replies View Related

Programming :: Kernel Module - Task_struct / Files Struct, Open_fds, And The Open File Descriptors In Task?

May 1, 2010

This for Kernel 2.6.29.6. I'm trying to code a kernel module that displays process information.

how to count opened file descriptors per task. I have been able to write a module that lists all the current process names along with their pid number in /var/log/messages. Basically, I cycle through the ring of processes using the macro for_each_process(task) and printk the comm and pid of each task. I'm trying to see how many file descriptors each task has open. I've been reading up in books and all over the internet. At first I thought I needed to access max_fds under files_struct, but that just lists the maximum number of file descriptors that can be opened per task, which by default is set at 256. I then thought about counting the elements in the fd_array. But then I learned that every task's fd_array is initially set at 32. Now I know that I need to access open_fds of type fd_set * in files_struct. open_fds is a pointer to all the open file descriptors. The problem is that I don't know how to access a pointer of type fd_set.

Is there a good guide or book that really focuses on type fd_set and open_fds? Every book and resource I've read never really go into depth on this. relationship between files struct, open_fds, and the open file descriptors in task?

View 4 Replies View Related

Programming :: Unable To Find Description Of Alsa's Programming Language

Dec 19, 2008

I am unable to find a description of alsa's programing language, this sort of stuff:

[Code]...

I need to know what, for example, 'ttable' means and what is its syntax. This seems to be a state secret.

View 2 Replies View Related

Programming :: Way To Find Core Files In System With Out Using "Find" Command

Jul 30, 2010

Is there any way to find the core files with out using the FIND command?

View 1 Replies View Related

Ubuntu :: Monitor Switches Off - Cannot Get It To Restart

Aug 19, 2010

I'm running ubuntu 10.04 on a new pc I just bought. Every so often the monitor will just shut down and display a message: "no signal input". I'm sure the computer is still running though because the fan is still running and all lights etc. are still on. I've tried switching the monitor on and off and there is still no input signal, the only solution is to reboot the entire computer.

View 9 Replies View Related

OpenSUSE Network :: Combining Vncviewer Switches ?

Mar 21, 2011

I use vncviewer (win32) to connect to my SuSE 11.3 box. The SuSE box has the "standard" xinetd started Xvnc server running (includes the -inetd switch).

My client (the vncviewer) has to go through a firewall with limited ports available and so I use the command line:

Code:

However, if there is a problem with the connection, such that the client disconnects, it seems that subsequent request to the Xvnc server create a new session/display. The text in the client window reports "nobody's x11 desktop (host:1)", then "...(host:2)", then "...(host:3)" etc.

I have tried combining the display and the port parameters, like this:

Code:

Can anyone suggest an alternative way of reconnecting to a broken vnc session?

View 1 Replies View Related

Ubuntu :: HID Foot Switches Into Command Mode

Jan 9, 2010

I purchased a foot pedal [URL], which I want to use as a substitute for the ALT, CTRL and SHIFT key (Mainly in my texteditor, Emacs, where these modifiers are used a lot for commands). So instead of pressing ALT+x I want to press the left pedal + x. However, instead of going into the command mode it just types x to the screen. If I keep the pedal pressed, and type another x, it switches into command mode, like it should have done right away. The device seems to use HID, and lsusb gives:
Bus 005 Device 004: ID 1130:660c Tenx Technology, Inc.
Is there a way, how I can change the behaviour of the device?

View 3 Replies View Related

Ubuntu :: Firefox Switches My Desktop When Maximize It

Apr 26, 2010

Sometimes when firefox is open, clicking the firefox icon on the taskbar to maximize firefox rotates my desktop to the next one over. Super annoying, as I have to go and rotate back. Is there a fix to this problem? I think it has something to do with a pop-up that never gets attention when it needs it. Unfortunately, I don't know a good way to reproduce this problem on command yet.

View 1 Replies View Related

Ubuntu :: Monitor That Switches Off During Xubuntu 10.04 Install ?

Jun 21, 2010

Basically I have some Linux experience and have got myself an "old-but-good-machine".

I'm sure the Xubuntu 10.04 cd is OK as I can boot into it with my Windows laptop.

But... for whatever reason I can't boot it under the Live CD or Install options in my old computer?

As soon as I hit one of the options the monitor switches off after a few seconds?

I've tested the computer with a live backtrack cd and gparted live cd which both run fine so it must be something I'm missing in Xubuntu.

View 9 Replies View Related

Ubuntu :: Screen Switches Blank Randomly?

Sep 12, 2010

I have just installed 10.04 x86 for my mom and while she is using it (tyrannically just browsing facebook/email/flash games) the screen randomly goes blank then back to normal again. This symptom generally worsens after a few minutes until it is unusable. Specs are as follows:

Athlon X2 5200+
3GB RAM
ATi 2400pro 256MB (using the standard out of the box drivers)

Also running compiz and emerald so that I was able to make the desktop look like OS X.

View 5 Replies View Related

Ubuntu :: 11.04 - Login Screen Switches Over To XFCE?

May 10, 2011

I'm running Ubuntu 11.04 on my laptop. At work, we are beginning to tinker with running Ubuntu on our student systems (school district). The thing is, Unity and Gnome Shell are new enough that they are not considered right now as viable options to test in. That said, an alternative was needed that was quick on older systems yet very configurable. XFCE. So I installed XFCE on my Ubuntu machine. This way I can tinker with the interface as if I was a student but then I can bounce back to Unity which I do prefer for personal use. The thing is, the login screen switches over to XFCE's. Is there a way to get my regular Ubuntu login screen back?

View 6 Replies View Related

Ubuntu Networking :: NIC Bonding - Teaming And Switches ?

Jun 20, 2011

I have a question about bonded NICs and the switches they are connected to.

I have a server which needs to send a lot of data to another server quickly. Both have multiple GbE NICs. I understand what is required at the server end (I think) in that a pseudo-interface is created such as bond0 with the IP applied to that interface rather than eth0 and eth1.

My question relates to the connection between the servers, i.e. the switch. Is a specific type of switch required for this to work, as an IP will have 2 (or more) MAC addresses associated with it, or how does the switch decide to which port to route the traffic for the bond0 IP?

Also, will this only work when multiple connections are being made? What I mean is, will each individual TCP connection only use either the physical eth0 OR the physical eth1 interface, or can a single connection make use of the aggregated bandwidth, sending one packet to one physical interface and another to the other physical interface, using the bond0 IP as the destination?

What I am trying to work out is if I had a storage server connected to an application server and exporting storage using NFS or GlusterFS, would an aggregated link improve throughput?

View 7 Replies View Related

Hardware :: Installed Slackware 13 - Laptop Switches Off

Aug 29, 2009

This morning I installed Slackware 13 i386 and started configuring it. I've got a problem as my laptop has turned off unexpectedly twice since I started using Slack 13. I don't know if it's related to Slackware 13 but it has never happened before on this laptop with Slackware 12.2 or any other system. The first guess would be overheating. I checked the laptop's BIOS but could not find anything related to cooling down.

The laptop seems quite hot but it's nothing unusual for it. I also noticed that acpi is not installed by default. Would it make much difference? The laptop is pretty new (6 months) and the cooling module seems to be clean. The only thing that differs from my previous installations is that for the first time I installed ATI's fglrx and enabled desktop effects. Could it be a buggy video driver?

View 13 Replies View Related

Networking :: Nagios - How To Handle Transparent Switches

Jan 26, 2010

I'm configuring Nagios at the moment, but I'm doubting my approach to transparent switches a bit. It seems from reading the documentation that Nagios wants me to ignore transparent switches, although I also doubt this interpretation of mine.

A little example, a VPN:
Code:
demarcation point
|
[router]
/
[switch][switch]
| / |
[7 clients] [switch] [switch]
/ |
[6 clients] [4 clients] [5 clients]

As you can see, there are 22 clients connected to the router. Since switches don't have an address, they cannot be measured. But if I ignore the switches, the schema is an oversimplified picture of reality. So what I'm looking for is a way to display the switches, even though they don't have an address. What I did was, I created the switches as where they proper fully featured ones, and listening to 127.0.0.1 as address. Luckily, this tricked Nagios. And it works, but it's not very elegant. Is there a better way to approach this pseudo-problem? Perhaps a build-in I overlooked?

View 10 Replies View Related

Networking :: Switches Losing Connectivity - Not Accessible?

Feb 12, 2009

I have 2 cisco sw 3500xl series working properly forwarding traffic. All operations are Layer 2. I have setup keep alive 10 on all the ports. They are connected to another sw together with a Linux router on Cent OS 5.2. I can't ping the switches from the Linux box. If I arping them, I get a response and after that they are accessible for telnet. Otherwise they are not. After 5min the macs are flushed from the arp table of the Linux box, and then again they are not accessible only if I arping them, or set a static mac.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved