yashsingh1/xdaforums huggingface dataset:
[Nexus 7 (2013) Q&A] M. J. Cho:
I'm trying to get hardware performance counter events on Nexus 7 2013.

I've tested on ASOP 4.3, 4.4, CyanogenMod 11, google original kernel 3.4, and codeaurora msm-3.4 kernel.

I already tested that CPU_CYCLE(PERF_COUNT_HW_CPU_CYCLES) and L2 Cache related events are working.

However, I couldn't get an executed instrunction event (PERF_COUNT_HW_INSTRUCTION) which is one of the default HPC events.

It always returns zero!

I'm stuck for 2 weeks.:crying:

Please somebody help me!

Thanks in advance.

My test code is as follow.

#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <sys/ioctl.h>
#include <linux/perf_event.h>
#include <asm/unistd.h>

static long
perf_event_open(struct perf_event_attr *hw_event, pid_t pid,
int cpu, int group_fd, unsigned long flags)
{
int ret;

ret = syscall(__NR_perf_event_open, hw_event, pid, cpu,
group_fd, flags);
return ret;
}

int
main(int argc, char **argv)
{
struct perf_event_attr pe;
long long count;
int fd;
int i=0;
memset(&pe, 0, sizeof(struct perf_event_attr));
pe.type = PERF_TYPE_HARDWARE;
pe.size = sizeof(struct perf_event_attr);
pe.config = PERF_COUNT_HW_INSTRUCTIONS; //PERF_COUNT_HW_CPU_CYCLES;
pe.disabled = 1;
pe.exclude_kernel = 1;
pe.exclude_hv = 1;

fd = perf_event_open(&pe, 0, 0, -1, 0);
if (fd == -1) {
fprintf(stderr, "Error opening leader %llx\n", pe.config);
exit(EXIT_FAILURE);
}

ioctl(fd, PERF_EVENT_IOC_RESET, 0);
ioctl(fd, PERF_EVENT_IOC_ENABLE, 0);

for (i=0; i< 10000; i++)
printf("%d = %d * %d\n", i*(i+1), i, i+1);

ioctl(fd, PERF_EVENT_IOC_DISABLE, 0);
read(fd, &count, sizeof(long long));
printf("%lld events\n", count);

close(fd);
}
[Nexus 7 (2013) Q&A] WizardOfOzzz:
Same here

I've also had no luck :( I'm actually not able to get any hardware counters (they are all zero or errno 2). I only got some software counters like the clock. Did you need cygenomod to get cycles/cache counters working? I figured this should work even without custom builds. Did you need to run as root while querying them?
[LG Optimus G Pro] bschmaltz80:
I was running Vanir 4.4 nightly on my lg e980 with twrp and I installed a Ota. It booted back into recovery and I'm sure I lost root. I did a factory reset and lost all back ups it has no files on it at all now. I have a back up on my pc but it won't link. Can't see the lg on my pc anymore any help plus.
[LG Optimus G Pro] Nigglenuts:
Bro. Go to the general section. In it, you will find a page called recovery Bootloop Help! By yours truly. There are many options that people gave me, one of which I did successfully (aromafm.zip) Please look around before making a new thread. The less clutter in our forums the better

---------- Post added at 08:54 PM ---------- Previous post was at 08:51 PM ----------

Look up ADB 15 Seconds on Google. Download that tool. No need for the .KDZ its a waste of space with that tool around. If you need help, or are unsure of how to do something, PM me. I will guide you.
[LG Optimus G Pro] bschmaltz80:
Thanks dude I'll give it a try. Thanks
[LG Optimus G Pro] Nigglenuts:
Not a problem.
[T-Mobile Samsung Galaxy Note 3] gakio12:
A lot of people are thinking that T-mobile is blocking Tap to Pay on the Note 3 with KitKat. However, it is reported that Tap to Pay works on the T-mobile S4.

T-mobile isn't blocking Tap to Pay; Google simply hasn't integrated the PN-547 chip into Tap to Pay yet. This is why AOSP builds still don't have Tap to Pay. NXP, within the last week, just integrated the PN-547 chip into 4.4, which means it will probably show up in Android 4.4.3.
[T-Mobile Samsung Galaxy Note 3] 0ri0n:
Doesnt the sprint note 3 have the same nfc chip?
[T-Mobile Samsung Galaxy Note 3] gakio12:
I assume yes; does the sprint note 3 tap to pay function on KitKat?
[T-Mobile Samsung Galaxy Note 3] 0ri0n:
Yup... so there goes that theory.
[T-Mobile Samsung Galaxy Note 3] Matrixk101:
I was told in store that u need to update to a differnt kinda sim card for tap and pay I think its called a isis sim card l.
[T-Mobile Samsung Galaxy Note 3] parusia:
That is to use Isis method, what the majority of people want is Google wallet method. What happen with Isis is that works only with certain Credit Cards and not with all of them, I think is only with Wells Fargo, certain chase cards, and Amex.
[T-Mobile Samsung Galaxy Note 3] 0ri0n:
Thats only if you are going to use ISIS as opposed to GWallet. KitKat is supposed to utilize Host Card Emulation so no secure element or secure sim needed. Its built into android, but it seems right now that TMobile and ATT removed that function to force you to use ISIS since that is what they are backing. I could be wrong, but it doesnt make sense that the Sprint Note 3 uses the same NFC controller and can use tap n pay, but the TMobile and ATT variants cant.
[T-Mobile Samsung Galaxy Note 3] siraltus:
No it does not. The Sprint variant uses a different NFC controller (NXP P65) that has both a built-in secure element and implements the FeliCa card emulation standard.

This is why Google Wallet works on it on Android 4.3 and on Android 4.4 (using the old SE-based method, not HCE) but not on any of the other variants.

I helped discover this difference. More info here: http://xdaforums.com/showthread.php?t=2476093

OP is correct - we need to wait for the T-Mobile variant's NFC controller to be supported by KitKat's HCE framework.
[T-Mobile Samsung Galaxy Note 3] cmjkxa:
I have a question. Will the new S5 have the same NFC chip as the Note 3? This article says it willhttp://nfctimes.com/news/nxp-wins-back-nfc-controller-business-samsung-flagship-misses-embedded-chip. Also the S5 press release said they'd support both Isis and GW here http://www.droid-life.com/2014/02/24/samsung-announces-the-galaxy-s5-coming-this-spring/ I'm just trying to piece this together.
[T-Mobile Samsung Galaxy Note 3] siraltus:
No idea, that's up to Samsung. The US variants have the NXP P544 controller, while the international variants have the Broadcom BCM20793 controller (same as used in all the Nexus devices), which is the only chip that KitKat's HCE framework currently supports - this is why phones with the Broadcom chip have Tap-and-Pay while those with the NXP chips don't yet. We need to wait for an update from Google that enables support for the P544 chip in the HCE framework.

The Sprint variant is using the NXP P65, which is a P544 combined with a secure element, which is why Wallet works on it (using the old method, not HCE).
[T-Mobile Samsung Galaxy Note 3] tmoney239sucka:
~Deleted~ Somehow I Miss The First Post Lol
[T-Mobile Samsung Galaxy Note 3] siraltus:
Deleted.
[T-Mobile Samsung Galaxy Note 3] 0ri0n:
Looks like we have some conflicting info here...

http://www.electropages.com/2014/02/nxp-industry-leading-nfc-controller-integrated-googles-latest-version-android-4-4-kitkat/
[T-Mobile Samsung Galaxy Note 3] gakio12:
That happened a week ago. Definitely not enough time to get it into the Note 3 update. It will probably be in 4.4.3
[T-Mobile Samsung Galaxy Note 3] altimax98:
It's rare to find an excellent informative thread on XDA and the OP nailed it with this one.

Thanks
[T-Mobile Samsung Galaxy Note 3] siraltus:
PN547 is a new chip. The Note 3 uses the PN544. Not relevant to our problem.

Nevermind, verified to be PN547!
[T-Mobile Samsung Galaxy Note 3] MvP77:
I was running a hacked international 4.4.2 touchwiz rom and tap to pay worked on that. It also works on my Nexus 5. So I see no reason why all of the sudden it's not working for T-Mobile on our Note 3.
[T-Mobile Samsung Galaxy Note 3] 0ri0n:
OP specifically mentioned the PN547 as being in our phone, and thats what I researched. Shame on me I guess for not verifying the chip in my phone.:silly::eek:
[T-Mobile Samsung Galaxy Note 3] gakio12:
From Hashcode:

"Don't expect NFC to work anytime soon it's a brand new NFC NXP PN547 chip. I'm working on it as I get time."

http://xdaforums.com/showthread.php?t=2600883
[T-Mobile Samsung Galaxy Note 3] jason2nails:
T-mobile blocking HCE within Kitkat.

Actually if you google the changes that came with Kitkat 4.4.2 from Android itself, one of the changes includes a "tap and pay" option in the Settings under NFC. However this option is not available on the T Mobile note 3 after dating to Kitkat 4.4.2. also if you download the app from the Google Play Store called NFC check you will see that after running the check it there goes that is enabled the Android however HCE is not supported on this device, which it should be with Kitkat update.
[T-Mobile Samsung Galaxy Note 3] gakio12:
That is what I am explaining. The HCE framework doesn't yet support the NFC controller in the Note 3. It uses NXP PN547. Google needs to update the framework to include that controller.
[T-Mobile Samsung Galaxy Note 3] 0ri0n:
Just checked the /dev folder and the device is definitely PN547... not sure where you got your info from, but its wrong.
[T-Mobile Samsung Galaxy Note 3] siraltus:
Thanks for verifying this once and for all, my bad. I got it from Wikipedia: http://en.wikipedia.org/wiki/List_of_NFC-enabled_mobile_devices Seems the article needs updating.
[T-Mobile Samsung Galaxy Note 3] deeznutz1977:
Supposedly I read our NFC chip will be supported in 4.4.3

Sent from my Note 3 on 4.4.2
[T-Mobile Samsung Galaxy Note 3] 0ri0n:
No worries homey...

screenie attached for proof.
[T-Mobile Samsung Galaxy Note 3] bryanthomas007:
I'm not updating to Kit Kat yet. Far too many bugs for my comfort.
[T-Mobile Samsung Galaxy Note 3] chuko303:
What bugs? Lol I've been on one rom ever since I upgraded and been beast
[T-Mobile Samsung Galaxy Note 3] overkillthemighty:
Updates?

I noticed that 4.4.4 is out (AOSP) and installed PAC, but there is still no NFC available. I wonder if the article about NXP integrating into 4.4 was a bald-faced lie? Link
[T-Mobile Samsung Galaxy Note 3] Defenestratus:
Still no tap to pay in Google Wallet with the NF9 update. Its terrible. I'm beyond irritated.
[T-Mobile Samsung Galaxy Note 3] Febby:
Lol yes me too.. hate to say it but this is why ios makes us look like amateurs at times... I expect tap to pay to work without issue :/
[T-Mobile Samsung Galaxy Note 3] toastido:
It does if you use ISIS.. or whatever it's called now... "Softcard" i think.
[T-Mobile Samsung Galaxy Note 3] Febby:
It's completely different from that of Google wallet. Not that I'm a apple fan boy but some things do upset me when I'm trying to use a native Google feature that seems to be non existent currently on my firmware. I tried when it was isis wallet but it wasn't my type of deal.
[T-Mobile Samsung Galaxy Note 3] toastido:
Well, it's still the same thing, just different name... Probably due to ISIS in the middle east... *snicker*

Anyway, works fine for me, using my AMEX and linked other cards to the virtual AMEX they give you.
[T-Mobile Samsung Galaxy Note 3] knarfies:
I doubt it'll work perfectly. Google wallet failed just like all the others. Ios, not sure what was done different to be considered "successful" but there are a few hurdles it'll have to jump in order to be successful.

I was so pleased even with isis but yet to see a way to use my visa. How is it apple is able to allow it's users to so?
[T-Mobile Samsung Galaxy Note 3] ttabbal:
With ISIS or whatever it's named now, you can use most card types by linking them to the AMEX Serve card. It ends up working like paypal, if you have money in the pre-pay Serve card, it uses that. If not, it will load some in from another source. I used a Visa credit card for that and it worked fine. The auto load is optional and defaults off I believe. So if you would rather have it decline charges when you don't have money there, you can do that.

It's not as nice as connecting to the card directly, but all the players are too busy trying to make their way into the standard to work together. I'm surprised Apple got the card companies on board. It will be interesting to see.

All that said, I'm still not convinced it's a problem that needs solving. It's kinda cool, but since I generally have to carry ID and other payment methods for places that don't support NFC it's more of a curiosity than anything else for me. A local coffee shop had problems with ISIS occasionally and stopped supporting it because people would come in with just their phones. They are using some QR code based setup now that I haven't bothered to set up yet.
[Moto G Q&A, Help & Troubleshooting] dwhite1972:
okay ever since they pushed the patch(kk) for the moto g my WiFi has randomly turned on

anybody else had this problem PR is it just me ?
[Moto G Q&A, Help & Troubleshooting] wstruction:
Are you using art or dalvik?
[Moto G Q&A, Help & Troubleshooting] dwhite1972:
dalvik
[Moto G Q&A, Help & Troubleshooting] wstruction:
Are you updated to your latest software? And have you rebooted?
[Moto G Q&A, Help & Troubleshooting] dwhite1972:
yeah think my battery app caused it

hard one too explain
[Galaxy Note 3 Q&A, Help & Troubleshooting] gello924:
I'm having problems connecting to lte (700Mhz band 17 ... Same as AT&T) here in Freeport, Bahamas with my note 3 model #N900W8. Would it be safe/advisable to flash firmware for a N900A or possibly one for any of the Canadian carriers?
[Galaxy S III Q&A, Help & Troubleshooting] KatelynB:
Hi!

I have come to this forum many times for solutions to problems with my cell phones. And I did check for other similar issues to this, but since my situation is not exactly the same as the other posting I found on this topic, I wanted to ask for help with my specific issue.

Anyway, after going through a year of problems with my HTC Desire my b/f got me a Galaxy S3 for my birthday, (GT19300). It takes a micro-Sim which my old phone didn't so I cut down my old Sim and tried it in the Galaxy. All I could get was a message "No Sim card-Insert Sim Card." Naturally I figured an easy solution would be get a new Sim. My carrier is AT$T. I didn't want to go through the hassle of going to an AT$T store for a new micro-Sim and get bullied into a data plan etc. So I got a new regular sim from AT$T and cut it down, it fits perfectly. (I know the Sim card is fine because I tried it in another OLD crappy phone I have that takes a micro-Sim). However, in the Galaxy it just keeps having the same problem: "No Sim card/Insert Sim."

I've tried clearing the cache, I've tried updating, done factory restores, I've tried removing the batt and Sim etc, all the "easy" solutions, nothing has worked. I've tried the solutions posted on various threads here, nothing.

My b/f assures me the phone is unlocked since he did that himself before he gave it to me. I don't know if he tried using the phone or not, but I presume he did. So i don't see how the phone could still be locked.. And from what I've read IF the phone were still locked there would be a different message in regards to the Sim. Everything works on the phone just fine, EXCEPT it will not recognize a Sim card at all.

I read on another forum that Galaxy S3 users were having a lot of issues with their rooted phones that disappeared after they unrooted, soooo, if this is happening because my phone is still rooted, than obviously I don't really have a choice if I want to actually use this phone for something other than taking nice photos. Could the fact it's still a rooted phone be why it will not recognize a Sim??

Does anyone have any suggestions I can try to solve this problem? I have a feeling it's either a very easy fix or a major pain in the *bleep*. But either way, this is driving me crazy trying to solve the problem. I'd LOVE to be able to use this phone especially after my b/f paid good money for it, not to mention I've made-do with the HTC I had and all the issues it had for over a year.

Any ideas, tips, or suggestions would be most appreciated!

Thank you to anyone who replies!!!!!

*I originally posted posted this in the wrong forum, thanks Audit!
[Galaxy S III Q&A, Help & Troubleshooting] boomboomer:
First try a full wipe and flash latest stock with odin. Next replace the sim reader.
[Galaxy S III Q&A, Help & Troubleshooting] KatelynB:
Boom,

Thank you for the reply. I will try your suggestions. I take it this is a very common problem from what I've been reading. Though I cannot find a precise answer to what it could be. So I'll try your ideas for sure.

* I certainly hope your "signature" isn't referring to my post. I DID indeed look through the questions/threads/posts here before I posted. I spent probably 5 hours checking around for an answer... IF you are referring to my question, dude you just offended me terribly...I get where you're coming from though, but people just won't take the time to read through and look for answers before posting, it's that way on pretty much all forums, at least all the ones I've been on and that's A LOT. And if you read my post thoroughly you would have seen that I did mention searching through threads here and elsewhere before I posted.
[Galaxy S III Q&A, Help & Troubleshooting] boomboomer:
No, my signature is not aimed at you -the words are from another user, but describe around 80% of the threads created here.
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] Reckoned:
I feel like I am either about to really break my phone or fix it with this next flash, some guidance would be amazing!

Started off months ago with Sprint L720 MF9 out of the box and rooted it. Eventually I got around to loading Sacs 4.3 back in January and had no troubles. After getting the OTA update notifications again, I decided it was time to flash a 4.4 ROM and I followed this thread.

Got the NAE modem loaded, flashed philz 6.08.9, and loaded the stock MK2 ROM listed in the instructions. The phone booted and I went through the initial setup without any issues. Baseband and software both say NAE, but then I noticed I have no sound at all. The phone powers off automatically after a while as well. Loading anything from the Play store takes forever, however, the stock web browser runs just fine.

Should I be concerned about no audio or will this be resolved with going to the 4.4 ROM listed in the guide (no data wipe)? I kind of want to flash a rooted stock MF9 ROM and start over...

Any help would be appreciated.

Edit: Flashed to 4.4.2 and SSDD. I finally got sound back though by flashing the MK2 modem, just need wifi working now.
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] Mistertac:
Usually your sound issue can be resolved by flashing another ROM.

As far as WiFi goes I just had this problem myself. If your bootloaders NAE and your modem is MK2 , try flashing the NAE modem back. That's what fixed it for me.

I'll not up to speed on all the quirks of the sprint s4 since I'm usually using a Verizon s4 . but it seems to me that if you have a NAE bootloader, it isn't cooperating with downgrading the modem either. Never was a problem for me when my phone was on MK2 build , but with each OTA the security gets upgraded too. Almost doesn't make sense to me though as Sprints bootloaders are unlocked.

Maybe someone else can shed some light on this.

Try NAE modem and see what happens,... bet your WiFi will be back like mine was.
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] Reckoned:
Yeah, I'm actually still on MF9 bootloader. I did end up flashing back NAE modem last night and battery pulled after. All is working now! Thanks.
[One (M7) Q&A, Help & Troubleshooting] poopedtim:
So I am pretty new to CyanogenMod and haven't flashed or rooted a phone since the EVO 3D. So I flashed the latest nightly version and everything went fine besides not being able to get a mobile connection on my phone. I can make calls and send text but any app that needs 3g to refresh doesn't work unless I am on wi-fi. I was wondering if someone could direct me to the latest version that still has 3g connectivity im getting really frustrated. BTW I am on Sprint. Appreciate all your help.

Thanks for your time,

Tim
[One (M7) Q&A, Help & Troubleshooting] tiny4579:
Try 2/28 or older to be safe. There was a major ril change in the past few days that has caused some issues such as no data. That all should be sorted out soon if it's not already but 2/28 was before it so it should be fine. I don't have Sprint to verify but I think this will help.
[One (M7) Q&A, Help & Troubleshooting] poopedtim:
Thanks for your help. I was reading that somewhere and I go to "http://download.cyanogenmod.org/?device=m7spr" ND and the updates jump from 11-2 to 3-1. Do you know of another website I can get the version from 2-28??
[One (M7) Q&A, Help & Troubleshooting] tiny4579:
3/1 build actually should be ok. I was trying to be conservative in recommending 2/28.
[One (M7) Q&A, Help & Troubleshooting] poopedtim:
Flashed it and still no mobile connections. not even calls or anything anymore. I tried to install Viper earlier to see if that fixed it and I think it messed it up even more. I used GURU reset method " http://www.htc1guru.com/downloads/stock-rom-downloads/ " and touch didnt work but I could still see there was no mobile connection. Am I missing something?? Idc what I have to do I just need my phone to work again for calls and text at this point. Thanks for your help and advice
[One (M7) Q&A, Help & Troubleshooting] KidCarter93:
Thread Closed as it's a duplicate of another thread you created.

Regards,

- KidCarter93

Forum Moderator
[Networking] SurfboardSurfer:
hi guys,

I have a tmobile mda iii, i can connect to and browse the internet via wifi. I want to be able to browse the internet on my laptop using that connection (over a usb cable).

I think the solution lies in 'Wireless Modem', but I can't find out how to use it with a wifi Internet connection. (It appears to be designed for gprs, and csd internet connections only).

Any help/pointers will be appreciated

Surfer
[Networking] dima_the_chief:
Check this

http://www.pocketpcmag.com/blogs/index.php?blog=3&p=453&more=1

but it's easier just to buy a $20 wifi card for a laptop.
[Sprint Samsung Galaxy Note II] cgi2099:
I am looking for a 4in1 Reboot Flashable zip for CM-11 4.4.2, does anyone know of one that will work?

Thank You

Josh
[Sprint Samsung Galaxy Note II] cgi2099:
Well I feel like an idiot, I found the option on CM-11 to do this.

Thank You

Josh
[AT&T Galaxy Note 3 Q&A, Help & Troubleshooting] @ttnote3:
Installed Knoxraid and it's great.. problem is.. it killed my safe strap. Tried to re-install safe strap and it fails every time. Using 3.71. It says recovery installed.. click to reboot.. it doesn't reboot.. when I manually reboot.. it reboots right back to Knoxraid. When I reboot to recovery.. it reboots to standard android recovery. Problem is i can't flash any roms. Not for keyboards.. not OSs -- nothing. Help please.

thx!

j
[AT&T Galaxy Note 3 Q&A, Help & Troubleshooting] gharris040604:
Go to the knoxraid thread and read. Safestrap hasn't been updated yet for kk so you need to use Odin and the files posted in drakey thread to get safe strap booting. It's all there just read throughly
[AT&T Galaxy Note 3 Q&A, Help & Troubleshooting] Reedonculous:
+1

I agree, i just used this method this morning Knoxdroid 4.0 and i flashed the Bobcat theme.

You need to install safestrap app, reboot to download mode, ODIN togetsafestrap, reboot and select safestrap recovery, flash/wipe whatever you wanted to do, reboot to download mode, ODIN togetbooting, reboot to system.

There is not a way to boot to safestrap or out of it without these steps currently. Honestly it takes up about 45 secs longer after you get used to it. Only other drawback is you need a PC and you cant flash on the go. Hope this helps.
[AT&T Galaxy Note 3 Q&A, Help & Troubleshooting] Agent:
There are detailed directions in the KNOXRAID OP about getting into safestrap with KitKat
[Verizon Samsung Galaxy S 4] High_Rez:
I'm trying to install a ROM but I cant boot into recovery mode. All that happens is that a yellow triangle appears with text under it saying: "System software not authorized by Verison Wirless has been found on your phone. Please turn of your phone and go to the nearest Verison Wireless store for help" with red text in the upper left hand corner saying "secure fail: kernel" I do not have trouble getting out of this screen. My phone is rooted.

Also, when ever I reboot my phone, "Samsung custom" appears.

Thanks!!!