Re: shared memory via /dev/shm?

2015-07-30 Thread Valdis . Kletnieks
On Thu, 30 Jul 2015 16:03:51 -0700, Nicholas Murphy said: Yes, I’ve read all the disclaimers against accessing files in the kernel, but I want to set up a shared memory segment between a kernel module and one or more user processes, and /dev/shm seems like a good way to do that. Is there

Re: debugging kernel module __init function?

2015-08-04 Thread Valdis . Kletnieks
On Tue, 04 Aug 2015 12:23:18 -0700, Nicholas Murphy said: How do I debug the __init function (that is called on module load)? Is your .init function actually doing so much odd stuff that a few carefully placed printk() calls aren't sufficient? pgpAYpKItGKDg.pgp Description: PGP signature

Re: What Next After Char, Block, Serial Parallel Drivers

2015-08-13 Thread Valdis . Kletnieks
On Tue, 11 Aug 2015 17:48:16 -, Sasha Mckinsey said: What should be the next steps besides looking for a job. That's for *you* to decide, not for us to suggest. Do authors go around asking What sort of book should I write? No - because unless the author was interested in writing a gothic

Re: Kernel options to boot root over NFS

2015-08-07 Thread Valdis . Kletnieks
On Fri, 07 Aug 2015 22:38:11 -, Nestor Waldyd said: but all this *withouth* success. You really need to be more specific regarding its failure to succeed. Did you run a tcpdump to see the traffic? How far did it get? Did it pxeboot? Did it successfully DHCP itself an address, or did it

Re: Please do not generate patches purely based on checkpatch.

2015-07-26 Thread Valdis . Kletnieks
On Sun, 26 Jul 2015 13:05:37 +0530, Yogesh Chaudhari said: However, is there a place which documents which maintainers(and/or sub-systems) accept checkpatch(or other cleanup related) patches and who will reject them outright? Wouldn't it be good to have this documented, especially given that

Re: Obfuscate code GPL 2 - The source uses kernel structs and GPL2 API

2015-07-21 Thread Valdis . Kletnieks
On Tue, 21 Jul 2015 15:49:22 -0300, Lucas Tanure said: Hi, This company released a obfuscated kernel module in GPL 2. http://www.incentivespro.com/downloads.html So, they didn't release the code at all. This is ok ? This against the law ? We're code hackers here. If the

Re: Fuzzing scheduler CFS

2015-07-22 Thread Valdis . Kletnieks
On Wed, 22 Jul 2015 10:30:47 +0300, Meyer Lansky said: I would like to improve the code, but has not found a practical method of finding errors. Bugs in the scheduler almost always manifest in one of two ways: 1) Truly spectacular crashes or hangs where you *know* you've found a bug. 2) Find

Re: Obfuscate code GPL 2 - The source uses kernel structs and GPL2 API

2015-07-21 Thread Valdis . Kletnieks
On Tue, 21 Jul 2015 20:13:48 -, Jeff Haran said: But it seems to me that if it builds, then they’ve released the code. No - the GPLv2 says: The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means

Re: HOSTAPD Error log

2015-07-23 Thread Valdis . Kletnieks
On Thu, 23 Jul 2015 12:31:18 +0530, Amit Gupta said: Configuration file: /etc/hostapd.conf [ 199.672712] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready Failed to update rate sets in kernel module [ 199.687566] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready Using interface

Re: About Low Hanging Fruits

2015-07-14 Thread Valdis . Kletnieks
On Mon, 13 Jul 2015 13:11:57 -0400, Robert P. J. Day said: actually, one area of low-hanging fruit is the Documentation/ directory, which could always use some attention. documentation is always getting out of date, so pick a subsystem and clean up the docs. Good catch, I'll add it to my

Re: Configuration settings for WM8850 wolfson audio codec

2015-07-15 Thread Valdis . Kletnieks
On Wed, 15 Jul 2015 12:26:29 +0530, bineet said: I need to check setting done for WM8850 wolfson audio codec chip. I tried browsing linux code, but couldn't find any clue. Could someone please help with the same? Hmm.. are you sure it's an audio codec chip? WMB8850 appears to be an entire

Re: goto???

2015-07-17 Thread Valdis . Kletnieks
On Fri, 17 Jul 2015 10:48:53 +0200, Martin Knappe said: Very easy: On Fri, 17 Jul 2015 11:40:00 +0200, Martin Knappe said: Like so: On Fri, 17 Jul 2015 11:44:34 +0200, Martin Knappe said: Sorry, have to correct my solution. You need to add cleanupState = 0 just before the finish, like so: I

Re: About Low Hanging Fruits

2015-07-13 Thread Valdis . Kletnieks
On Mon, 13 Jul 2015 12:13:28 +0530, Mayur Patil said: I just want to know like other Open source projects is there a thing in linux kernel as Low hanging fruits. The Linux kernel has been worked over by professional programmers for more than a decade, and as a result the number of things

Re: staging: wlan-ng: p80211conv.h: warning I don't understand

2015-11-11 Thread Valdis . Kletnieks
On Thu, 12 Nov 2015 02:55:40 +, "Gavin O'Leary" said: > What is this warning about? How do I go about fixing it? > > Thank you, Let's cut-n-paste 2 more lines out of the file: 613 /* Allocate the rxmeta */ 614 rxmeta = kzalloc(sizeof(struct p80211_rxmeta),

Re: is there a reason "usbhid.quirks" parameter is not root writable?

2015-11-12 Thread Valdis . Kletnieks
On Thu, 12 Nov 2015 16:44:35 -0800, Greg KH said: > On Thu, Nov 12, 2015 at 03:15:41AM -0700, Robert P. J. Day wrote: > > module_param_array_named(quirks, quirks_param, charp, NULL, 0444); > > MODULE_PARM_DESC(quirks, "Add/modify USB HID quirks by specifying " > > You can add a runtime quirk to

Re: hi, i want to use a script in kernel

2015-11-17 Thread Valdis . Kletnieks
On Tue, 17 Nov 2015 14:01:19 +0900, Naver said: > hi, > i want to use a script in kernel, but i can't use this. > in my terminal. > yoon@pc:~/project/aosp/kernel/linux/scripts$ ./checkpatch.pl sortextable.c > Must be run from the top-level dir. of a kernel tree $ cd ~/project/aosp/kernel/linux $

Re: How to disable "module verification failed: signature and/or required key missing - tainting kernel" message?

2015-11-01 Thread Valdis . Kletnieks
On Mon, 02 Nov 2015 13:57:10 +0800, Nan Xiao said: > I add "CONFIG_MODULE_SIG=n" at the beginning of Makefile, and rebuild > the module. > Could anyone give some clues on this issue? Thanks in advance! Did you *also* both rebuild and reboot into the new kernel that has MODULE_SIG=n?

Re: Looking for easy first-timer tasks

2015-10-05 Thread Valdis . Kletnieks
On Sat, 03 Oct 2015 19:37:54 -0700, Sean Bollin said: > I'm interested in getting started doing kernel dev. Why? Fame? Fortune? It's a chick magnet? You're totally pissed off because suspend/resume is wonky on your laptop? If you *really* want to help, just get yourself a copy of the linux-next

Re: Knowledge of Protocols

2015-07-09 Thread Valdis . Kletnieks
On Thu, 09 Jul 2015 17:56:15 -, Mohit . said: I would like to know what do statements like the following mean - Have knowledge of Protocols such as TCP/IP, IPSec, IPV6 or SSL Does it mean to have a theoretical view of the facets which constitute the protocol which can be done by

Re: How to get the dentry value - no path_lookup

2015-09-07 Thread Valdis . Kletnieks
On Mon, 07 Sep 2015 12:10:56 +0530, Pria Mn said: > return valid dentry value. My requirement is to fetch directory name from > filepath. First off, unless this is a class assignment, your *requirement* isn't to fetch a directory name. Fetching the directory name is a *solution* you're thinking

Re: Eudyptula task 2

2015-09-08 Thread Valdis . Kletnieks
On Tue, 08 Sep 2015 20:08:57 -0600, Yacdaniel Hurtado GarcC-a said: > atm i get this kernel version: 4.2.0-rc8 i dont know if i am doing > something wrong.Thanks You may or may not be doing something wrong. But you're probably no longer doing the Eudyptula challenge. :) pgp7sH4uoAi2S.pgp

Re: Use a variable before it's declaration

2015-09-10 Thread Valdis . Kletnieks
On Thu, 10 Sep 2015 15:09:42 +0800, Rock Lee said: > union thread_union init_thread_union __init_task_data = > > { INIT_THREAD_INFO(init_task) }; 'gcc -E' to see what this expands to. All may not be as it seems. :) pgpbElrwkwUP7.pgp Description: PGP signature

Re: Set the ACPI=on on the cmdline, and the OS can not boot.

2015-09-10 Thread Valdis . Kletnieks
On Thu, 10 Sep 2015 17:41:51 +0800, tianlilai said: > When I set the ACPI=on on the cmdline,and the OS can not boot(If set > ACPI=off, The system is OK). The attachmemt file is the booting log. Would > help me slove this ploblem? Thanks very much. > Note:kernel version v2.6.18,and the arch

Re: Tips for Kernel Module Debugging

2015-09-12 Thread Valdis . Kletnieks
On Sat, 12 Sep 2015 16:04:43 -0300, Lucas Tanure said: > I'm testing the linux-next tree and I got this stack: > > [2.158054] Call Trace: > [2.158058] [] dump_stack+0x4b/0x72 > [2.158061] [] warn_slowpath_common+0x82/0xc0 > [2.158063] [] warn_slowpath_null+0x1a/0x20 > [

Re: Help debugging linux-next.

2015-09-13 Thread Valdis . Kletnieks
On Sun, 13 Sep 2015 14:09:21 -0300, Lucas Tanure said: > I would like some tips about how debug a issue with linux-next. > I'm trying to find things to do in kernel, and the first thing is boot the > linux-next tree. > How I can find the commit that create the problem, since every commit that >

Re: Advice on Linux Kernel Development

2015-09-13 Thread Valdis . Kletnieks
On Sun, 13 Sep 2015 23:40:22 +0530, Mayur Patil said: > if I want to get started with Linux Kernel Development then is it feasible > that > I can do all my experiments on Virtual Machine as on Linux my Internet > dongle does not work, I am asking in terms of performance and efficiency. A very

Re: mmap - post/pre actions

2015-09-15 Thread Valdis . Kletnieks
On Tue, 15 Sep 2015 22:40:50 +0300, Ran Shalit said: > Hello, > > I need to implement mmap for non-volatile memory chip (NVRAM). > I already did something simple, but now I understand that it is not complete: > The nvram need to be unlock and locked after finishing the memory task > of read/write.

Re: Preceding a method call with (void)

2015-09-10 Thread Valdis . Kletnieks
On Thu, 10 Sep 2015 07:52:49 +0300, Kevin Wilson said: > (void) myFunc(param1); > > I did not encounter such cases in the kernel code that I read, thus far. > > On the other hand, I did not saw in the kernel coding style doc > anything which prohibits such usage. > > If I remember, using (void)

Re: gfp_flag

2015-09-14 Thread Valdis . Kletnieks
On Sun, 13 Sep 2015 21:21:35 -0700, Greg KH said: > On Mon, Sep 14, 2015 at 09:03:53AM +0530, Ronit Halder wrote: > > In drivers/staging/android/ion/ion.c in line 1475 and 1493 gfp_flag > > is set to -1 > > No, that's not what the code does, please read it again. My guess is it's making some

Re: Unset LOCKDEP and TRACE_IRQFLAGS_SUPPORT

2015-10-02 Thread Valdis . Kletnieks
On Fri, 02 Oct 2015 18:11:53 +0200, Gilles Chanteperdrix said: > TRACE_IRQFLAGS is broken with the I-pipe patch. At least on ARM. The > visible result is LOCKDEP false positives, but there may be some > more subtle kernel data structures corruption due to the fact that > the TRACE_IRQFLAFGS code

Re: Unset LOCKDEP and TRACE_IRQFLAGS_SUPPORT

2015-09-27 Thread Valdis . Kletnieks
On Mon, 28 Sep 2015 09:58:21 +1300, vibnwis said: > Thanks for sharing. Being a newbie, I would have to have some sort faith > until it is proven otherwise. Hence, I am tasked to get the TRACE_IRQFLAGS > turn off. Once, I have got it done and the results would tell us if the > patches were fine

Re: Unset LOCKDEP and TRACE_IRQFLAGS_SUPPORT

2015-09-27 Thread Valdis . Kletnieks
On Mon, 28 Sep 2015 11:42:34 +1300, vibnwis said: > > See the difference? > The kernel I work is for Pandaboard. Hence NVidia will not in the picture. The point is that one explanation gives a lot more confidence and understanding than the other. I'll let you figure out for yourself which the

Re: Unable to get stmmac driver of Altera Cyclone V to support MTU9000

2015-09-27 Thread Valdis . Kletnieks
On Mon, 28 Sep 2015 10:14:47 +0800, Teoh Choon Zone said: > > Have you tried the above with 8972 to instead of 9000. > Yes, but nothing above 8144 works. It's possible it's a defective design, and is crippled so it can manage 8144 but not the 9000 most chipsets can do. The fact that 8144 works

Re: Unset LOCKDEP and TRACE_IRQFLAGS_SUPPORT

2015-09-26 Thread Valdis . Kletnieks
On Sun, 27 Sep 2015 12:06:49 +1300, vibnwis said: > Setting DEBUG_KERNEL->n will unset L1 [=0] > and And. Right. > setting IRQSOFF_TRACER [=y] || TRACING_SUPPORT [=n] || FTRACE [= n] will > unset L2 [=0] In your first post, you had implied that you had tried doing one or the other, not

Re: Accessing pointers inside struct passed as argument to ioctl calls

2015-09-28 Thread Valdis . Kletnieks
On Mon, 28 Sep 2015 19:59:41 -0300, "Daniel." said: > The real thing is a driver to nrf24l01+ driver from Nordic. I may use this > non copying aproach to exchange lot of frames without copying. This would > improve driver's performance. :) There is already well-developed zero-copy code for

Re: getting warning when a method parameter in a kernel module is not used

2015-09-24 Thread Valdis . Kletnieks
On Thu, 24 Sep 2015 17:25:15 +0300, Kevin Wilson said: > Hi, > > When a method parameter in a kernel module is not used, we do not get > any warning (as opposed to a variable which is not used). > > Is there any compilation flag which enables getting warning in such a case ? No, and it's unclear

Re: Preceding a method call with (void)

2015-09-18 Thread Valdis . Kletnieks
On Fri, 18 Sep 2015 17:04:03 +0300, Rami Rosen said: > Well, there are rare cases in the kernel when you add (void) before calling > the method. For example, if the method returns int or other type and you > want to emphasize that you are aware of that and deliberately not check the > return

Re: Which git for developing patch?

2015-09-24 Thread Valdis . Kletnieks
On Thu, 24 Sep 2015 20:03:53 -, Rob Groner said: > However, it won't build for me (openssl/bio.h is missing) after a cloning. That's for userspace code. You need to install openssl-devel (or whatever your distro calls the development headers/libraries). pgp95vt1jxO3y.pgp Description: PGP

Re: Best tests to measure Kernel Performance

2015-12-01 Thread Valdis . Kletnieks
On Tue, 01 Dec 2015 18:45:51 -0600, Victor Rodriguez said: > Despite the fact that this is not a well formulated question. Exactly why it's hard to give a good answer. It *really* depends on what aspect you're interested in - I/O bandwidth, throughput, latency, or other. What I currently do at

Re: Developing environments used for kernel development

2015-12-24 Thread Valdis . Kletnieks
On Thu, 24 Dec 2015 19:29:11 -0500, Ruben Safir said: > On 12/24/2015 01:43 PM, valdis.kletni...@vt.edu wrote: > > The only *real* fix is to go to a non-querty keyboard. > > No, retraining and reprogramming the user is not a solution. Then you're stuck with a control key where it's difficult for

Re: how to reduce both vmlinuz size and modules?

2015-12-26 Thread Valdis . Kletnieks
On Sat, 26 Dec 2015 10:39:04 -0500, "Robert P. J. Day" said: > if i start with the latest git kernel repo, it *looks* like i can > use the /boot/config-4.2.8-200.fc22.x86_64 config file as a starting > point, copy it in as .config, then: > > $ make allmodconfig > $ make localmodconfig How

Re: Developing environments used for kernel development

2015-12-24 Thread Valdis . Kletnieks
On Thu, 24 Dec 2015 10:41:36 -0500, Ruben Safir said: > EMACs might work better if they took LISP out of it and adopted it for a > QWERTY keyboard Doing something about the keymappings would probably help, as currently a lot of the most common sequences require use of weaker fingers (in

Re: dumping large buffers to file

2015-11-24 Thread Valdis . Kletnieks
On Tue, 24 Nov 2015 06:30:22 +, Ramon Fried said: > I'm currently debugging a ISP DMA issue in a kernel module. > For debugging, I would like to dump buffers to a file on run time. > The buffers are quite big, 1MB at least. The *other* question is how *often* you plan to do this. Doing it

Re: git tags (RC kernels ) and kernel versions (www.kernel.org)

2015-11-26 Thread Valdis . Kletnieks
On Thu, 26 Nov 2015 10:46:24 +0200, Kevin Wilson said: > 13 sub version of the 4.1 kernel: > 4.1.1 > 4.1.2 > . > > > 4.1.13 This is a string of 13 patchesets that came out *AFTER* v4.1 was released. > git tag | grep 4.1 > I get: > v4.1 > v4.1-rc1 > v4.1-rc2 > v4.1-rc3 > v4.1-rc4 >

Re: cross compilation

2016-06-06 Thread Valdis . Kletnieks
On Tue, 07 Jun 2016 02:27:03 +0530, Shyam Saini said: > To choose best optimized code, i need to first compile them and then > disassemble the compiled code, where a change in single line would make a > significant difference in the performance. Note that due to things like cache line misses,

Re: blacklist kernel modules

2016-05-30 Thread Valdis . Kletnieks
On Mon, 30 May 2016 19:58:14 +0530, Muni Sekhar said: > Hi, > > I need to configure blacklisting few kernel modules in multiple > customer test systems. > > For this I added an entries in the /etc/modprobe.d/blacklist.conf and > generated an initramfs image. > > All our test systems are having an

Re: [PATCH] HC-SR04 ultrasonic ranger IIO driver

2016-05-31 Thread Valdis . Kletnieks
On Tue, 31 May 2016 23:05:57 +0200, johan...@johannesthoma.com said: Looks good overall, far from the ugliest driver I've seen. I spotted one locking bug, and a few small typos etc, noted inline... > From: Johannes Thoma > > The HC-SR04 is an ultrasonic distance

Re: How to enable IIO driver in 3.18 kernel

2016-05-31 Thread Valdis . Kletnieks
On Wed, 01 Jun 2016 08:19:20 +0530, Munagala Naresh said: > We are integrating one sensor driver in to LE platform. After adding sensor > driver, it is creating device @ /sys/bus/iio/devices/iio:device0,1,2. > Sensor driver makes use of IIO subsystem framework. We are not seeing iio > device

Re: How to enable IIO driver in 3.18 kernel

2016-05-31 Thread Valdis . Kletnieks
On Wed, 01 Jun 2016 12:18:55 +0800, "FrankYu" said: > How can I read the content? I admit confusion. The content of what? And read it from where? Userspace? int fd = open ("/dev/iio:whatever",yadda yadda); int rc = read(fd, , sizeof(buffer); Same as reading any other device. If you mean

Re: How to enable IIO driver in 3.18 kernel

2016-06-01 Thread Valdis . Kletnieks
On Wed, 01 Jun 2016 13:58:20 +0800, you said: > Sorry, I mean the mail's content  > I can not read the mail, there's only a *.bin file attached  You have a defective mail reader, which is unable to recognize a digital signature. There's been an Internet standard for that since 1995, so there's

Re: Backtrace of every the threads

2016-02-10 Thread Valdis . Kletnieks
On Wed, 10 Feb 2016 11:56:40 +0100, Ricardo Ribalda Delgado said: > I did not explain myself well. > > By thread I mean kernel thread, and user thread. > > What i want to get is a back trace of ALL the programs running in user > and kernel space. See what happens when you do 'echo t >

Re: user rsyslog/syslog

2016-02-24 Thread Valdis . Kletnieks
On Wed, 24 Feb 2016 14:20:23 +0200, Ran Shalit said: > Maybe the last suggestion will be the most practical if this issue > can't be resolved, which means that I will use one file for all logs, > in which each line will have its own tag string according to the > application. No, what you do is

Re: user rsyslog/syslog

2016-02-24 Thread Valdis . Kletnieks
On Wed, 24 Feb 2016 09:36:54 +0200, Ran Shalit said: > I am trying to write to rsyslog from application. > With openlog(..., LOG_USER), it works fine and I find the log in > /var/log/user.log (it is defines in /etc/rsyslog.d/50-defaults.conf ) > But we need to enable different applications to

Re: [PATCH] staging: dgnc: Remove useless and deadly judgment

2016-02-28 Thread Valdis . Kletnieks
On Mon, 29 Feb 2016 14:41:34 +0800, Navy Cheng said: > pci_unregister_driver() should be used once dgnc module exit. It has > nothing to do with dgnc_NumBoards. Remove the judgment of dgnc_NumBoards to > avoid pci_unregister_driver() is not used when dgnc_NumBoards is 0. > - if

Re: Question : How to access to bandwith statistics from kernel space?

2016-02-29 Thread Valdis . Kletnieks
On Mon, 29 Feb 2016 11:47:16 +0100, Martin Houry said: > I have made some research and I could't find a library who can give > me interfaces's statistics like max/min/average bandwidth, jitter, ... > > Do you know a way to do this? What problem are you trying to solve from within the kernel with

Test e-mail, please ignore...

2016-02-23 Thread Valdis Kletnieks
For some reason, I'm not seeing posts I send to the list. (Has somebody changed the list config, or is there something more subtle going on?) ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org

Re: CFS: Scheduler: How does each change in 'nice' value result in 10% change in CPU time?

2016-01-21 Thread Valdis . Kletnieks
On Thu, 21 Jan 2016 08:51:08 -0800, John Locke said: > * Nice levels are multiplicative, with a gentle 10% change for every > * nice level changed. I.e. when a CPU-bound task goes from nice 0 to > * nice 1, it will get ~10% less CPU time than another CPU-bound task Note the ~ indicating

Re: Finding when a chip was supported in the kernel

2016-02-15 Thread Valdis . Kletnieks
On Mon, 15 Feb 2016 16:06:54 +, Rob Groner said: > > bjorn@nemi:/usr/local/src/git/linux$ git show 4662e82b2cb41 > > commit 4662e82b2cb41c60826e50474dd86dd5c6372b0c > > Author: Bruce Allan > > Date: Tue Aug 26 18:37:06 2008 -0700 > Using the blame I see that it

Re: Distributed Process Scheduling Algorithm

2016-02-15 Thread Valdis . Kletnieks
On Tue, 16 Feb 2016 10:18:26 +0530, Nitin Varyani said: > 1) Sending process context via network Note that this is a non-trivial issue by itself. At a *minimum*, you'll need all the checkpoint-restart code. Plus, if the process has any open TCP connections, *those* have to be migrated without

Re: Distributed Process Scheduling Algorithm

2016-02-16 Thread Valdis . Kletnieks
On Tue, 16 Feb 2016 09:42:52 +0100, Dominik Dingel said: > I wouldn't see things that dark. Also this is an interesting puzzle. Just pointing out *very real* issues that will require solution, unless you add strict bounds like "cannot be using network connections". Heck, even open files get

Re: Distributed Process Scheduling Algorithm

2016-02-16 Thread Valdis . Kletnieks
On Wed, 17 Feb 2016 10:21:35 +0530, Nitin Varyani said: > Actually it is a master's thesis research project as of now. I am ready to > boil down to the most basic implementation of distributed linux kernel. > Assume there is no network connection and no open files. We can drop even > more

Re: Patch Series

2016-02-16 Thread Valdis . Kletnieks
>>> My question is, is it OK to fix all occurrences of error A across the files >> inside drivers/staging/wilc1000 as one patch and all occurrences of error B >> across all files inside drivers/staging/wilc1000 as a second patch? Most maintainers would be perfectly OK with that. And I'm pretty

Re: can't read this

2016-02-21 Thread Valdis . Kletnieks
On Sun, 21 Feb 2016 17:34:38 -0500, Ruben Safir said: > > ASCII? No. > Content-Type: text/plain; charset=GBK > Content-Transfer-Encoding: base64 It claims to be some mostly-nonstandard variety of Chinese. https://en.wikipedia.org/wiki/GBK pgpMip6_fPR6X.pgp Description: PGP signature

Re: Backtrace of every the threads

2016-02-11 Thread Valdis . Kletnieks
On Thu, 11 Feb 2016 14:56:32 +0100, Ricardo Ribalda Delgado said: > > What problem are you trying to solve by getting a trace of everything? > > (Hint - > > what meaning does a userspace stack traceback have if you're looking at > > the corresponding kernel stack trace?) > > I was doing: > > cat

Re: creating initramfs in fedora

2016-03-11 Thread Valdis . Kletnieks
On Fri, 11 Mar 2016 18:32:39 +0530, Ronit Halder said: > How can I create a initramfs file without dracut from the files in an > installed system in fedora? If you're hell-bent on doing something unsupported, remember that dracut is just an easily understood python script, so you can just follow

Re: blackscreen on boot with first compiled kernel

2016-03-31 Thread Valdis . Kletnieks
On Thu, 31 Mar 2016 06:09:13 -, Hrushit Parikh said: > The linux kernel of my repo is 4.5.0-rc+. I copied the existing .config file > from /boot to my source tree and ran 1. make olddefconfig, 2. make 3. make > modules_install install. You probably wanted to use 'make oldconfig' rather than

Re: variant length array?

2016-04-05 Thread Valdis . Kletnieks
On Tue, 05 Apr 2016 15:29:25 -0400, Wenda Ni said: > I come across the following code in a kernel module code. > u32 rxe_icrc_hdr(struct rxe_pkt_info *pkt, struct sk_buff *skb) Is this an out-of-tree module, or an older kernel? The current linux-next tree has zero occurences of 'rxe_icrc_hdr'

Re: Attach my own pid

2016-03-21 Thread Valdis . Kletnieks
On Mon, 21 Mar 2016 10:33:44 +0530, Nitin Varyani said: > Sub-task 1: Until now, parent process cannot control the pid of the forked > child. A pid gets assigned as a sequential number by the kernel at the time > the process is forked . I want to modify kernel in such a way that parent > process

Re: 回复:Re: add_disk() make my driver's initialisation, thus kernel stall.

2016-03-20 Thread Valdis . Kletnieks
On Mon, 21 Mar 2016 09:53:47 +0800, 张云 said: > The code is just for learning block driver THe kernel doesn't know that. You call a routine with the wrong parameters, it will not work properly. pgp60L5FwYLA3.pgp Description: PGP signature ___

Re: Attach my own pid

2016-03-22 Thread Valdis . Kletnieks
On Mon, 21 Mar 2016 16:01:41 +0530, Nitin Varyani said: > I am running a master user-level process at Computer 1 which sends a > process context like code, data, registers, PC, etc as well as *"pid"* to > slave processes running at other computers. The responsibility of the slave > process is to

Re: kernel_thread() causes segfault

2016-03-22 Thread Valdis . Kletnieks
On Tue, 22 Mar 2016 16:51:44 +0530, Shashank Khasare said: > These two threads share same address space, file descriptor tables, parent > pid etc. > Whenever user thread wants to make syscall, it would post the information > about syscall number & arguments > to syscall in common shared page.

Re: contribution in kernel community & testing kernel

2016-03-23 Thread Valdis . Kletnieks
On Wed, 23 Mar 2016 16:06:37 +0530, shubham k said: > I want to work on x86 architecture. I am not sure how to go about unit > testing. I can use qemu for testing but i find kernel on x86 architecture > too big to compile. How i can get the smaller size kernel on x86 > architecture? 'make

Re: Attach my own pid

2016-03-20 Thread Valdis . Kletnieks
On Sun, 20 Mar 2016 02:07:29 -0700, Nitin Varyani said: > The linux kernel attaches a pid to newly forked process. I want to > create a facility by which a process has the option of attaching a new pid > to its child which is not in the pid space. Not at all sure what you mean by "not in

Re: Adding new protocol to linux.

2016-03-26 Thread Valdis . Kletnieks
On Fri, 25 Mar 2016 23:00:48 -0300, "Daniel." said: > Hi everybody, > > I'm planing to write a socket API for Nordic's nRF24L01+ and I was > digging on socket code and find all supported protocols at > include/linux/socket.h with all that #define AF_x y. So my questions > are: > > 1) Is it

Re: add_disk() make my driver's initialisation, thus kernel stall.

2016-03-20 Thread Valdis . Kletnieks
On Sun, 20 Mar 2016 16:38:12 +0800, 张云 said: > My memory disk block driver was compiled successfully. > But when I insmod my module, initialisation stall at add_disk in = > setup_dev function. > int major = 0; Are you positive that this is both safe and usable? pgpOvdXw4jw1a.pgp

Re: What is the role of LIST_POISON1 and LIST_POISON2?

2016-03-03 Thread Valdis . Kletnieks
On Fri, 04 Mar 2016 13:02:02 +0800, Navy Cheng said: > Hi, > > When I read the code of list_del(), I find LIST_POISON1 and LIST_POISON2: > > static inline void list_del(struct list_head *entry) > { > __list_del(entry->prev, entry->next); > entry->next = LIST_POISON1; >

Re: Driver duplicate?

2016-03-07 Thread Valdis . Kletnieks
On Mon, 07 Mar 2016 16:08:01 -0500, Kenneth Adam Miller said: > Can't release it. It looks a lot like this though: Note that you're going to have a *really* hard time shipping hardware with a legal Linux driver you can't release source for. You probably want to talk to your corporate legal

Re: stack pointer

2016-03-07 Thread Valdis . Kletnieks
On Mon, 07 Mar 2016 13:07:14 +0530, Nitin Varyani said: > Where is the stack pointer for the current process stored in linux? In the stack pointer register, of course. (And if the code was compiled with -fomit-stack-pointer there isn't even one. :) The fun and games starts when you talk about

Re: Possible Bug

2016-03-31 Thread Valdis . Kletnieks
On Thu, 31 Mar 2016 10:04:47 -0230, Roger H Newell said: > I think I may have stumbled upon a USB bug. Before I send it off to Looks like an apparmor bug, not USB. Quite likely the same problem as these guys hit, as the traceback is the same:

Re: Possible Bug

2016-03-31 Thread Valdis . Kletnieks
On Thu, 31 Mar 2016 13:55:57 -0230, nick said: > >>> In the fs/file_table.c file as from the root directory of your kernel > >>> tree change in the function, > >>> get_empty_flip change these lines: > >>> if (unlikely(error)) { > >>> file_free(f); > >>>

Re: Possible Bug

2016-03-31 Thread Valdis . Kletnieks
On Thu, 31 Mar 2016 09:30:01 -0700, John Johansen said: > hrmm, the only thing apparmor is doing in this kernel here is a kzalloc and > assigning it to f_security, expanding out the aa_alloc_file_context > abstraction (which should probably just be dropped) we get. > > file->f_security =

Re: Possible Bug

2016-03-31 Thread Valdis . Kletnieks
On Thu, 31 Mar 2016 14:59:51 -0230, Roger H Newell said: > I reverted the previous change, and applied the if(f) test in > file_free. There are no error messages in dmseg and I can mount the > USB device. That's because Nick's patch is *still* wrong, as the *real* problem appears to be a memory

Re: Possible Bug

2016-03-31 Thread Valdis . Kletnieks
On Thu, 31 Mar 2016 15:46:51 -0230, Roger H Newell said: > I had a look inside the .config I used to compile this kernel. > I think I found the information you're looking for. > > # CONFIG_KASAN is not set > # CONFIG_SLAB is not set > CONFIG_SLUB=y > # CONFIG_SLOB is not set Well, that cuts down

Re: unable to find function definition

2016-04-26 Thread Valdis . Kletnieks
On Tue, 26 Apr 2016 15:31:51 +0200, Silvan Jegen said: > A simple but naive approach would be a grep command like this. > > grep "function_pointer =" `find . -iname '*.c' -o -iname '*.h'` Two better ways: grep -r "function_pointer =' [A-Za-z]* find * -name '*.[ch]' | xargs grep 'function

Re: How to fast master kernel

2016-05-10 Thread Valdis . Kletnieks
On Tue, 10 May 2016 16:58:26 -0400, "Robert P. J. Day" said: > not sure who it was (maybe even valdis) who once said, "Saying you > want to get into kernel programming but have no idea where to start so > can someone give you suggestions is like saying you want to write a > book but don't know

Re: How to fast master kernel

2016-05-11 Thread Valdis . Kletnieks
On Wed, 11 May 2016 12:26:17 +0800, "Aric" said: > But for each board, it have dedicated kernel code package. For example, what > I want to do first, it I can write kernel drivers and kernel code freely. I > can > easily add a I2C (AT24C02) device and finished its driver in a short time. Wel,

Re: can anyone tell me which function to call to pause the kernel

2016-05-17 Thread Valdis . Kletnieks
On Tue, 17 May 2016 20:29:12 +0800, walkerlala said: > Can I just disable interrupts from hardwares? I know that, at the very > beginning, the kernel disable interrupt for convenient. So I wonder > whether we can do thing like this. Sure you can do that. But then, how do you get the kernel's

Re: Kernel memory

2016-05-17 Thread Valdis . Kletnieks
On Tue, 17 May 2016 12:41:44 +0530, Ronit Halder said: > Hi, > > Where in the memory kernel is located in the boot time? During which exact phase of the boot, and does it actually matter? And physical or virtual address? (Hint: If you're not the bootstrap that unpacks the compressed kernel

Re: How to locally maintain an end-of-life kernel branch?

2016-05-17 Thread Valdis . Kletnieks
On Tue, 17 May 2016 13:09:03 -0700, Michael Harless said: > > Eeek, why? What is keeping you from moving to a newer kernel version? > > Why is sticking with 3.14 a good idea for anyone? > > > > It's mainly due to certifications and testing and our upgrade process. My > wish would be to update

Re: How to contact to Greg.

2016-05-13 Thread Valdis . Kletnieks
On Fri, 13 May 2016 10:34:13 +0200, Greg KH said: > On Thu, May 12, 2016 at 07:14:42PM +0800, Aric wrote: > > Yeah, that sounds good. Who know Greg's e-mail,or where to find him? > > http://lmgtfy.com/?q=greg+kh+email+address I see what you did there. :) pgpdig_kTn7qx.pgp Description: PGP

Re: How to initialize the new attributes in process control block.

2016-05-16 Thread Valdis . Kletnieks
On Mon, 16 May 2016 10:44:56 +0200, Youcun Liu said: >u64 cache_miss_rate; // the new variable I insert > Besides, I also have trouble in finding out how to feed data into the new > variable from user level application. Three comments: 1) cache_miss_rate is probably a poor thing to

Re: ?c8???How to contact to Greg.

2016-05-13 Thread Valdis . Kletnieks
On Fri, 13 May 2016 21:08:46 +0800, "Aric" said: > Why nerver toppost? A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and in e-mail? Now do you understand?

Re: How to fast master kernel

2016-05-10 Thread Valdis . Kletnieks
On Tue, 10 May 2016 10:58:43 +0800, "Aric" said: > I'm a newcomer, hope to learn linux kernel together. How can I contribute to > kernel programming? Any good tutorials and tranings ? Why so silence this > mail-alias. Step 0: Figure out *why* you want to contribute. The answer you seek depends

Re: single, comprehensive kernel data types document?

2016-04-15 Thread Valdis . Kletnieks
On Fri, 15 Apr 2016 09:18:32 -0700, Greg KH said: > Within the kernel, yes, you can use lots of different types for the same > "real" variable size, but you shouldn't, just use the well-known and > common types "u8" and you will be fine. Those other ones are there due > to code being brought in

Re: anyone aware of a high availability setup that relies on fully redundant install?

2016-04-18 Thread Valdis . Kletnieks
On Mon, 18 Apr 2016 06:29:21 -0400, "Robert P. J. Day" said: > that makes sense -- a *minimal* bootable system for recovery and > troubleshooting. but not a fully independent previous install. No, it's a *complete* system - your kernel boot image, /, /usr, /var, and whatever other file systems

Re: Serial driver in-band control message

2016-04-20 Thread Valdis . Kletnieks
On Wed, 20 Apr 2016 22:27:27 -, Ramon Fried said: > I'm developing a driver for a rather weird serial controller hardware. > The HW allows the host to put it in low power state. > The command for entering low power is an ASCII message sent in-band. Do you happen to have the contact info for

Re: anyone aware of a high availability setup that relies on fully redundant install?

2016-04-17 Thread Valdis . Kletnieks
On Sun, 17 Apr 2016 10:47:55 -0400, "Robert P. J. Day" said: > i figure this is as good a place as any to ask ... is anyone here > aware of anyone using a linux config and install that, for the > purposes of reliability or high availability or whatever you want to > call it, relies on a second,

Re: kernel development process question, patch review

2017-02-21 Thread valdis . kletnieks
On Tue, 21 Feb 2017 12:35:33 +1100, "Tobin C. Harding" said: > If a reviewer makes a suggestion and one intends on making the change > as suggested is it required (normal protocol) to reply stating that > the you understand their suggestion and intend on implementing it or > is this just noise.

Re: Why amdgpu pro does not work on kernel 4.10?

2017-02-12 Thread valdis . kletnieks
On Sun, 12 Feb 2017 17:45:58 +0330, Ali Aminian said: > I was heard that amdgpu pro is user space driver and the kernel space > part (amdgpu) is merged into Linux kernel. And that means amdgpu pro > should work on all kernels above 4.3. But why amdgpu pro does not work > on kernel 4.10? What do

Re: recovery from fail

2017-02-13 Thread valdis . kletnieks
On Mon, 13 Feb 2017 23:10:39 +, Andrey Utkin said: > On Mon, Feb 13, 2017 at 12:29:04PM +1100, Tobin Harding wrote: > > I don't want to make any more noise than I already have > > Not a big deal. > Don't worry about that unless you repeatedly receive strong suggestions > to never submit

<    2   3   4   5   6   7   8   9   10   11   >